/* ===========================================================
   REDEMPTION FOUNDRY
   Molten iron: warm iron-black ground, foundry-sand catalog,
   heat used only where heat belongs.
   =========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* iron */
  --iron:        #14110F;   /* ground: warm charcoal, not blue-black */
  --cast:        #1E1A17;   /* raised surface */
  --scale:       #2C2622;   /* mill scale: rules, edges */
  --scale-lit:   #3D352E;
  --bone:        #EDE7DF;   /* primary text */
  --slag:        #9A8B7C;   /* secondary text, oxidized */
  --slag-dim:    #6B5F55;

  /* sand mold */
  --sand:        #CFC3AC;
  --sand-lit:    #DAD0BC;
  --sand-rule:   #A8987E;
  --ink:         #191512;
  --ink-soft:    #4A413A;

  /* heat */
  --heat:        #E2571F;
  --heat-bright: #FFB03A;
  --white-hot:   #FFF3DF;

  --pour: linear-gradient(90deg,
      var(--white-hot) 0%,
      var(--heat-bright) 14%,
      var(--heat) 38%,
      #A62D0D 62%,
      #5A2413 82%,
      var(--scale) 100%);

  --chamfer: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));

  --f: 'Archivo', 'Archivo Expanded', system-ui, -apple-system, sans-serif;
  --gutter: 28px;
  --measure: 62ch;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  font-family: var(--f);
  font-variation-settings: 'wdth' 100;
  background: var(--iron);
  color: var(--bone);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--slag-dim); font-variation-settings: 'wdth' 88; font-size: 0.86em; }

::selection { background: var(--heat); color: var(--white-hot); }

:focus-visible { outline: 2px solid var(--heat-bright); outline-offset: 3px; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--white-hot); }

/* cast-iron grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- maker's mark ---------- */
.mark { display: inline-flex; align-items: center; gap: 12px; }

.mark-plate {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--heat);
  color: var(--iron);
  font-size: 14px;
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.mark-name {
  font-size: 15px;
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: padding .25s ease, background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(20, 17, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--scale);
}

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}

.nav-links { display: flex; gap: 34px; }

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slag);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-link:hover, .nav-link.here { color: var(--bone); border-bottom-color: var(--heat); }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--bone); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 124px 0 64px;
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 18%, rgba(226, 87, 31, 0.10), transparent 62%),
    var(--iron);
}

.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
  width: 100%;
}

.hero-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 44px;
  align-items: center;
}

.hero-title {
  font-size: clamp(38px, 6.2vw, 84px);
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero-title .line-a,
.hero-title .line-b { display: block; }
.hero-title .line-b { margin-left: 0.055em; color: var(--bone); }

/* the pour: one orchestrated motion moment */
.heat-rule {
  height: 9px;
  margin: 34px 0 40px;
  background: var(--scale);
  overflow: hidden;
}
.heat-rule i {
  display: block; height: 100%; width: 100%;
  background: var(--pour);
  transform: scaleX(0);
  transform-origin: left center;
  animation: pour 1.5s cubic-bezier(.2,.75,.25,1) .25s forwards;
}
@keyframes pour { to { transform: scaleX(1); } }

.hero-deck {
  color: var(--slag);
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 38px 0 56px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--scale);
  padding-top: 22px;
  max-width: 660px;
}
.fact { padding-right: 46px; margin-right: 46px; border-right: 1px solid var(--scale); }
.fact:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.fact dt {
  font-size: 34px; font-weight: 800;
  font-variation-settings: 'wdth' 108;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fact dd { font-size: 13.5px; color: var(--slag-dim); font-variation-settings: 'wdth' 90; }

/* stamp */
.hero-stamp { justify-self: end; width: 250px; }
.stamp { width: 100%; height: auto; overflow: visible; }
.stamp-edge { fill: none; stroke: var(--scale-lit); stroke-width: 1.5; }
.stamp-inner { fill: none; stroke: var(--scale); stroke-width: 1; }
.stamp-text {
  fill: var(--slag-dim);
  font-family: var(--f);
  font-size: 13px;
  font-weight: 600;
  font-variation-settings: 'wdth' 96;
}
.stamp-ring { transform-origin: 120px 120px; animation: turn 64s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.stamp-rf {
  fill: var(--heat);
  font-family: var(--f);
  font-size: 62px;
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  text-anchor: middle;
  letter-spacing: -0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  padding: 15px 30px;
  font-family: var(--f);
  font-size: 14.5px;
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none; cursor: pointer;
  clip-path: var(--chamfer);
  transition: background-color .18s ease, color .18s ease;
}
.btn-heat { background: var(--heat); color: var(--iron); }
.btn-heat:hover { background: var(--heat-bright); }
.btn-plain { background: var(--scale); color: var(--bone); }
.btn-plain:hover { background: var(--scale-lit); }
.btn-lg { padding: 20px 40px; font-size: 16px; text-transform: none; letter-spacing: 0; font-variation-settings: 'wdth' 96; }

/* ---------- shared section type ---------- */
.section { padding: 120px 0; }

.h2 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  font-variation-settings: 'wdth' 120;
  line-height: 0.94;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}

/* ---------- the shop ---------- */
.shop { border-top: 1px solid var(--scale); }

.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 84px;
}
.shop-lede p { color: var(--slag); max-width: var(--measure); }
.shop-lede p + p { margin-top: 18px; }

