.categories-content {
  --ink: #171d1e;
  --deep: #101718;
  --graphite: #20292a;
  --steel: #60706e;
  --mint: #72d9c2;
  --mint-deep: #087a63;
  --lime: #dff08b;
  --gold: #d49a39;
  --paper: #f2f4f1;
  --white: #ffffff;
  --line: #cbd4cf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.categories-content {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

.categories-content button,
.categories-content a {
  font: inherit;
}

.categories-content a {
  color: inherit;
}

.categories-content img {
  max-width: 100%;
}

.categories-content .shell {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto;
}

.category-hero {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: stretch;
  color: var(--white);
  background: url("assets/ai-categorization-special-profiles-v1.webp") center 48% / cover;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(114, 217, 194, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 217, 194, 0.35) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 21, 22, 0.98) 0%, rgba(16, 29, 29, 0.88) 48%, rgba(16, 23, 24, 0.38) 100%),
    linear-gradient(0deg, rgba(14, 22, 22, 0.86), transparent 50%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(560px, 0.97fr);
  gap: 70px;
  align-items: center;
  padding: 68px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 900;
}

.eyebrow.light {
  color: var(--mint);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(54px, 5.4vw, 86px);
  line-height: 0.98;
}

.hero-copy h1 span {
  color: var(--lime);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 25px 0 0;
  color: #d8e1dd;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--mint);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.button.bright {
  color: var(--deep);
  background: linear-gradient(120deg, var(--mint), var(--lime));
}

.button.ghost {
  color: var(--white);
  background: rgba(18, 26, 26, 0.38);
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(7px);
}

.hero-index button {
  min-height: 108px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 11px;
  padding: 18px;
  color: var(--white);
  background: rgba(11, 19, 20, 0.58);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.hero-index button:last-child {
  grid-column: 1 / -1;
}

.hero-index button:hover {
  color: var(--deep);
  background: var(--mint);
}

.hero-index span {
  grid-row: 1 / 3;
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
}

.hero-index button:hover span {
  color: var(--mint-deep);
}

.hero-index strong {
  font-size: 16px;
}

.hero-index small {
  color: #bdc9c5;
  font-size: 10px;
}

.hero-index button:hover small {
  color: #31514a;
}

.factory-proof {
  color: var(--white);
  background: #131b1c;
  border-top: 1px solid #34403d;
}

.factory-proof-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) repeat(3, minmax(170px, 0.55fr));
}

.factory-proof-intro,
.factory-fact {
  min-height: 168px;
  display: grid;
  align-content: center;
  padding: 28px 32px;
  border-right: 1px solid #34403d;
}

.factory-proof-intro {
  background: linear-gradient(125deg, rgba(114, 217, 194, 0.15), transparent 70%);
}

.factory-proof-intro > span {
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
}

.factory-proof-intro strong {
  margin-top: 9px;
  font-size: 21px;
}

.factory-proof-intro p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #becac6;
  font-size: 12px;
  line-height: 1.55;
}

.factory-fact strong,
.factory-fact span {
  display: block;
}

.factory-fact strong {
  color: var(--lime);
  font-size: 25px;
}

.factory-fact span {
  margin-top: 8px;
  color: #bdc9c5;
  font-size: 10px;
  font-weight: 800;
}

.category-intro,
.buying-steps {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.5fr);
  gap: 90px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2,
.browser-heading h2,
.category-rfq h2 {
  margin: 0;
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.02;
}

.section-heading > p {
  margin: 0 0 8px;
  color: #596663;
  line-height: 1.65;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 370px;
  gap: 12px;
}

.category-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--graphite);
}

.category-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.category-card:hover > img {
  transform: scale(1.045);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 17, 18, 0.95), rgba(10, 17, 18, 0.02) 72%);
}

.profile-mark {
  position: absolute;
  top: 22px;
  right: 25px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
}

.profile-mark.small-mark {
  font-size: 34px;
}

.card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px;
  color: var(--white);
}

.card-copy > span {
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
}

