/* ==========================================================================
   DIAMOND KING — Components
   Header · Mega menu · Drawer · Search · Modal · Forms · Cards · Footer
   ========================================================================== */

[hidden]{ display:none !important; }
html{ scrollbar-gutter:stable; }

.btn svg,.link-rule svg{ width:18px; height:18px; flex-shrink:0; }

.btn-dark{ background:var(--graphite-950); color:var(--white); }
.btn-dark:hover{ background:var(--accent-600); }
.btn[disabled]{ opacity:.55; cursor:progress; }

/* .btn is clipped by its chamfer, so an outside outline would be cut off — draw the ring inside */
.btn:focus-visible{ outline:none; box-shadow:inset 0 0 0 2px var(--white), inset 0 0 0 4px var(--graphite-950); }
.section-paper .btn-ghost:focus-visible,.section-paper-alt .btn-ghost:focus-visible{ box-shadow:inset 0 0 0 2px var(--accent-600); }

[data-ui-icon]{ display:inline-flex; align-items:center; }

.section-paper .eyebrow,.section-paper-alt .eyebrow{ color:var(--accent-600); }

/* ---- Scroll reveal (only when JS runs) ---- */
.js [data-reveal]{
  opacity:0; transform:translateY(22px);
  transition:opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay:calc(var(--i,0) * 60ms);
}
.js [data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .js [data-reveal]{ opacity:1; transform:none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:var(--z-header);
  height:var(--header-h);
  background:var(--graphite-950); color:var(--white);
  border-bottom:1px solid var(--graphite-line);
  transition:height var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
body[data-page="home"] .site-header:not(.is-scrolled):not(.is-mega-open){ background:transparent; border-color:transparent; }
.site-header.is-scrolled{ height:var(--header-h-scrolled); }

.hdr-inner{ height:100%; display:flex; align-items:center; gap:var(--sp-24); }

.hdr-logo{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.hdr-logo img{ width:auto; mix-blend-mode:lighten; }
.hdr-logo-mark{ height:40px; transition:height var(--dur-base) var(--ease-out); }
.hdr-logo-word{ height:14px; transition:height var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .hdr-logo-mark{ height:34px; }
.site-header.is-scrolled .hdr-logo-word{ height:12px; }

.hdr-nav{ margin-inline:auto; }
.hdr-nav ul{ display:flex; align-items:center; gap:2px; }
.hdr-link{
  position:relative; display:inline-flex; align-items:center; gap:6px;
  height:44px; padding:0 var(--sp-12);
  font-family:var(--font-display); font-weight:600; font-size:1rem;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--steel-200); transition:color var(--dur-fast);
}
.hdr-link::after{
  content:''; position:absolute; left:var(--sp-12); right:var(--sp-12); bottom:6px; height:2px;
  background:var(--accent-600); transform:scaleX(0); transform-origin:left;
  transition:transform var(--dur-base) var(--ease-out);
}
.hdr-link:hover,.hdr-link[aria-current="page"],.hdr-link[aria-expanded="true"]{ color:var(--white); }
.hdr-link:hover::after,.hdr-link[aria-current="page"]::after,.hdr-link[aria-expanded="true"]::after{ transform:scaleX(1); }
.hdr-link svg{ width:16px; height:16px; transition:transform var(--dur-base) var(--ease-out); }
.hdr-link[aria-expanded="true"] svg{ transform:rotate(180deg); }

.hdr-actions{ display:flex; align-items:center; gap:4px; flex-shrink:0; }
.hdr-icon-btn{
  position:relative; width:44px; height:44px; display:grid; place-items:center;
  color:var(--steel-200); border-radius:var(--r-sm);
  transition:color var(--dur-fast), background-color var(--dur-fast);
}
.hdr-icon-btn:hover{ color:var(--white); background:rgba(255,255,255,.07); }
.hdr-icon-btn svg{ width:22px; height:22px; }
.hdr-count{
  position:absolute; top:3px; right:1px; min-width:18px; height:18px; padding:0 5px;
  border-radius:9px; background:var(--accent-600); color:var(--white);
  font-family:var(--font-mono); font-size:11px; line-height:18px; text-align:center;
}
.hdr-cta{ margin-left:var(--sp-8); }
.hdr-burger{ display:none; }

@media (max-width:1279px){ .hdr-link{ padding:0 10px; font-size:.9375rem; letter-spacing:.04em; } }
@media (max-width:1199px){
  .hdr-nav,.hdr-cta{ display:none; }
  .hdr-burger{ display:grid; }
  .hdr-actions{ margin-left:auto; }
}
@media (max-width:767px){
  :root{ --header-h:64px; --header-h-scrolled:56px; }
  .hdr-logo{ gap:9px; }
  .hdr-logo-mark,.site-header.is-scrolled .hdr-logo-mark{ height:32px; }
  .hdr-logo-word,.site-header.is-scrolled .hdr-logo-word{ height:11px; }
}
@media (max-width:374px){ .hdr-logo-word{ display:none; } }

.page-scrim{
  position:fixed; inset:0; z-index:calc(var(--z-header) - 1);
  background:rgba(4,4,5,.55); opacity:0; visibility:hidden;
  transition:opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.page-scrim.is-on{ opacity:1; visibility:visible; transition-delay:0s; }

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega{
  position:absolute; top:100%; left:0; right:0; z-index:var(--z-megamenu);
  background:var(--graphite-900);
  border-top:1px solid var(--graphite-line); border-bottom:1px solid var(--graphite-line);
  max-height:calc(100dvh - var(--header-h)); overflow-y:auto;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.mega.is-open{ opacity:1; visibility:visible; transform:none; transition-delay:0s; }
@media (max-width:1199px){ .mega{ display:none; } }

.mega-inner{ display:grid; grid-template-columns:300px minmax(0,1fr) 280px; padding-block:var(--sp-32); }
@media (max-width:1359px){ .mega-inner{ grid-template-columns:270px minmax(0,1fr) 240px; } }

.mega-list{ padding-right:var(--sp-16); border-right:1px solid var(--graphite-line); }
.mega-item{
  display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:var(--sp-12);
  padding:8px 12px; color:var(--steel-200); border-radius:var(--r-sm);
  transition:background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.mega-item-icon{ width:34px; height:34px; color:var(--steel-400); transition:color var(--dur-fast); }
.mega-item-icon svg{ width:100%; height:100%; }
.mega-item-name{ font-family:var(--font-display); font-weight:600; font-size:1.0625rem; letter-spacing:.04em; text-transform:uppercase; }
.mega-item-count{ font-family:var(--font-mono); font-size:12px; color:var(--steel-400); }
.mega-item:hover,.mega-item.is-active{ background:var(--graphite-800); color:var(--white); }
.mega-item.is-active{ box-shadow:inset 2px 0 0 var(--accent-600); }
.mega-item.is-active .mega-item-icon{ color:var(--white); }

.mega-pane{ padding:0 var(--sp-32); min-height:420px; }
.mega-pane-inner{ animation:megaPane var(--dur-base) var(--ease-out); }
@keyframes megaPane{ from{ opacity:0; transform:translateX(10px); } to{ opacity:1; transform:none; } }
.mega-pane-head{ display:flex; gap:var(--sp-24); align-items:flex-start; padding-bottom:var(--sp-24); border-bottom:1px solid var(--graphite-line); }
.mega-pane-plate{ width:112px; height:112px; flex-shrink:0; display:grid; place-items:center; background:var(--graphite-950); color:var(--steel-200); }
.mega-pane-plate svg{ width:68px; height:68px; }
.mega-pane-num{ font-family:var(--font-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-500); }
.mega-pane-title{ font-family:var(--font-display); font-weight:700; font-size:2.25rem; line-height:1; text-transform:uppercase; margin-top:6px; }
.mega-pane-desc{ margin-top:8px; max-width:52ch; color:var(--steel-400); }
.mega-pane-stats{ display:flex; gap:var(--sp-24); margin-top:var(--sp-12); font-family:var(--font-mono); font-size:13px; color:var(--steel-200); }

.mega-subs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--sp-32); padding-block:var(--sp-16) var(--sp-24); }
.mega-sub{
  display:flex; justify-content:space-between; align-items:center; gap:var(--sp-12);
  min-height:44px; border-bottom:1px solid var(--graphite-line); color:var(--steel-200);
  transition:color var(--dur-fast);
}
.mega-sub > span:first-child{ transition:transform var(--dur-base) var(--ease-out); }
.mega-sub:hover{ color:var(--white); }
.mega-sub:hover > span:first-child{ transform:translateX(6px); }
.mega-sub-count{ font-family:var(--font-mono); font-size:12px; color:var(--steel-400); }

.mega-feature{ position:relative; overflow:hidden; min-height:420px; display:flex; flex-direction:column; justify-content:flex-end; background:var(--graphite-950); }
.mega-feature img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:72% center; transition:transform var(--dur-slow) var(--ease-out); }
.mega-feature::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(8,9,10,.96) 32%, rgba(8,9,10,.15)); }
.mega-feature:hover img{ transform:scale(1.04); }
.mega-feature-body{ position:relative; z-index:1; padding:var(--sp-24); }
.mega-feature-title{ margin:8px 0 16px; font-family:var(--font-display); font-weight:700; font-size:1.5rem; line-height:1.05; text-transform:uppercase; }

/* ==========================================================================
   DRAWER (mobile)
   ========================================================================== */
.drawer{ position:fixed; inset:0; z-index:var(--z-drawer); visibility:hidden; transition:visibility 0s linear var(--dur-slow); }
.drawer.is-open{ visibility:visible; transition-delay:0s; }
.drawer-backdrop{ position:absolute; inset:0; background:rgba(4,4,5,.6); opacity:0; transition:opacity var(--dur-slow) var(--ease-out); }
.drawer.is-open .drawer-backdrop{ opacity:1; }
.drawer-panel{
  position:absolute; top:0; right:0; bottom:0; width:min(420px,100%);
  display:flex; flex-direction:column;
  background:var(--graphite-950); color:var(--white); border-left:1px solid var(--graphite-line);
  transform:translateX(100%); transition:transform var(--dur-slow) var(--ease-out);
}
.drawer.is-open .drawer-panel{ transform:none; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; height:64px; padding:0 var(--sp-16); border-bottom:1px solid var(--graphite-line); flex-shrink:0; }
.drawer-head .hdr-logo-mark{ height:30px; }
.drawer-head .hdr-logo-word{ height:11px; }
.drawer-body{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:var(--sp-16); }

.drawer-search{
  display:flex; align-items:center; gap:4px; height:52px; margin-bottom:var(--sp-8);
  padding:0 4px 0 14px; background:var(--graphite-900);
  border:1px solid var(--graphite-line-strong); border-radius:var(--r-sm);
  transition:border-color var(--dur-fast);
}
.drawer-search:focus-within{ border-color:var(--accent-500); }
.drawer-search input{ flex:1; min-width:0; height:100%; background:none; border:0; outline:none; font-size:16px; color:var(--white); }
.drawer-search input::placeholder{ color:var(--steel-500); }
.drawer-search button{ width:44px; height:44px; display:grid; place-items:center; color:var(--steel-200); }
.drawer-search button svg{ width:20px; height:20px; }

.drawer-link,.drawer-acc{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  min-height:56px; padding:0 4px; border-bottom:1px solid var(--graphite-line);
  font-family:var(--font-display); font-weight:600; font-size:1.25rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--white); text-align:left;
}
.drawer-link[aria-current="page"]{ color:var(--accent-500); }
.drawer-acc svg{ width:20px; height:20px; transition:transform var(--dur-base) var(--ease-out); }
.drawer-acc[aria-expanded="true"] svg{ transform:rotate(180deg); }
.drawer-cats{ padding:6px 0 10px; border-bottom:1px solid var(--graphite-line); }
.drawer-cat{ display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:48px; padding:4px; color:var(--steel-200); }
.drawer-cat svg{ width:32px; height:32px; color:var(--steel-400); }
.drawer-cat-count{ font-family:var(--font-mono); font-size:12px; color:var(--steel-400); }
.drawer-foot{ flex-shrink:0; padding:var(--sp-16); padding-bottom:calc(var(--sp-16) + env(safe-area-inset-bottom)); border-top:1px solid var(--graphite-line); }

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay{ position:fixed; inset:0; z-index:var(--z-modal); visibility:hidden; transition:visibility 0s linear var(--dur-slow); }
.search-overlay.is-open{ visibility:visible; transition-delay:0s; }
.search-backdrop{ position:absolute; inset:0; background:rgba(4,4,5,.72); opacity:0; transition:opacity var(--dur-base) var(--ease-out); }
.search-overlay.is-open .search-backdrop{ opacity:1; }
.search-panel{
  position:relative; max-height:100dvh; overflow-y:auto;
  padding-block:var(--sp-24) var(--sp-32);
  background:var(--graphite-950); color:var(--white); border-bottom:1px solid var(--graphite-line);
  transform:translateY(-100%); transition:transform var(--dur-slow) var(--ease-out);
}
.search-overlay.is-open .search-panel{ transform:none; }

