/* ==========================================================================
   BAGPORT — Custom Bag Manufacturing
   Design system / single stylesheet
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-soft: #33312e;
  --muted: #6b6862;
  --muted-light: #8f8b83;
  --line: #e4e1da;
  --line-strong: #cfcbc2;
  --paper: #ffffff;
  --sand: #f5f3ee;
  --sand-2: #ece9e2;
  --accent: #9a5b2c;
  --accent-dark: #7c4a23;
  --accent-tint: #f6ede5;
  --ok: #2f6b4f;
  --err: #a32d2d;
  --wrap: 1220px;
  --gutter: 24px;
  --radius: 2px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.45em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

::selection {
  background: var(--accent-tint);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- layout ---------- */

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

.section {
  padding: clamp(56px, 7vw, 104px) 0;
}

.section--tight {
  padding: clamp(40px, 4.5vw, 64px) 0;
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: #f4f2ee;
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--line {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--reverse .split__media {
  order: -1;
}

.measure {
  max-width: 62ch;
}

.measure-sm {
  max-width: 48ch;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stack > * + * {
  margin-top: 1rem;
}

/* ---------- type helpers ---------- */

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  color: var(--ink-soft);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sand-2);
  border-radius: 100px;
  padding: 5px 11px;
  margin: 0 6px 6px 0;
}

.tag--accent {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.tbd {
  color: var(--muted);
  font-style: italic;
}

/* ---------- header ---------- */

.topbar {
  background: var(--ink);
  color: #cfcbc2;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.topbar a:hover {
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.brand__mark {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__item:focus-within .nav__link {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav__link[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
}

.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: -20px;
  width: 620px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 26px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mega a:hover {
  color: var(--accent);
}

.mega a span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--light:hover {
  background: #eceae5;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.link-arrow:hover {
  border-bottom-color: var(--ink);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

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

.hero {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 6.5vw, 96px);
  padding-bottom: clamp(48px, 6.5vw, 96px);
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__note {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__note::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- image slots ---------- */

.slot {
  position: relative;
  margin: 0;
  background: var(--sand-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot--4x3 {
  aspect-ratio: 4 / 3;
}

.slot--1x1 {
  aspect-ratio: 1 / 1;
}

.slot--3x4 {
  aspect-ratio: 3 / 4;
}

.slot--16x9 {
  aspect-ratio: 16 / 9;
}

.slot--tall {
  aspect-ratio: 4 / 5;
}

.slot__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  text-transform: uppercase;
}

/* ---------- capability strip ---------- */

.capstrip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.capstrip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capstrip__item {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}

.capstrip__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.capstrip__k {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.capstrip__v {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- category cards ---------- */

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

.cat-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.cat-card__body {
  padding: 18px 18px 20px;
}

.cat-card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cat-card__title span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.cat-card__subs {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- product cards ---------- */

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

.prod-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prod-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
}

.prod-card__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.prod-card__code {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.prod-card__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prod-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.prod-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- feature list ---------- */

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex: none;
  margin-top: 0.55em;
}

.feature-list li small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ---------- process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}

.process__step {
  position: relative;
  padding: 22px 16px 22px 0;
  border-right: 1px solid var(--line);
}

.process__step:last-child {
  border-right: 0;
}

.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.process__step h3 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.process__step p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 34px;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}

/* ---------- steps (cooperation) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  counter-reset: cstep;
}

.steps__item {
  counter-increment: cstep;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps__item::before {
  content: "Step " counter(cstep);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.steps__item h3 {
  font-size: 1.02rem;
}

.steps__item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- spec table ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec th,
.spec td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec th {
  width: 34%;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--sand);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.spec tr:first-child th,
.spec tr:first-child td {
  border-top: 1px solid var(--line);
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: 0.76rem;
  color: var(--muted-light);
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  letter-spacing: 0.02em;
}

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

.crumbs span {
  opacity: 0.5;
}

/* ---------- page head ---------- */

.pagehead {
  padding: clamp(30px, 4vw, 54px) 0 clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
}

.pagehead h1 {
  max-width: 24ch;
  margin-bottom: 0.4em;
}

.pagehead .lede {
  max-width: 60ch;
}

.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- callout ---------- */

.callout {
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.callout strong {
  display: block;
  margin-bottom: 3px;
}

/* ---------- CTA band ---------- */

.ctaband {
  background: var(--ink);
  color: #f2f0ec;
  padding: clamp(44px, 5vw, 72px) 0;
}

.ctaband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ctaband h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 6px;
  color: #fff;
}

.ctaband p {
  color: #b8b4ac;
  font-size: 0.92rem;
  margin: 0;
  max-width: 52ch;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.field label span {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.06);
}

.field input[type="file"] {
  padding: 9px 11px;
  background: var(--sand);
  font-size: 0.84rem;
}

.field__hint {
  font-size: 0.76rem;
  color: var(--muted-light);
}

.field[data-error="true"] input,
.field[data-error="true"] select,
.field[data-error="true"] textarea {
  border-color: var(--err);
}

.field__err {
  display: none;
  font-size: 0.76rem;
  color: var(--err);
}

.field[data-error="true"] .field__err {
  display: block;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  font-size: 0.78rem;
  color: var(--muted);
}

.form__status {
  display: none;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ok);
  background: var(--sand);
  font-size: 0.9rem;
}

.form__status[data-show="true"] {
  display: block;
}

.form__status strong {
  display: block;
  margin-bottom: 4px;
}

.form-wrap {
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper);
}

/* ---------- blog ---------- */

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card h3 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.post-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.post-card--soon {
  opacity: 0.72;
}

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-top: 2.2em;
}

.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.8em;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1rem;
}

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.6em 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--sand);
  font-weight: 600;
}

.article-head {
  max-width: 74ch;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--muted-light);
  letter-spacing: 0.03em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  padding: 20px;
  font-size: 0.84rem;
}

.toc h3 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.toc a:hover {
  color: var(--accent);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #a9a59d;
  padding: clamp(48px, 6vw, 76px) 0 28px;
  font-size: 0.87rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2c2c2c;
}

.footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer__brand .brand__mark {
  color: #fff;
}

.footer__brand .brand__sub {
  color: #8a867e;
}

.footer__note {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8a867e;
  max-width: 34ch;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.78rem;
  color: #7e7a72;
}

.footer__bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- cookie bar ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
  padding: 16px 18px;
  display: none;
  gap: 16px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.cookie[data-show="true"] {
  display: flex;
  flex-wrap: wrap;
}

.cookie p {
  margin: 0;
  flex: 1 1 320px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

/* ---------- misc ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.ratio-note {
  font-size: 0.76rem;
  color: var(--muted-light);
  letter-spacing: 0.03em;
}

.hr-short {
  width: 64px;
  height: 2px;
  background: var(--ink);
  border: 0;
  margin: 0 0 26px;
}

.kv {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 20px;
  font-size: 0.88rem;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  font-weight: 500;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 40px;
}

.related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.9rem;
}

.related__links a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.related__links a:hover {
  border-bottom-color: var(--ink);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.96rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  padding: 0 0 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.note-box {
  border: 1px dashed var(--line-strong);
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--sand);
}

.note-box strong {
  color: var(--ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .cat-grid,
  .prod-grid,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .process__step:nth-child(4) {
    border-right: 0;
  }
  .nav__link {
    padding: 10px 8px;
    font-size: 0.84rem;
  }
  .mega {
    width: 520px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .hero__inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__inner {
    padding-top: 36px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .capstrip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capstrip__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .capstrip__item:nth-child(1),
  .capstrip__item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .nav,
  .header__actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header__inner {
    min-height: 64px;
  }
  .header[data-open="true"] .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .header[data-open="true"] .nav__item {
    border-bottom: 1px solid var(--line);
  }
  .header[data-open="true"] .nav__link {
    width: 100%;
    padding: 13px 0;
    border-bottom: 0;
  }
  .header[data-open="true"] .mega {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 12px;
    grid-template-columns: 1fr;
  }
  .header[data-open="true"] .nav__item[data-expanded="true"] .mega {
    display: grid;
  }
  .header[data-open="true"] .mega a {
    font-size: 0.86rem;
  }
  .header[data-open="true"] .header__actions {
    display: block;
    padding: 14px 0 0;
  }
  .header[data-open="true"] .header__actions .btn {
    display: flex;
  }
  .grid-3,
  .grid-4,
  .steps,
  .form__row,
  .feature-list,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process__step:nth-child(2n) {
    border-right: 0;
  }
  .process__step:nth-child(2n + 1)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
  }
  .cat-grid,
  .prod-grid,
  .prod-grid--2,
  .post-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctaband__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }
  .kv dd {
    margin-bottom: 10px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .spec th {
    width: 40%;
  }
}

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

@media print {
  .header,
  .footer,
  .cookie,
  .ctaband {
    display: none;
  }
}

/* ---------- additions ---------- */

.cat-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capstrip__item:nth-child(1) { padding-left: 0; }

@media (max-width: 1080px) {
  .cat-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .cat-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .topbar__right { display: none; }
  .topbar__inner { justify-content: flex-start; font-size: 0.72rem; }
  .header[data-open="true"] .header__actions { display: block; }
}

@media (max-width: 900px) {
  .grid.grid-3 > div, .grid.grid-4 > div { min-width: 0; }
}

/* ---------- image honesty badges ---------- */

.slot--concept::after,
.slot--ai-render::after {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
}

.slot--concept::after {
  content: "AI concept visual";
}

.slot--ai-render::after {
  content: "AI-assisted render";
}

/* ---------- trending grid ---------- */

.trend-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1080px) {
  .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .trend-grid { grid-template-columns: minmax(0, 1fr); }
}

/* stacked feature list for narrow splits */
.feature-list--stack {
  grid-template-columns: minmax(0, 1fr);
}

.feature-list--stack li {
  flex-direction: column;
  gap: 4px;
}

.feature-list--stack li small {
  max-width: 60ch;
  font-size: 0.8rem;
}

/* ---------- workshop process grid ---------- */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workshop-grid .slot__cap {
  font-size: 0.68rem;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .workshop-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Header search + site search overlay
   ========================================================================== */

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 8px 6px;
  cursor: pointer;
}

.search-btn:hover { color: var(--accent); }
.search-btn svg { flex: 0 0 auto; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
}

.search-panel {
  position: relative;
  margin: 8vh auto 0;
  width: min(660px, calc(100% - 32px));
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(20, 20, 20, 0.22);
}

.search-panel__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.search-panel__input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 1rem;
  padding: 12px 0;
  background: none;
  color: var(--ink);
}

