.materials-page { background: var(--paper); }

.materials-hero {
  min-height: 690px;
  padding: clamp(90px, 12vw, 165px) clamp(24px, 7vw, 110px) 78px;
  background:
    radial-gradient(circle at 78% 26%, rgba(211,165,57,.2) 0 7%, transparent 7.2%),
    radial-gradient(circle at 81% 28%, transparent 0 17%, rgba(255,255,255,.06) 17.2% 17.8%, transparent 18%),
    linear-gradient(120deg, #102f29 0%, var(--green) 52%, #245247 100%);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.materials-hero::after {
  content: "";
  width: min(42vw, 580px);
  aspect-ratio: 1;
  position: absolute;
  right: -9%;
  top: -18%;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.materials-hero-copy { position: relative; z-index: 1; max-width: 900px; }
.materials-hero h1 { font-size: clamp(3.6rem, 7.2vw, 7.7rem); letter-spacing: -.07em; margin: 0 0 30px; }
.materials-hero h1 em { color: #e9c465; font-style: normal; }
.materials-hero-copy > p:not(.eyebrow) { max-width: 730px; color: rgba(255,255,255,.78); font-size: clamp(1rem,1.5vw,1.28rem); }
.materials-hero-meta { position: relative; z-index: 1; display: grid; border-top: 1px solid rgba(255,255,255,.18); width: min(290px, 100%); }
.materials-hero-meta span { padding: 16px 2px; border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); font-size: 13px; }

.material-overview { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 9vw, 140px); align-items: center; background: var(--cream); }
.overview-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 30px 0 0; }
.material-points { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.material-points div { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 7px; }
.material-points strong { font: 600 18px "Manrope"; }
.material-points span { color: var(--muted); font-size: 13px; }
.material-visual { margin: 0; }
.material-visual img { width: 100%; border-radius: 2px; }
.material-visual figcaption { color: var(--muted); font-size: 11px; margin-top: 12px; }

.set-section { background: var(--paper); }
.discount-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px 7vw; margin: 0 0 48px; padding: 32px; border: 1px solid var(--line); background: var(--cream); }
.discount-panel-copy h3 { margin: 0 0 12px; font-size: clamp(1.5rem,2.4vw,2.35rem); letter-spacing: -.04em; }
.discount-panel-copy p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.discount-panel .eyebrow { margin-bottom: 10px; }
.discount-tiers { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.discount-tiers span { min-height: 92px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper); }
.discount-tiers b { font: 600 14px "Manrope"; }
.discount-tiers strong { color: var(--clay); font: 700 26px "Manrope"; }
.discount-rule { grid-column: 1/-1; margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.set-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.set-card { min-height: 1210px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; background: #fbfaf6; }
.set-card:nth-child(2), .set-card:nth-child(6) { background: #eee8dc; }
.set-card:nth-child(3), .set-card:nth-child(7) { background: #e6ede8; }
.set-card:nth-child(8) { background: #eee8dc; }
.set-card.featured-set { background: var(--green); color: white; }
.set-top { display: flex; align-items: flex-start; min-height: 16px; }
.set-index { color: var(--muted); font-size: 11px; }
.featured-set .set-index { color: rgba(255,255,255,.5); }
.set-gallery { margin: 18px 0 0; }
.gallery-stage { width: 100%; aspect-ratio: 1; display: block; padding: 0; border: 1px solid rgba(20,35,31,.1); background: white; overflow: hidden; cursor: zoom-in; }
.gallery-main { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity .16s ease; }
.gallery-main.is-changing { opacity: .35; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px,1fr)); gap: 7px; margin-top: 8px; }
.gallery-thumb { aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid rgba(20,35,31,.12); background: white; overflow: hidden; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.gallery-thumb:hover { transform: translateY(-1px); border-color: var(--clay); }
.gallery-thumb.active { border: 2px solid var(--clay); }
.gallery-thumb:focus-visible, .gallery-stage:focus-visible { outline: 3px solid #e9c465; outline-offset: 2px; }
.gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.featured-set .gallery-stage, .featured-set .gallery-thumb { border-color: rgba(255,255,255,.2); }
.piece-count { display: flex; align-items: baseline; gap: 10px; margin: -10px 0 26px; color: var(--muted); line-height: 1; }
.piece-count strong { font: 600 clamp(2.3rem, 3.5vw, 3.6rem) "Manrope"; letter-spacing: -.065em; color: var(--clay); }
.piece-count span { font: 700 13px "Manrope"; letter-spacing: .14em; }
.featured-set .piece-count { color: rgba(255,255,255,.6); }
.featured-set .piece-count strong { color: #e9c465; }
.set-kicker { margin: 34px 0 10px; color: var(--clay); font: 700 10px "Manrope"; letter-spacing: .2em; }
.featured-set .set-kicker { color: #e9c465; }
.set-card h3 { font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.06em; margin-bottom: 14px; }
.set-card > p:not(.set-kicker) { color: var(--muted); }
.featured-set > p:not(.set-kicker) { color: rgba(255,255,255,.7); }
.set-card dl { margin: auto 0 0; }
.set-card dl div { padding: 13px 0; border-top: 1px solid var(--line); }
.featured-set dl div { border-color: rgba(255,255,255,.16); }
.set-card dt { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.featured-set dt { color: rgba(255,255,255,.48); }
.set-card dd { margin: 4px 0 0; font-size: 13px; }
.set-action { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 14px 0 4px; border-bottom: 1px solid var(--clay); font-size: 13px; font-weight: 700; }
.featured-set .set-action { border-color: #e9c465; color: #e9c465; }
.set-price { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.featured-set .set-price { border-color: rgba(255,255,255,.18); }
.set-price span { color: var(--muted); font: 700 11px "Manrope"; letter-spacing: .12em; }
.featured-set .set-price span { color: rgba(255,255,255,.55); }
.set-price strong { color: var(--ink); font: 700 clamp(1.8rem,2.8vw,2.7rem) "Manrope"; letter-spacing: -.055em; }
.featured-set .set-price strong { color: #e9c465; }
.set-price small { color: var(--muted); font-size: 14px; }
.featured-set .set-price small { color: rgba(255,255,255,.68); }
.product-order-controls { display: grid; grid-template-columns: 92px 1fr; gap: 10px; margin-top: 18px; }
.product-order-controls label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.featured-set .product-order-controls label { border-color: rgba(255,255,255,.25); }
.product-order-controls input { min-width: 0; width: 100%; padding: 13px 0; border: 0; background: transparent; color: inherit; font: 700 16px "DM Sans"; text-align: center; outline: none; }
.add-to-cart { border: 0; padding: 14px 16px; background: var(--clay); color: white; font: 700 14px "DM Sans"; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.add-to-cart:hover { transform: translateY(-1px); background: #9f4933; }
.featured-set .add-to-cart { background: #e9c465; color: var(--ink); }
.add-to-cart.added { background: var(--green2); }

.gallery-lightbox { width: min(94vw, 980px); max-width: 980px; padding: 0; border: 0; background: transparent; overflow: visible; }
.gallery-lightbox::backdrop { background: rgba(7,16,14,.88); backdrop-filter: blur(5px); }
.gallery-lightbox img { width: 100%; max-height: 88vh; display: block; object-fit: contain; background: white; }
.gallery-lightbox-close { position: absolute; right: -12px; top: -12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #e9c465; color: var(--ink); font: 400 30px/1 sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); }

.institution-section { background: var(--green); color: white; display: grid; grid-template-columns: .68fr 1.32fr; gap: 7vw; }
.institution-copy h2 { font-size: clamp(2.5rem,4.5vw,5rem); }
.institution-copy > p:not(.eyebrow) { color: rgba(255,255,255,.7); font-size: 17px; margin-top: 30px; }
.institution-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.institution-grid article { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); min-height: 245px; }
.institution-grid span { color: #e9c465; font-size: 11px; }
.institution-grid h3 { margin: 38px 0 13px; font-size: 21px; }
.institution-grid p { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }

.development-band { padding: 50px clamp(24px, 7vw, 110px); background: #e9c465; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8vw; align-items: center; }
.development-band .eyebrow { color: #7f3c2b; margin-bottom: 10px; }
.development-band h2 { font-size: clamp(1.8rem,3vw,3rem); }
.development-band > p { margin: 0; color: #4a4437; }

.media-section { background: var(--cream); }
.media-placeholder { min-height: 470px; background: linear-gradient(130deg,#193f36,#102822); color: white; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; }
.play-symbol { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #e9c465; padding-left: 4px; margin-bottom: 10px; }
.media-placeholder strong { font: 600 24px "Manrope"; }
.media-placeholder small { color: rgba(255,255,255,.6); }

.institutional-request { background: var(--ink); color: white; display: grid; grid-template-columns: .75fr 1.15fr; gap: 8vw; align-items: start; }
.request-intro h2 { font-size: clamp(2.5rem,4.4vw,5rem); }
.request-intro > p:not(.eyebrow) { color: rgba(255,255,255,.68); font-size: 17px; margin-top: 28px; }
.request-steps { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.16); }
.request-steps span { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.68); }
.request-steps b { display: inline-block; width: 38px; color: #e9c465; font-size: 11px; }
.institutional-form { background: var(--paper); }

.order-section { background: var(--ink); color: white; }
.order-heading { display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 8vw; align-items: end; margin-bottom: 48px; }
.order-heading .eyebrow { grid-column: 1/-1; }
.order-heading h2 { font-size: clamp(2.7rem,4.6vw,5.3rem); }
.order-heading > p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.68); font-size: 18px; }
.order-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.cart-panel { padding: clamp(24px,3vw,42px); background: #202925; border: 1px solid rgba(255,255,255,.12); }
.cart-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.cart-panel-head div { display: grid; gap: 4px; }
.cart-panel-head span, .checkout-form-head span { color: #e9c465; font: 700 11px "Manrope"; letter-spacing: .14em; }
.cart-panel-head strong, .checkout-form-head strong { font: 600 22px "Manrope"; }
.cart-panel-head button { padding: 9px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; color: rgba(255,255,255,.7); font: 600 14px "DM Sans"; cursor: pointer; }
.cart-panel-head button:disabled { opacity: .35; cursor: default; }
.cart-empty { margin: 28px 0; color: rgba(255,255,255,.55); font-size: 15px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.cart-item-title { display: grid; gap: 5px; }
.cart-item-title strong { font: 600 18px "Manrope"; }
.cart-item-title span { color: rgba(255,255,255,.55); font-size: 14px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-controls button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: white; font-size: 18px; cursor: pointer; }
.cart-item-controls b { min-width: 28px; text-align: center; }
.cart-remove { grid-column: 1/-1; justify-self: start; padding: 0; border: 0; background: transparent; color: #e9c465; font-size: 14px; cursor: pointer; }
.discount-status { margin: 22px 0; padding: 14px 16px; border-left: 3px solid #e9c465; background: rgba(233,196,101,.08); color: rgba(255,255,255,.75); font-size: 14px; }
.cart-totals { margin: 0; }
.cart-totals div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cart-totals dt { color: rgba(255,255,255,.62); font-size: 14px; }
.cart-totals dd { margin: 0; font-weight: 700; text-align: right; }
.cart-totals .discount-line dd, .cart-totals .included { color: #e9c465; }
.cart-totals .discount-line span { margin-left: 5px; color: #e9c465; }
.cart-totals .grand-total { margin-top: 8px; padding: 18px 0; border-bottom: 0; }
.cart-totals .grand-total dt { color: white; font: 600 17px "Manrope"; }
.cart-totals .grand-total dd { color: #e9c465; font: 700 28px "Manrope"; letter-spacing: -.04em; }
.installment-box { display: grid; gap: 4px; margin-top: 12px; padding: 18px; background: #e9c465; color: var(--ink); }
.installment-box span { font: 700 11px "Manrope"; letter-spacing: .12em; }
.installment-box strong { font: 700 24px "Manrope"; }
.installment-box small { font-size: 13px; }
.checkout-form { padding: clamp(24px,4vw,48px); }
.checkout-form-head { display: grid; gap: 4px; margin-bottom: 30px; }
.confirmation-check { grid-template-columns: 22px 1fr !important; align-items: center; gap: 10px !important; font-size: 14px !important; letter-spacing: 0 !important; }
.confirmation-check input { width: 20px; height: 20px; accent-color: var(--clay); }
.checkout-form .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.payment-button { width: 100%; margin-top: 10px; padding: 17px 20px; border: 1px solid #8f9a95; background: #e9ecea; color: #65706b; display: grid; justify-items: center; gap: 2px; cursor: not-allowed; }
.payment-button span { font: 700 16px "Manrope"; }
.payment-button small { font-size: 13px; }
.payment-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.checkout-form .generated-summary { width: 100%; min-height: 180px; padding: 14px; border: 1px solid var(--line); background: white; font: 14px/1.5 "DM Sans"; }

.transfer-method { min-width: 0; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); }
.transfer-method legend { padding: 0 5px; font-weight: 700; }
.transfer-method label { margin: 0; cursor: pointer; }
.installment-box[hidden], .transfer-details[hidden] { display: none; }
.payment-note:empty { display: none; }
.transfer-details { margin: 16px 0; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.transfer-details h3 { margin: 0 0 8px; }
.transfer-details p { margin: 0; }
.transfer-details dl { margin: 14px 0; }
.transfer-details dl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.transfer-details dt { color: var(--muted); font-size: .875rem; }
.transfer-details dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.transfer-details .button { margin: 0 4px 8px 0; }
.transfer-details .generated-summary { min-height: auto; }

@media (max-width: 1050px) {
  .materials-hero { grid-template-columns: 1fr; }
  .materials-hero-meta { grid-template-columns: repeat(3,1fr); width: 100%; }
  .materials-hero-meta span { border-right: 1px solid rgba(255,255,255,.18); padding: 15px; }
  .material-overview, .institution-section, .institutional-request, .order-layout, .order-heading { grid-template-columns: 1fr; }
  .order-heading > p:not(.eyebrow) { margin-top: 24px; }
  .discount-panel { grid-template-columns: 1fr; }
  .discount-rule { grid-column: auto; }
  .set-grid { grid-template-columns: repeat(2, 1fr); }
  .development-band { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .materials-hero { min-height: 700px; padding-top: 100px; align-content: end; }
  .materials-hero h1 { font-size: 3.45rem; }
  .materials-hero-meta { grid-template-columns: 1fr; }
  .materials-hero-meta span { border-right: 0; padding-left: 0; }
  .material-points { grid-template-columns: 1fr; }
  .set-grid, .institution-grid { grid-template-columns: 1fr; }
  .discount-panel { padding: 22px; }
  .discount-tiers { grid-template-columns: 1fr; }
  .set-card { min-height: auto; padding: 22px; }
  .set-card dl { margin-top: 36px; }
  .gallery-lightbox { width: calc(100vw - 28px); }
  .gallery-lightbox-close { right: 4px; top: 4px; }
  .media-placeholder { min-height: 320px; }
  .development-band { padding-top: 38px; padding-bottom: 38px; }
  .order-section { padding-left: 16px; padding-right: 16px; }
  .cart-panel, .checkout-form { padding: 22px 18px; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-controls { justify-self: start; }
}