.search-form{ display:flex; align-items:center; gap:var(--sp-16); padding-bottom:var(--sp-12); border-bottom:2px solid var(--graphite-line-strong); transition:border-color var(--dur-base); }
.search-form:focus-within{ border-color:var(--accent-600); }
.search-form-icon{ width:28px; height:28px; flex-shrink:0; color:var(--steel-400); }
.search-form-icon svg{ width:100%; height:100%; }
.search-input{
  flex:1; min-width:0; height:64px; background:none; border:0; outline:none;
  font-family:var(--font-display); font-weight:600; font-size:clamp(1.5rem, 1rem + 2vw, 2.5rem); letter-spacing:.02em;
  color:var(--white);
}
.search-input::placeholder{ color:var(--steel-500); }
.search-input::-webkit-search-cancel-button{ display:none; }
.search-close{ width:48px; height:48px; display:grid; place-items:center; flex-shrink:0; color:var(--steel-200); }
.search-close:hover{ color:var(--white); }
.search-close svg{ width:24px; height:24px; }

.search-hints{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:var(--sp-16); font-size:.875rem; color:var(--steel-400); }
.search-chip{
  min-height:40px; padding:0 14px; border:1px solid var(--graphite-line-strong); border-radius:2px;
  font-family:var(--font-mono); font-size:13px; color:var(--steel-200);
  transition:border-color var(--dur-fast), color var(--dur-fast);
}
.search-chip:hover{ border-color:var(--accent-500); color:var(--white); }