.search-panel__input::-webkit-search-cancel-button { display: none; }

.search-panel__close {
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  cursor: pointer;
}

.search-panel__close:hover { color: var(--ink); border-color: var(--line-strong); }

.search-panel__results {
  max-height: 46vh;
  overflow-y: auto;
  padding: 6px;
}

.search-panel__empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-hit {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "type title" "type desc";
  column-gap: 10px;
  align-items: baseline;
  padding: 10px 10px;
  border-radius: var(--radius);
}

.search-hit:hover,
.search-hit.is-active {
  background: var(--accent-tint);
}

.search-hit__type {
  grid-area: type;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 1px 6px;
  white-space: nowrap;
}

.search-hit__title {
  grid-area: title;
  font-weight: 600;
  font-size: 0.92rem;
}

.search-hit__desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-panel__hint {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.search-panel__hint a { text-decoration: underline; }

/* ==========================================================================
   Sticky mobile action bar
   ========================================================================== */

.mobcta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(20, 20, 20, 0.08);
}

.mobcta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mobcta__mail {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--paper);
}

.mobcta__quote {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 620px) {
  .mobcta { display: flex; }
  body { padding-bottom: 72px; }
  .cookie { bottom: 76px; }
  .search-btn span { display: none; }
}

/* ---------- pill row (product key facts / use cases) ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.pill-row li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 5px 10px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .pill-row li { font-size: 0.66rem; padding: 4px 8px; }
}

/* ---------- pill row (product key facts / use cases) ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.pill-row li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 5px 10px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .pill-row li { font-size: 0.66rem; padding: 4px 8px; }
}

/* ---------- resources hub ---------- */

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

.res-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 20px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.res-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.res-card__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.res-card h3 { margin: 0; font-size: 1.05rem; }

.res-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  flex: 1;
}

.res-card__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Full-catalogue category filter (products index)
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prod-card[hidden] { display: none; }

@media (max-width: 560px) {
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 0.72rem; padding: 6px 10px; }
}
