/* ============================================================
   MADENEXT — page components (loaded after styles.css)
   ============================================================ */

/* hero (generic) */
.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5.2vw, 50px); line-height: 1.22; color: var(--ink); text-wrap: pretty; }
.hero__lead { font-size: clamp(14px, 1.6vw, 15.5px); line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
.lead-sm { font-size: 15px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }

/* centered home hero */
.home-hero { text-align: center; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(36px, 5vw, 56px); }
.home-hero__logo { margin: 0 auto; width: 540px; max-width: 100%; height: auto; }
.home-hero__lead { margin: clamp(28px,4vw,40px) auto 0; max-width: 430px; font-size: 16.5px; line-height: 1.65; color: var(--ink-3); }
.home-hero__actions { margin-top: 26px; display: flex; justify-content: center; }
.home-hero__actions .btn { min-width: 230px; }

/* key stat strip */
.kstats { margin: clamp(40px,5vw,56px) auto 0; display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.kstats__item { padding: 8px clamp(24px, 5vw, 56px); }
.kstats__n { font-family: var(--serif); font-weight: 500; font-size: clamp(26px,3.4vw,34px); color: var(--ink); }
.kstats__l { margin-top: 10px; font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-4); }
.kstats__div { width: 1px; background: var(--line-2); align-self: stretch; }
@media (max-width: 720px) { .kstats__div { display: none; } .kstats { gap: 8px 0; } .kstats__item { flex: 1 1 40%; } }

/* tag chip cluster (centered) */
.chip-cluster { margin-top: clamp(36px,5vw,52px); display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* full-width photo band */
.photoband { width: 100%; }
.photoband .photo, .photoband img { width: 100%; height: clamp(280px, 40vw, 580px); }

/* value pillars */
.pillars { margin-top: clamp(48px,7vw,84px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px,4vw,48px); }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; gap: 30px; } }
.pillar svg { display: block; }
.pillar__t { margin-top: 18px; font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--ink); }
.pillar__p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; color: var(--ink-4); }
.section-h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 4vw, 42px); line-height: 1.32; color: var(--ink); text-wrap: pretty; }
.section-h2.on-dark { color: var(--on-dark); }

/* reliability stats band */
.relband { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 0; align-items: start; }
@media (max-width: 899px) { .relband { grid-template-columns: 1fr; } .relband__cell { border-left: none !important; padding: 22px 0 !important; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; } }
.relband__cell { padding: 0 40px; }
.relband__cell + .relband__cell { border-left: 1px solid var(--line-2); }
.relband__lead { padding-right: 48px; }
.relband__n { font-family: var(--serif); font-weight: 500; font-size: clamp(40px,4vw,46px); color: var(--ink); }
.relband__cell .cap { margin-top: 12px; font-size: 11.5px; line-height: 1.6; color: var(--ink-4); }
.hatch { width: 96px; height: 58px; background: repeating-linear-gradient(115deg, #B6B2A2 0 1px, transparent 1px 5px); }
@media (max-width: 899px) { .hatch { display: none; } }

/* applications grid */
.appcard__img { width: 100%; height: 270px; }
.appcard__t { margin-top: 18px; font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--moss); }
.appcard__p { margin-top: 10px; font-size: 13px; line-height: 1.65; color: var(--ink-4); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* application matrix table */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } }
.tab {
  font-size: 10.5px; letter-spacing: 0.13em; font-weight: 600; padding: 11px 22px; border-radius: 999px;
  cursor: pointer; background: transparent; color: var(--ink-3); border: 1px solid var(--line-pill); white-space: nowrap;
}
.tab.is-active { background: var(--moss); color: var(--on-dark); border-color: var(--moss); }
.matrix__head, .matrix__row { display: grid; grid-template-columns: 280px 280px 1fr; gap: 40px; }
.matrix__head { padding: 0 0 14px; }
.matrix__head > div { font-size: 10px; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-mute); }
.matrix__row { border-top: 1px solid var(--line-2); padding: 19px 0; align-items: baseline; }
.matrix__component { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.matrix__materials { font-size: 13px; font-weight: 600; color: var(--moss); }
.matrix__why { font-size: 13px; line-height: 1.65; color: var(--ink-4); }
.matrix__foot { border-top: 1px solid var(--line-2); }
@media (max-width: 760px) {
  .matrix__head { display: none; }
  .matrix__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .matrix__materials { margin-top: 2px; }
}
.arrow-link { display: inline-flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: 0.14em; font-weight: 700; color: var(--moss); text-decoration: none; }
.arrow-link:hover { color: var(--moss-deep); }

/* cards */
.card { background: var(--bg-cream); border: 1px solid var(--line); padding: clamp(28px,3vw,44px); }
.card--sand { background: var(--bg); }
.card--olive { background: var(--olive); color: var(--on-dark-2); }
.card__kicker { font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--moss); }
.card__title { margin: 16px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(21px,2.4vw,25px); line-height: 1.35; color: var(--ink); }
.card__p { margin: 16px 0 0; font-size: 13.5px; line-height: 1.72; color: var(--ink-3); text-wrap: pretty; }