.search-results{ margin-top:var(--sp-24); }
.search-meta{ margin-bottom:var(--sp-12); font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-400); }
.search-hits{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--graphite-line); border:1px solid var(--graphite-line); }
.search-hit{
  display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:var(--sp-16);
  padding:12px 16px; background:var(--graphite-950); transition:background-color var(--dur-fast);
}
.search-hit:hover,.search-hit:focus-visible{ background:var(--graphite-850); }
.search-hit:focus-visible{ outline-offset:-2px; }
.search-hit-icon{ width:56px; height:56px; display:grid; place-items:center; background:var(--graphite-900); color:var(--steel-200); }
.search-hit-icon svg{ width:36px; height:36px; }
.search-hit-body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.search-hit-article{ font-family:var(--font-mono); font-size:12px; color:var(--accent-500); }
.search-hit-name{ font-size:.9375rem; line-height:1.3; color:var(--white); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.search-hit-cat{ font-size:12px; color:var(--steel-400); }
.search-hit-price{ font-family:var(--font-display); font-weight:700; font-size:1.125rem; white-space:nowrap; text-align:right; }
.search-hit-price small{ display:block; font-family:var(--font-mono); font-weight:400; font-size:11px; color:var(--steel-400); }
.search-all{ margin-top:var(--sp-16); }
.search-empty{ display:flex; flex-direction:column; align-items:flex-start; gap:var(--sp-12); padding-block:var(--sp-24); color:var(--steel-200); }
.search-empty strong{ color:var(--white); }

@media (max-width:767px){
  .search-hits{ grid-template-columns:1fr; }
  .search-hit{ grid-template-columns:44px minmax(0,1fr); gap:var(--sp-12); }
  .search-hit-icon{ width:44px; height:44px; }
  .search-hit-icon svg{ width:28px; height:28px; }
  .search-hit-price{ grid-column:2; text-align:left; }
  .search-hit-price small{ display:inline; margin-left:6px; }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal{ position:fixed; inset:0; z-index:var(--z-modal); display:grid; place-items:center; padding:var(--sp-16); visibility:hidden; transition:visibility 0s linear var(--dur-base); }
.modal.is-open{ visibility:visible; transition-delay:0s; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(4,4,5,.74); opacity:0; transition:opacity var(--dur-base) var(--ease-out); }
.modal.is-open .modal-backdrop{ opacity:1; }
.modal-dialog{
  position:relative; width:100%; max-width:640px; max-height:calc(100dvh - 32px); overflow-y:auto;
  padding:var(--sp-32); background:var(--graphite-900); color:var(--white);
  border-top:2px solid var(--accent-600);
  opacity:0; transform:translateY(16px) scale(.985);
  transition:opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.modal.is-open .modal-dialog{ opacity:1; transform:none; }
.modal-close{ position:absolute; top:10px; right:10px; }
.modal-title{ margin-top:var(--sp-12); font-size:clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); padding-right:40px; }
.modal-lead{ margin:var(--sp-8) 0 var(--sp-24); color:var(--steel-400); }

.req-block{ margin-bottom:var(--sp-24); }
.req-block-title{ margin-bottom:var(--sp-8); font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-200); }
.req-list{ border:1px solid var(--graphite-line); max-height:220px; overflow-y:auto; }
.req-item{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--sp-12); padding:8px 6px 8px 12px; border-bottom:1px solid var(--graphite-line); font-size:.875rem; }
.req-item:last-child{ border-bottom:0; }
.req-item-article{ display:block; font-family:var(--font-mono); font-size:12px; color:var(--accent-500); }
.req-item-name{ color:var(--steel-200); }
.req-item-size{ color:var(--white); }
.req-item-remove{ width:40px; height:40px; display:grid; place-items:center; color:var(--steel-400); }
.req-item-remove:hover{ color:var(--white); }
.req-item-remove svg{ width:18px; height:18px; }