.card-copy h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.card-copy p {
  max-width: 540px;
  margin: 0;
  color: #d4dedb;
  font-size: 13px;
  line-height: 1.5;
}

.card-copy .card-use {
  margin-top: 9px;
  color: #eef5f2;
  font-size: 11px;
}

.card-use strong {
  color: var(--lime);
}

.card-copy button {
  min-height: 34px;
  margin-top: 12px;
  padding: 0;
  color: var(--mint);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.card-copy button b {
  margin-left: 9px;
  font-size: 20px;
}

.card-c {
  grid-column: span 7;
}

.card-u {
  grid-column: span 5;
}

.card-w,
.card-special,
.card-t {
  grid-column: span 4;
}

.card-mineral {
  grid-column: span 7;
}

.card-accessories {
  grid-column: span 5;
}

.card-u img,
.card-special img {
  object-position: center;
}

.card-w img {
  object-position: center 48%;
}

.category-browser {
  padding: 88px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(114, 217, 194, 0.08) 0 1px, transparent 1px 56px),
    linear-gradient(45deg, #182625, #35443b);
  background-size: 56px 56px, auto;
}

.browser-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 70px;
  margin-bottom: 35px;
}

.browser-heading .eyebrow {
  margin-bottom: 12px;
}

.browser-heading > p {
  max-width: 520px;
  margin: 0 0 7px;
  color: #d0d9d6;
  font-size: 14px;
  line-height: 1.65;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #5a6965;
  border-left: 1px solid #5a6965;
}

.category-tabs button {
  min-height: 62px;
  padding: 8px 12px;
  color: #cbd6d2;
  background: rgba(13, 22, 22, 0.7);
  border: 0;
  border-right: 1px solid #5a6965;
  border-bottom: 1px solid #5a6965;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.category-tabs button:hover,
.category-tabs button[aria-selected="true"] {
  color: var(--deep);
  background: var(--mint);
}

.category-detail {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  background: var(--white);
}

.detail-media {
  min-height: 620px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  align-content: center;
  padding: 42px;
  color: var(--ink);
}

.detail-copy .eyebrow {
  margin-bottom: 10px;
}

.detail-copy h3 {
  margin: 0;
  font-size: 34px;
}

.detail-copy > p {
  margin: 13px 0 20px;
  color: #5c6864;
  line-height: 1.6;
}

.detail-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-guidance > div {
  min-height: 155px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-guidance span {
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 900;
}

.detail-guidance p,
.detail-guidance ul {
  margin: 10px 0 0;
  color: #4f5d59;
  font-size: 12px;
  line-height: 1.55;
}

.detail-guidance ul {
  padding-left: 16px;
}

.detail-guidance li + li {
  margin-top: 4px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-specs div {
  min-height: 82px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-specs span,
.detail-specs strong {
  display: block;
}

.detail-specs span {
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 900;
}

.detail-specs strong {
  margin-top: 7px;
  font-size: 13px;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.45fr);
}

.buying-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.buying-grid > div {
  min-height: 210px;
  padding: 28px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buying-grid > div:nth-child(2) {
  background: #e3f2ed;
}

.buying-grid > div:nth-child(3) {
  background: #f5ecda;
}

.buying-grid > div:nth-child(4) {
  color: var(--white);
  background: var(--graphite);
}

.buying-grid span {
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 900;
}

.buying-grid h3 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.buying-grid p {
  margin: 0;
  color: #5d6965;
  font-size: 13px;
  line-height: 1.6;
}

.buying-grid > div:nth-child(4) p {
  color: #c3cfcb;
}

.category-rfq {
  padding: 96px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14, 24, 24, 0.98), rgba(49, 62, 47, 0.9)),
    linear-gradient(145deg, #111a1b, #536045);
}

.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(620px, 1.28fr);
  gap: 76px;
  align-items: start;
}

.enquiry-copy {
  position: sticky;
  top: 30px;
}

.enquiry-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
}

.enquiry-lead {
  max-width: 600px;
  margin: 25px 0 0;
  color: #d6dfdc;
  line-height: 1.7;
}

.cooperation-prompt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid #68736b;
  border-left: 1px solid #68736b;
}