/* index/number cards (solutions) */
.idxcard { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--bg); padding: 30px 28px; transition: border-color .2s; }
.idxcard:hover { border-color: var(--moss); }
.idxcard__n { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-mute); }
.idxcard__t { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.3; color: var(--ink); }
.idxcard__p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* timeline / numbered steps */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 140px 320px 1fr; gap: 48px; align-items: baseline; border-top: 1px solid var(--line-2); padding: 32px 0 36px; }
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step__n { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--moss); }
.step__t { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.35; color: var(--ink); }
.step__p { font-size: 14px; line-height: 1.75; color: var(--ink-3); text-wrap: pretty; }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; } }

/* CTA band (split) */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta__h { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(24px,3vw,33px); line-height: 1.35; color: var(--on-dark); max-width: 520px; text-wrap: pretty; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* materials portfolio */
.matgroup { display: flex; align-items: center; gap: 14px; }
.matgroup .n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute); }
.matgroup .k { font-size: 10.5px; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-2); }
.matcard { border: 1px solid var(--line); background: var(--bg); padding: 26px 24px; }
.matcard__code { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); }
.matcard__full { margin-top: 4px; font-size: 9.5px; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-mute); }
.matcard__p { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.matcard__spec { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; font-size: 11.5px; }
.matcard__spec .v { font-weight: 600; color: var(--ink); }
.matcard__spec + .matcard__spec { border-top: none; padding-top: 8px; }

/* success banner */
.success { margin-top: 24px; background: #EDF0E3; border: 1px solid #C9CDB2; border-radius: 6px; padding: 22px 26px; font-size: 13.5px; line-height: 1.7; color: #44502F; }

/* small helpers */
.mt-s { margin-top: clamp(28px,4vw,44px); }
.mt-m { margin-top: clamp(40px,6vw,56px); }
.mt-l { margin-top: clamp(48px,7vw,64px); }
.stack { display: flex; flex-direction: column; gap: 26px; }
.muted-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 600px){ .muted-list { grid-template-columns: 1fr; } }
.muted-list > div { border-top: 1px solid var(--line-2); padding: 16px 0; font-size: 14px; color: var(--ink); }

/* ===== Materials page (full desktop portfolio) ===== */
.catindex { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
@media (max-width: 899px){ .catindex { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (max-width: 520px){ .catindex { grid-template-columns: 1fr; } }
.catindex a { text-decoration: none; border-top: 1.5px solid var(--line-pill); padding-top: 18px; display: block; transition: border-color .2s; }
.catindex a:first-child { border-top-color: var(--ink); }
.catindex a:hover { border-top-color: var(--moss); }
.catindex .n { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute); }
.catindex .t { margin-top: 10px; font-size: 11px; letter-spacing: 0.13em; font-weight: 700; color: var(--ink); line-height: 1.7; }
.catindex .m { margin-top: 8px; font-size: 11.5px; color: var(--ink-mute); }

.matsec__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,80px); align-items: end; }
@media (max-width: 760px){ .matsec__head { grid-template-columns: 1fr; gap: 20px; } }

.matrow { border-top: 1px solid var(--line-2); padding: clamp(28px,3.5vw,44px) 0 clamp(32px,4vw,52px); display: grid; grid-template-columns: 220px 1fr 300px; gap: clamp(28px,4vw,56px); }
@media (max-width: 860px){ .matrow { grid-template-columns: 1fr; gap: 22px; } }
.matrow__code { font-family: var(--serif); font-weight: 500; font-size: clamp(38px,4.5vw,46px); color: var(--ink); }
.matrow__full { margin-top: 8px; font-size: 10px; letter-spacing: 0.13em; font-weight: 600; color: var(--ink-mute); line-height: 1.7; }
.applist { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.applist .chip { padding: 7px 15px; font-size: 9.5px; letter-spacing: 0.12em; }
.spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.spec .k { font-size: 10px; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-mute); }
.spec .v { font-size: 12.5px; font-weight: 600; color: var(--ink); text-align: right; }

.feature { background: var(--bg-cream); border: 1px solid var(--line); padding: clamp(32px,4vw,52px) clamp(28px,4vw,56px); display: grid; grid-template-columns: 220px 1fr 300px; gap: clamp(28px,4vw,56px); }
@media (max-width: 860px){ .feature { grid-template-columns: 1fr; gap: 22px; } }
.badge-pill { margin-top: 20px; display: inline-block; background: var(--moss); color: var(--on-dark); font-size: 9px; letter-spacing: 0.14em; font-weight: 700; padding: 6px 13px; border-radius: 999px; }

.statrow3 { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.statrow3 > div { padding: 0 24px; }
.statrow3 > div:first-child { padding-left: 0; }
.statrow3 > div + div { border-left: 1px solid var(--line-2); }
.statrow3 .n { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink); }
.statrow3 .l { margin-top: 8px; font-size: 9px; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-mute); line-height: 1.6; }

.specforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px,4vw,48px); }
@media (max-width: 860px){ .specforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .specforms { grid-template-columns: 1fr; } }
.specforms .h { border-top: 1.5px solid var(--ink); padding-top: 20px; font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--ink); }
.specforms .b { margin-top: 18px; font-size: 13px; line-height: 2.1; color: var(--ink-3); }

.kit { background: var(--bg-cream); border: 1px solid var(--line); padding: clamp(32px,3.5vw,44px) clamp(28px,3.5vw,48px); }
.kit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.kit__top h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(21px,2.4vw,25px); line-height: 1.35; color: var(--ink); }
.kit__eta { font-size: 10px; letter-spacing: 0.13em; font-weight: 700; color: var(--moss); white-space: nowrap; }
.kit__p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.kit__for { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; color: var(--ink-mute); line-height: 1.7; }

.brandtile { border: 1px solid var(--line); background: var(--bg); padding: 28px 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brandtile .logo { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; }
.brandtile .logo img { max-height: 44px; max-width: 100%; width: auto; }
.brandtile .cap { font-size: 9.5px; letter-spacing: 0.14em; font-weight: 600; color: var(--ink-mute); text-align: center; }
.brandwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px){ .brandwall { grid-template-columns: 1fr 1fr; } }

/* ===== Solutions desktop index rows ===== */
.solrow { text-decoration: none; display: grid; grid-template-columns: 90px 360px 1fr 60px; gap: 48px; align-items: baseline; border-top: 1px solid var(--line-2); padding: 40px 0 44px; transition: background .2s; }
.solrow--last { border-bottom: 1px solid var(--line-2); }
.solrow:hover { background: #F5F3EB; }
.solrow__n { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-mute); }
.solrow__t { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.solrow__p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-4); }
.solrow svg { align-self: center; }
@media (max-width: 1100px){ .solrow { grid-template-columns: 70px 1fr; gap: 24px 32px; } .solrow__p { grid-column: 2; } .solrow svg { display: none; } }

/* ===== About desktop slideshow hero ===== */
.aboutslides { position: relative; height: clamp(460px, 62vh, 640px); overflow: hidden; background: var(--bg-sand); }
.slide-bg { position: absolute; inset: 0; transition: opacity 0.7s ease; }
.slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(236,235,230,0.95) 0%, rgba(236,235,230,0.72) 36%, rgba(236,235,230,0.22) 58%, rgba(236,235,230,0) 74%); }
.aboutslides__copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.aboutslides__stack { display: grid; max-width: 520px; }
.slide-copy { grid-area: 1 / 1; transition: opacity 0.7s ease; }
.slide-copy h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px,3.6vw,46px); line-height: 1.28; color: var(--ink); max-width: 460px; }
.slide-copy p { margin: 28px 0 0; max-width: 400px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.aboutslides__next { margin-top: 28px; width: 64px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; }
.aboutslides__dots { margin-top: 22px; display: flex; gap: 10px; }
.aboutslides__dots span { width: 28px; height: 3px; background: #C8C4B5; }