@media (max-width:600px){
  .modal{ place-items:end stretch; padding:0; }
  .modal-dialog{ max-width:none; max-height:94dvh; padding:var(--sp-24) var(--sp-16); padding-bottom:calc(var(--sp-24) + env(safe-area-inset-bottom)); transform:translateY(100%); clip-path:none; }
  .modal.is-open .modal-dialog{ transform:none; }
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-16); margin-bottom:var(--sp-24); }
.form-grid .span-2{ grid-column:1 / -1; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field-label{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-200); }
.field-label .req{ color:var(--accent-500); }
.field-input{
  width:100%; min-height:50px; padding:12px 14px;
  background:var(--graphite-950); color:var(--white);
  border:1px solid var(--graphite-line-strong); border-radius:var(--r-sm);
  font-size:1rem; transition:border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field-input::placeholder{ color:var(--steel-500); }
.field-input:hover{ border-color:var(--graphite-600); }
.field-input:focus{ outline:none; border-color:var(--accent-500); box-shadow:0 0 0 3px rgba(163,17,27,.25); }
textarea.field-input{ min-height:104px; resize:vertical; }
select.field-input{
  appearance:none; padding-right:44px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ea4' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='5,8.5 12,15.5 19,8.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:18px;
}
.field-error{ font-size:.8125rem; line-height:1.35; color:#ff3b30; }
.field-error:empty{ display:none; }
.field.is-invalid .field-input{ border-color:#ff3b30; }

.check{ display:flex; align-items:flex-start; gap:10px; font-size:.875rem; color:var(--steel-200); cursor:pointer; }
.check input{
  appearance:none; flex-shrink:0; width:22px; height:22px; margin:0;
  display:grid; place-items:center; cursor:pointer;
  background:var(--graphite-950); border:1px solid var(--graphite-line-strong); border-radius:2px;
  transition:background-color var(--dur-fast), border-color var(--dur-fast);
}
.check input:checked{ background:var(--accent-600); border-color:var(--accent-600); }
.check input:checked::after{ content:''; width:10px; height:6px; border-left:2px solid var(--white); border-bottom:2px solid var(--white); transform:translateY(-1px) rotate(-45deg); }
.check input:focus-visible{ outline:2px solid var(--accent-500); outline-offset:2px; }
.field.is-invalid .check input{ border-color:#ff3b30; }

.form-alert{ margin-bottom:var(--sp-16); padding:10px 12px; border-left:3px solid #ff3b30; background:rgba(255,59,48,.08); color:#ff453a; font-size:.875rem; }

.form-success{ display:flex; flex-direction:column; align-items:flex-start; gap:var(--sp-12); padding-block:var(--sp-16); }
.form-success:focus{ outline:none; }
.form-success-icon{ width:56px; height:56px; display:grid; place-items:center; background:var(--accent-600); color:var(--white); }
.form-success-icon svg{ width:28px; height:28px; }
.form-success-title{ font-size:var(--fs-h3); }
.form-success-text{ color:var(--steel-200); max-width:46ch; }

/* paper variant */
.form--paper .field-label{ color:var(--steel-600); }
.form--paper .field-label .req{ color:var(--accent-600); }
.form--paper .field-input{ background:var(--paper-0); color:var(--ink-950); border-color:var(--paper-line-strong); }
.form--paper .field-input:hover{ border-color:var(--steel-500); }
.form--paper .field-input:focus{ border-color:var(--accent-600); }
.form--paper .field-error{ color:var(--accent-700); }
.form--paper .field.is-invalid .field-input{ border-color:var(--accent-700); }
.form--paper .check{ color:var(--steel-600); }
.form--paper .check input{ background:var(--paper-0); border-color:var(--paper-line-strong); }
.form--paper .form-alert{ color:var(--accent-700); background:rgba(163,17,27,.06); border-color:var(--accent-600); }

/* ==========================================================================
   CATEGORY CARD — hairline engineering grid
   ========================================================================== */
.cat-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; background:var(--graphite-line); border:1px solid var(--graphite-line); }
@media (max-width:1023px){ .cat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

.cat-card{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; flex-direction:column; min-height:300px; padding:var(--sp-24);
  background:var(--graphite-950); color:var(--white);
  transition:background-color var(--dur-base) var(--ease-out);
}
.cat-card:hover{ background:var(--graphite-900); }
.cat-card:focus-visible{ outline-offset:-3px; }
.cat-card::after{
  content:''; position:absolute; left:0; bottom:0; width:100%; height:2px;
  background:var(--accent-600); transform:scaleX(0); transform-origin:left;
  transition:transform var(--dur-slow) var(--ease-out);
}
.cat-card:hover::after,.cat-card:focus-visible::after{ transform:scaleX(1); }

.cat-card-num{
  font-family:var(--font-display); font-weight:800; font-size:4.5rem; line-height:.8;
  color:transparent; -webkit-text-stroke:1px var(--graphite-600);
  transition:-webkit-text-stroke-color var(--dur-base);
}
.cat-card:hover .cat-card-num{ -webkit-text-stroke-color:var(--accent-600); }
.cat-card-icon{
  position:absolute; top:var(--sp-24); right:var(--sp-24); width:64px; height:64px;
  color:var(--steel-400); transition:transform var(--dur-slow) var(--ease-out), color var(--dur-base);
}
.cat-card-icon svg{ width:100%; height:100%; }
.cat-card:hover .cat-card-icon{ color:var(--white); transform:rotate(-14deg) scale(1.06); }
.cat-card-title{ margin-top:auto; font-size:1.5rem; line-height:1; }
.cat-card-desc{ margin-top:var(--sp-8); font-size:.875rem; line-height:1.45; color:var(--steel-400); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.cat-card-meta{
  display:flex; align-items:center; justify-content:space-between; gap:var(--sp-8);
  margin-top:var(--sp-16); padding-top:var(--sp-12); border-top:1px solid var(--graphite-line);
  font-family:var(--font-mono); font-size:12px; color:var(--steel-200);
}
.cat-card-arrow{ width:20px; height:20px; flex-shrink:0; transition:transform var(--dur-base) var(--ease-out), color var(--dur-base); }
.cat-card-arrow svg{ width:100%; height:100%; }
.cat-card:hover .cat-card-arrow{ transform:translateX(4px); color:var(--accent-500); }

@media (max-width:1279px){ .cat-card{ padding:var(--sp-16); } .cat-card-num{ font-size:3.5rem; } .cat-card-icon{ width:52px; height:52px; top:var(--sp-16); right:var(--sp-16); } .cat-card-title{ font-size:1.25rem; } }
@media (max-width:600px){
  .cat-card{ min-height:200px; padding:14px; }
  .cat-card-num{ font-size:2.5rem; }
  .cat-card-icon{ width:40px; height:40px; top:14px; right:14px; }
  .cat-card-title{ font-size:1.0625rem; }
  .cat-card-desc{ display:none; }
  .cat-card-meta{ font-size:11px; }
}

/* ==========================================================================
   PRODUCT CARD — chamfered plate
   ========================================================================== */
.p-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:var(--sp-24); }
@media (max-width:600px){ .p-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-12); } }

.p-card{
  --notch:16px;
  height:100%; padding:1px; background:var(--paper-line);
  clip-path:polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition:background-color var(--dur-base) var(--ease-out);
}
.p-card:hover{ background:var(--ink-950); }
.p-card-inner{
  position:relative; height:100%; display:flex; flex-direction:column; background:var(--paper-0);
  clip-path:polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.p-card-media{
  position:relative; overflow:hidden; display:grid; place-items:center; aspect-ratio:4 / 3;
  color:var(--steel-200); background-color:var(--graphite-950);
  background-image:linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:20px 20px;
}
.p-card-media::after{
  content:''; position:absolute; left:8%; right:8%; bottom:-45%; height:75%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(163,17,27,.32), transparent);
  opacity:.5; transition:opacity var(--dur-slow) var(--ease-out);
}
.p-card:hover .p-card-media::after{ opacity:1; }
.p-card-icon{ position:relative; z-index:1; display:block; width:44%; max-width:118px; transition:transform var(--dur-slow) var(--ease-out), color var(--dur-base); }
.p-card-icon svg{ width:100%; height:auto; }
.p-card:hover .p-card-icon{ color:var(--white); transform:scale(1.08) rotate(-8deg); }

/* ---- Photo cards: white media on top, black body below ---- */
.p-card-media.has-photo{ background-color:var(--paper-0); background-image:none; }
.p-card-media.has-photo::after{ display:none; }
.p-card-photo{
  position:relative; z-index:1; display:grid; place-items:center; width:100%; height:100%; padding:9%;
  transition:transform var(--dur-slow) var(--ease-out);
}
.p-card-photo img{ width:100%; height:100%; object-fit:contain; }
.p-card:hover .p-card-photo{ transform:scale(1.045); }
.p-card-code,.p-card-count{ position:absolute; z-index:1; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; }
.p-card-code{ top:12px; left:14px; color:var(--steel-400); text-transform:uppercase; }
.p-card-count{ bottom:12px; right:14px; color:var(--steel-200); }
.p-card-media.has-photo .p-card-code{ color:var(--steel-500); }
.p-card-media.has-photo .p-card-count{ color:var(--steel-600); }

.p-card-body{ flex:1; display:flex; flex-direction:column; gap:var(--sp-8); padding:var(--sp-16); transition:background-color var(--dur-base) var(--ease-out); }
.p-card-article{ font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--accent-600); }
.p-card-title{
  font-family:var(--font-body); font-weight:600; font-size:.9375rem; line-height:1.35;
  letter-spacing:0; text-transform:none; color:var(--ink-950);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.p-card-title a::before{ content:''; position:absolute; inset:0; z-index:1; }
.p-card-title a:focus-visible{ outline:none; }
.p-card-title a:focus-visible::before{ box-shadow:inset 0 0 0 3px var(--accent-600); }
.p-card-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.p-card-chips li{ padding:3px 8px; border-radius:2px; background:var(--paper-100); color:var(--steel-600); font-family:var(--font-mono); font-size:11px; line-height:1.4; }
.p-card-foot{
  margin-top:auto; display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:var(--sp-12);
  padding-top:var(--sp-12); border-top:1px solid var(--paper-line);
}
.p-card-cta{ position:relative; z-index:2; }

.p-price{ display:flex; flex-direction:column; gap:3px; }
.price-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-500); }
.price-value{ font-family:var(--font-display); font-weight:700; font-size:1.5rem; line-height:1; font-variant-numeric:tabular-nums; color:var(--ink-950); white-space:nowrap; }
.price-request{ font-family:var(--font-display); font-weight:600; font-size:1.0625rem; line-height:1.1; letter-spacing:.03em; text-transform:uppercase; color:var(--accent-600); }

/* ---- Photo cards: black body ---- */
.p-card.has-photo .p-card-body{ background:var(--graphite-950); gap:6px; padding:12px 14px 14px; }
.p-card.has-photo .p-card-article{ color:var(--accent-500); text-shadow:var(--accent-text-glow); }
.p-card.has-photo .p-card-title{ color:var(--white); -webkit-line-clamp:2; }
.p-card.has-photo .p-card-title a:focus-visible::before{ box-shadow:inset 0 0 0 3px var(--accent-500); }
.p-card.has-photo .p-card-chips li{ background:var(--graphite-800); color:var(--steel-200); }
.p-card.has-photo .p-card-foot{ border-top-color:var(--graphite-line); padding-top:10px; }
.p-card.has-photo .price-label{ color:var(--steel-400); }
.p-card.has-photo .price-value{ color:var(--white); }
.p-card.has-photo .price-request{ color:var(--accent-500); text-shadow:var(--accent-text-glow); }
.p-card.has-photo .btn-ghost{ --ghost-line:rgba(255,255,255,.34); color:var(--white); }

@media (max-width:600px){
  .p-card{ --notch:12px; }
  .p-card-body{ padding:12px; gap:6px; }
  .p-card-title{ font-size:.875rem; }
  .p-card-chips li:nth-child(n+2){ display:none; }
  .price-value{ font-size:1.25rem; }
  .p-card-foot{ flex-direction:column; align-items:stretch; }
  .p-card-cta{ width:100%; padding:0 12px; }
}

/* ==========================================================================
   INNER PAGE HERO + BREADCRUMBS
   ========================================================================== */
.page-hero{
  position:relative; overflow:hidden;
  padding-top:calc(var(--header-h) + var(--sp-48)); padding-bottom:var(--sp-48);
  background:var(--graphite-950); color:var(--white); border-bottom:1px solid var(--graphite-line);
}
.page-title{ margin-top:var(--sp-16); font-size:var(--fs-h1); }
.page-lead{ margin-top:var(--sp-16); max-width:62ch; font-size:var(--fs-body-lg); color:var(--steel-200); }

.breadcrumbs ol{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--steel-400); }
.breadcrumbs a{ color:var(--steel-200); transition:color var(--dur-fast); }
.breadcrumbs a:hover{ color:var(--white); }
.breadcrumbs li + li::before{ content:'/'; margin-right:6px; color:var(--graphite-600); }
.breadcrumbs [aria-current]{ color:var(--white); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast{
  position:fixed; left:50%; bottom:24px; z-index:var(--z-toast);
  display:flex; align-items:center; gap:12px; max-width:calc(100% - 32px);
  padding:12px 18px 12px 12px; background:var(--white); color:var(--ink-950);
  font-size:.9375rem; box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translate(-50%, 16px);
  transition:opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.toast.is-on{ opacity:1; visibility:visible; transform:translate(-50%, 0); transition-delay:0s; }
.toast-icon{ width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; background:var(--accent-600); color:var(--white); }
.toast-icon svg{ width:16px; height:16px; }
.toast a{ color:var(--accent-700); font-weight:600; text-decoration:underline; text-underline-offset:3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ position:relative; overflow:hidden; padding-top:var(--sp-64); background:var(--graphite-950); color:var(--steel-200); border-top:1px solid var(--graphite-line); }
.ftr-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:var(--sp-48); padding-bottom:var(--sp-48); }
.ftr-logo{ width:auto; height:104px; mix-blend-mode:lighten; }
.ftr-brand p{ margin:var(--sp-16) 0 var(--sp-24); max-width:38ch; font-size:.9375rem; color:var(--steel-400); }
.ftr-title{ margin-bottom:var(--sp-16); font-family:var(--font-mono); font-weight:500; font-size:.8125rem; letter-spacing:.16em; color:var(--steel-400); }
.ftr-col a:not(.link-rule){ display:inline-block; padding:6px 0; color:var(--steel-200); transition:color var(--dur-fast), transform var(--dur-fast); }
.ftr-col a:not(.link-rule):hover{ color:var(--white); transform:translateX(3px); }
.ftr-muted{ margin-bottom:var(--sp-16); font-size:.9375rem; color:var(--steel-400); }
.ftr-wordmark{
  font-family:var(--font-display); font-weight:800; font-size:clamp(3rem, 13.5vw, 13rem);
  line-height:.78; letter-spacing:-.01em; text-transform:uppercase; text-align:center; white-space:nowrap;
  color:transparent; -webkit-text-stroke:1px var(--graphite-700); user-select:none;
}
.ftr-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--sp-12); padding-block:var(--sp-24); border-top:1px solid var(--graphite-line); font-size:.8125rem; color:var(--steel-400); }