.cooperation-prompt strong,
.cooperation-prompt span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-right: 1px solid #68736b;
  border-bottom: 1px solid #68736b;
}

.cooperation-prompt strong {
  grid-column: 1 / -1;
  color: var(--lime);
  font-size: 15px;
}

.cooperation-prompt span {
  color: #d1dbd7;
  font-size: 11px;
}

.contact-line {
  margin: 24px 0 0;
  color: #b9c6c1;
  font-size: 12px;
  line-height: 1.75;
}

.category-enquiry {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 38px;
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--mint);
}

.form-heading,
.form-field.full,
.form-submit {
  grid-column: 1 / -1;
}

.form-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.form-heading span {
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 900;
}

.form-heading strong {
  max-width: 660px;
  font-size: 25px;
  line-height: 1.2;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: #33403d;
  font-size: 10px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #f6f8f6;
  border: 1px solid #bdc9c4;
  border-radius: 0;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--mint-deep);
  box-shadow: inset 4px 0 0 var(--mint);
}

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

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 3px;
}

.form-submit button {
  min-height: 52px;
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--deep);
  background: linear-gradient(120deg, var(--mint), var(--lime));
  border: 0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.form-submit button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-submit button span {
  margin-left: 13px;
  font-size: 18px;
}

.form-submit p {
  margin: 0;
  color: #5b6864;
  font-size: 11px;
  line-height: 1.45;
}

.form-submit a {
  color: var(--mint-deep);
}

@media (max-width: 1260px) {
  .hero-layout {
    grid-template-columns: 1fr 520px;
    gap: 40px;
  }
}

@media (max-width: 1020px) {
  .categories-content .shell {
    width: min(100% - 40px, 1420px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding: 70px 0 50px;
  }

  .category-hero {
    min-height: auto;
  }

  .hero-index {
    margin-top: 10px;
  }

  .section-heading,
  .section-heading.compact,
  .enquiry-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .factory-proof-intro {
    grid-column: 1 / -1;
  }

  .factory-fact {
    min-height: 120px;
  }

  .category-grid {
    grid-auto-rows: 340px;
  }

  .card-c,
  .card-u,
  .card-mineral,
  .card-accessories {
    grid-column: span 6;
  }

  .card-w,
  .card-special,
  .card-t {
    grid-column: span 4;
  }

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

  .browser-heading {
    display: grid;
    gap: 18px;
  }

  .category-detail {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 400px;
    max-height: 400px;
  }

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

  .enquiry-layout {
    gap: 50px;
  }

  .enquiry-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .categories-content .shell {
    width: min(100% - 28px, 1420px);
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-index {
    grid-template-columns: 1fr;
  }

  .hero-index button:last-child {
    grid-column: auto;
  }

  .factory-proof-layout {
    grid-template-columns: 1fr;
  }

  .factory-proof-intro,
  .factory-fact {
    min-height: 125px;
    grid-column: auto;
    padding: 24px;
    border-bottom: 1px solid #34403d;
  }

  .category-intro,
  .buying-steps,
  .category-browser,
  .category-rfq {
    padding: 66px 0;
  }

  .section-heading h2,
  .browser-heading h2,
  .category-rfq h2 {
    font-size: 39px;
  }

  .category-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 430px;
  }

  .category-card {
    grid-column: auto;
  }

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

  .detail-copy {
    padding: 28px 22px;
  }

  .detail-copy h3 {
    font-size: 28px;
  }

  .detail-media {
    min-height: 300px;
    max-height: 300px;
  }

  .detail-guidance,
  .detail-specs,
  .buying-grid {
    grid-template-columns: 1fr;
  }

  .detail-guidance > div {
    min-height: auto;
  }

  .category-enquiry {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .form-field {
    grid-column: 1 / -1;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit button {
    width: 100%;
  }

  .cooperation-prompt {
    grid-template-columns: 1fr;
  }

  .cooperation-prompt strong {
    grid-column: auto;
  }

}