.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--scale);
}
.stage {
  padding: 30px 26px 8px 0;
  border-right: 1px solid var(--scale);
  padding-right: 26px;
}
.stage:last-child { border-right: none; }
.stage-no {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variation-settings: 'wdth' 84;
  color: var(--heat);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.stage-name {
  font-size: 23px;
  font-weight: 700;
  font-variation-settings: 'wdth' 114;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.stage p { font-size: 15.5px; color: var(--slag); line-height: 1.6; }

/* ---------- what the shop covers ---------- */
.covers { margin-top: 76px; border-top: 3px solid var(--scale-lit); padding-top: 30px; }

.covers-lead {
  font-size: 19px;
  font-weight: 600;
  font-variation-settings: 'wdth' 106;
  color: var(--bone);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}

.covers-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--scale);
}
.covers-row dt {
  font-size: 15px;
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.covers-row dd {
  font-size: 16px;
  color: var(--slag);
  font-variation-settings: 'wdth' 94;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .covers { margin-top: 48px; }
  .covers-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .covers-row dt { font-size: 13px; color: var(--heat); }
}

/* ---------- the catalog (sand mold) ---------- */
.catalog {
  background: var(--sand);
  color: var(--ink);
  border-top: 6px solid var(--scale);
  border-bottom: 6px solid var(--scale);
}
.catalog .h2 { color: var(--ink); }

.catalog-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
}
.catalog-head p { color: var(--ink-soft); font-size: 16.5px; }

.entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  padding: 46px 0;
  border-bottom: 1px solid var(--sand-rule);
}
.entry:last-child { border-bottom: none; }

.entry-id { display: flex; flex-direction: column; gap: 10px; }
.entry-no {
  font-size: 12.5px; font-weight: 700;
  font-variation-settings: 'wdth' 90;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
}
.entry-status {
  align-self: start;
  font-size: 12.5px;
  font-weight: 600;
  font-variation-settings: 'wdth' 88;
  padding: 4px 10px;
  background: var(--sand-lit);
  border: 1px solid var(--sand-rule);
  color: var(--ink-soft);
}
.entry-status.status-hot { background: var(--heat); border-color: var(--heat); color: var(--white-hot); }
.entry-status.status-cold { opacity: 0.72; }
.entry-status.status-live { background: var(--ink); border-color: var(--ink); color: var(--sand); }

.entry-link { box-shadow: inset 0 -3px 0 var(--sand-rule); transition: box-shadow .18s ease; }
.entry-link:hover { box-shadow: inset 0 -3px 0 var(--heat); }