@media (max-width:1023px){ .ftr-top{ grid-template-columns:1fr 1fr; gap:var(--sp-32); } .ftr-brand{ grid-column:1 / -1; } }
@media (max-width:600px){ .ftr-contacts{ grid-column:1 / -1; } .ftr-logo{ height:84px; } }

/* Small red text on graphite: dark red + glow instead of a lighter, pinkish tint */
.eyebrow,.mega-pane-num,.search-hit-article,.req-item-article,.drawer-link[aria-current="page"]{ text-shadow:var(--accent-text-glow); }
.section-paper .eyebrow,.section-paper-alt .eyebrow{ text-shadow:none; }

/* New logo has no crown, so the mark is wider — keep its visual size by lowering the height */
.hdr-logo-mark{ height:30px; }
.site-header.is-scrolled .hdr-logo-mark{ height:26px; }
.drawer-head .hdr-logo-mark{ height:24px; }
@media (max-width:767px){ .hdr-logo-mark,.site-header.is-scrolled .hdr-logo-mark{ height:24px; } }
.ftr-logo{ height:88px; }
@media (max-width:600px){ .ftr-logo{ height:70px; } }

/* Search results: product photo thumbnails */
.search-hit-icon.has-photo{ background:var(--paper-0); }
.search-hit-icon.has-photo img{ width:100%; height:100%; padding:4px; object-fit:contain; }
