/* Homepage only (shared styles are in site.css) */
/* ---------- Hero: the armatures, glowing */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-photo {
  position: absolute; inset: 0 0 0 auto; width: min(64vw, 980px); z-index: -2;
  background: url("/img/hero-armatures.jpg") center / cover no-repeat;
  filter: saturate(1.25) contrast(1.08);
}
.hero::before { /* fade the photo into the oil */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--oil) 34%, rgba(11, 22, 38, .82) 52%, rgba(11, 22, 38, .15) 78%, rgba(11, 22, 38, .35)),
    linear-gradient(0deg, var(--oil) 0%, rgba(11, 22, 38, 0) 35%),
    linear-gradient(180deg, var(--oil) 0%, rgba(11, 22, 38, 0) 16%);
}
.hero::after { /* copper heat bloom where the windings are */
  content: ""; position: absolute; z-index: -1; right: 8%; top: 18%; width: 520px; height: 360px;
  background: radial-gradient(closest-side, rgba(255, 140, 50, .28), transparent); filter: blur(10px);
}
.hero .wrap { padding-top: 64px; padding-bottom: 140px; }
.since { margin: 0 0 18px; color: var(--copper-hi); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.hero h1 {
  margin: 0; max-width: 15ch; font-weight: 900; line-height: .92; letter-spacing: -.01em;
  font-size: clamp(44px, 7.4vw, 100px); font-variation-settings: "wdth" 118;
}
.wire { display: block; width: min(560px, 90%); height: 26px; margin: 22px 0 18px; overflow: visible; }
.wire path { fill: none; stroke: url(#copper); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wire path { stroke-dashoffset: 1400; animation: wind 1.6s cubic-bezier(.6, .05, .2, 1) .25s forwards; }
  @keyframes wind { to { stroke-dashoffset: 0; } }
}
.hero p.lede { margin: 0; max-width: 52ch; font-size: 19px; color: #d6dfea; }

/* ---------- Two doors: parts store and motor repair */
.doors { position: relative; z-index: 2; margin-top: -96px; }
.doors .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 34px 34px 30px;
  background: linear-gradient(160deg, var(--oil-3), var(--oil-2) 60%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.door::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.door.parts { --accent: var(--volt); }
.door.repair { --accent: linear-gradient(90deg, var(--copper-lo), var(--copper-hi), var(--copper)); }
.door .kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--k); }
.door.parts .kicker { --k: var(--volt-hi); }
.door.repair .kicker { --k: var(--copper-hi); }
.door h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; font-weight: 850; font-variation-settings: "wdth" 115; }
.door p { margin: 0; color: var(--muted); max-width: 46ch; }
.door .glyph { position: absolute; right: -28px; top: -24px; width: 190px; height: 190px; opacity: .14; color: var(--k); pointer-events: none; }
.door.parts .glyph { --k: var(--volt-hi); }
.door.repair .glyph { --k: var(--copper-hi); }
.find { display: flex; margin-top: 6px; }
.find input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; font: 500 17px var(--font); color: var(--text);
  background: rgba(5, 12, 22, .65); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.find input::placeholder { color: #7f91a8; }
.find input:focus { outline: none; border-color: var(--k2); }
.find button {
  height: 52px; padding: 0 22px; border: 0; cursor: pointer; font: 750 16px var(--font); font-variation-settings: "wdth" 110;
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--btn-text); background: var(--btn);
}
.door.parts { --k2: var(--volt); --btn: var(--volt); --btn-text: #fff; }
.door.repair { --k2: var(--copper); --btn: linear-gradient(180deg, var(--copper-hi), var(--copper)); --btn-text: #1a0d02; }
.find button:hover { filter: brightness(1.12); }
.door .more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font-size: 15px; font-weight: 600; }
.door .more a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-solid); }
.door.parts .more a { --accent-solid: var(--volt); }
.door.repair .more a { --accent-solid: var(--copper); }
.door .more a:hover { color: var(--k); }