.entry-name {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  font-variation-settings: 'wdth' 122;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.entry-redacted { color: var(--ink); letter-spacing: -0.06em; font-size: clamp(26px, 3.1vw, 38px); opacity: .88; }

.entry-desc { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 28px; }

.specs { max-width: 640px; }
.spec {
  display: flex; align-items: baseline;
  font-size: 15px;
  font-variation-settings: 'wdth' 90;
  padding: 5px 0;
}
.spec .k { color: var(--ink-soft); white-space: nowrap; }
.spec .lead { flex: 1 1 auto; border-bottom: 1px dotted var(--sand-rule); margin: 0 9px; transform: translateY(-4px); min-width: 18px; }
.spec .v { color: var(--ink); text-align: right; font-weight: 500; }
.spec em { color: var(--ink-soft); }

/* ---------- the ledger ---------- */
.ledger { padding-bottom: 84px; }
.ledger .h2 { margin-bottom: 44px; }
.ledger-list { list-style: none; }
.row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--scale);
}
.row:last-child { border-bottom: 1px solid var(--scale); }
.row-fig {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  letter-spacing: -0.035em;
  line-height: 1;
}
.row-note { color: var(--slag); max-width: 58ch; font-size: 16.5px; }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; padding: 92px 0 112px; text-align: center; }
.furnace {
  position: absolute;
  left: 50%; bottom: -140px;
  width: min(1100px, 140vw); height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(226,87,31,.40), rgba(226,87,31,.09) 52%, transparent 70%);
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact-title {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-wrap: balance;
}
.contact-sub { color: var(--slag); max-width: 54ch; margin: 0 auto 40px; font-size: 17.5px; text-wrap: balance; }

.signals {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 34px;
  margin-top: 48px;
  font-size: 14.5px;
  color: var(--slag-dim);
  font-variation-settings: 'wdth' 92;
}
.signals li { position: relative; padding-left: 16px; }
.signals li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--heat);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--scale); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .mark-plate { background: var(--scale-lit); color: var(--bone); }
.footer-line { font-size: 13.5px; color: var(--slag-dim); font-variation-settings: 'wdth' 92; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-lower { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-stamp { display: none; }
  .shop-head { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage { border-bottom: 1px solid var(--scale); padding-bottom: 26px; }
  .stage:nth-child(2n) { border-right: none; }
  .stage:nth-child(n+3) { border-bottom: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding: 84px 0; }

  .nav-toggle { display: flex; z-index: 1002; }
  .nav .mark { position: relative; z-index: 1002; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--iron);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px;
    padding: 0 var(--gutter);
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link {
    font-size: 40px;
    font-weight: 800;
    font-variation-settings: 'wdth' 118;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    border-bottom: none;
    color: var(--bone);
  }

  .hero { padding: 120px 0 64px; }
  .hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .fact { border-right: none; padding-right: 0; margin-right: 0; }
  .hero-actions { margin: 30px 0 44px; }
  .btn { width: 100%; justify-content: center; }

  .stages { grid-template-columns: 1fr; }
  .stage { border-right: none; border-bottom: 1px solid var(--scale); }
  .stage:last-child { border-bottom: none; }

  .entry { grid-template-columns: 1fr; gap: 20px; }
  .entry-id { flex-direction: row; align-items: center; gap: 14px; }
  .spec { flex-wrap: wrap; }
  .spec .lead { display: none; }
  .spec .k { flex: 1 1 100%; font-size: 13px; letter-spacing: 0.06em; }
  .spec .v { flex: 1 1 100%; text-align: left; }
  .spec { padding: 8px 0; border-bottom: 1px solid var(--sand-rule); }

  .row { grid-template-columns: 1fr; gap: 10px; }
  .contact { padding: 88px 0 88px; }
  .signals { flex-direction: column; align-items: center; }
  .signals li { padding-left: 0; }
  .signals li::before { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heat-rule i { animation: none; transform: scaleX(1); }
  .stamp-ring { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