/* ---------- Sections */
section.band { padding: 84px 0 0; }
.band h2.title { margin: 0 0 6px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 850; line-height: 1.05; font-variation-settings: "wdth" 115; }
.band .intro { margin: 0 0 28px; color: var(--muted); max-width: 60ch; }

/* Parts categories: a parts-bin grid */
.bins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bins li { display: flex; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bins a { flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 14px 18px;
  background: var(--oil); color: var(--text); text-decoration: none; font-weight: 600;
}
.bins a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--volt-hi); border-right: 2px solid var(--volt-hi); transform: rotate(45deg); opacity: .5; }
.bins a:hover { background: var(--oil-2); color: #fff; }
.bins a:hover::after { opacity: 1; }

/* What we rewind */
.rewind { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rewind figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.rewind figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 50%; filter: saturate(1.2); }
.rewind figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(11, 22, 38, .75); }
.rewind ul { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.rewind li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 18px; }
.rewind li a { font-weight: 500; font-size: 15px; color: var(--copper-hi); white-space: nowrap; }
.rewind li a:hover { color: #fff; }

/* Mail-in steps: a real sequence, so they're numbered */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 22px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--oil-2); }
.steps li::before {
  content: counter(s); display: block; margin-bottom: 12px; font-size: 44px; line-height: 1; font-weight: 900; font-variation-settings: "wdth" 125;
  background: linear-gradient(180deg, var(--copper-hi), var(--copper-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 750; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps-cta { margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: var(--radius); text-decoration: none;
  font-weight: 750; font-variation-settings: "wdth" 110; background: linear-gradient(180deg, var(--copper-hi), var(--copper)); color: #1a0d02;
}
.btn:hover { color: #1a0d02; filter: brightness(1.1); }

/* Since 1933 */
.heritage { margin-top: 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--oil-2), var(--oil)); }
.heritage .wrap { display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.heritage .year {
  font-size: clamp(64px, 11vw, 150px); font-weight: 900; line-height: .85; font-variation-settings: "wdth" 125; letter-spacing: -.02em;
  background: linear-gradient(175deg, var(--copper-hi) 10%, var(--copper) 45%, var(--copper-lo) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heritage p { margin: 0; font-size: 20px; max-width: 46ch; color: #d6dfea; }

/* Repair door: jump straight to a category */
.door .cats-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.door .cats-quick a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; border: 1px solid rgba(255, 176, 103, .45); background: rgba(217, 128, 58, .08);
}
.door .cats-quick a:hover { border-color: var(--copper-hi); background: rgba(217, 128, 58, .2); color: #fff; }

@media (max-width: 920px) {
  .doors .wrap, .rewind { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-photo { width: 100%; opacity: .55; }
  .hero::before { background: linear-gradient(180deg, var(--oil) 0%, rgba(11, 22, 38, .45) 22%, var(--oil) 92%); }
}
@media (max-width: 620px) {
  .hero .wrap { padding-top: 36px; padding-bottom: 120px; }
  .hero p.lede { font-size: 17px; }
  .door { padding: 28px 22px 24px; }
  .door .glyph { width: 140px; height: 140px; }
  .find { flex-direction: column; gap: 8px; }
  .find input { flex: none; height: 52px; border-right: 1px solid var(--line); border-radius: var(--radius); }
  .find button { border-radius: var(--radius); }
  .bins { grid-template-columns: 1fr 1fr; }
  .bins a { font-size: 15px; padding: 12px 14px; }
  .steps { grid-template-columns: 1fr; }
  .heritage .wrap { grid-template-columns: 1fr; }
}

/* Rotating wireframe armature */
.rewind figure.arm-fig { aspect-ratio: 4 / 3; background:
  radial-gradient(ellipse 60% 55% at 50% 52%, rgba(61, 139, 255, .13), transparent 70%),
  radial-gradient(ellipse 40% 30% at 50% 60%, rgba(255, 140, 50, .10), transparent 70%),
  linear-gradient(160deg, var(--oil-2), #0a1424); }
.rewind figure.arm-fig::after { box-shadow: inset 0 0 80px rgba(11, 22, 38, .6); }
.arm-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arm-fig figcaption { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
