/*
 * Pipe Wrench Pete ($WRENCHP) — the boiler room. Dark copper and brass, steam white type, one orange wrench,
 * stencil headlines like the lettering on a service van, and a work order instead of a certificate.
 * Pipe Wrench Pete（$WRENCHP）——锅炉房。深色铜与黄铜、蒸汽白的字、一把橙色管钳，
 * 维修车上那种模板喷字做标题，合约区做成一张工单。
 */
:root {
  --boiler: #10201d;
  --boiler-2: #15292a;
  --boiler-3: #1d3634;
  --steam: #f3efe6;
  --steam-soft: #c9c4b8;
  --copper: #b5673a;
  --brass: #d9a441;
  --teal: #2fb3a3;
  --orange: #ff6a1a;
  --orange-deep: #e05a12;
  --ink: #141414;
  --display: 'Big Shoulders Stencil', 'Impact', sans-serif;
  --sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--boiler); color: var(--steam); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* Header / 页眉 */
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--boiler) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(243, 239, 230, 0.12); }
.monogram { font: 700 clamp(22px, 1.8vw, 28px)/1 var(--display); letter-spacing: 0.06em; color: var(--steam); }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 40px); font: 700 15px/1 var(--sans); }
.site-nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s var(--ease); }
.site-nav a:hover { border-color: var(--orange); }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.header-social { font: 700 14px/1 var(--sans); padding: 8px 10px; border: 1.5px solid var(--steam); border-radius: 999px; }
.header-ticker { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--copper); color: var(--steam); font: 700 16px/1 var(--display); letter-spacing: 0.06em; transition: transform 0.2s var(--ease); }
.header-ticker:hover { transform: translateY(-1px); }

/* Hero / 首屏 */
.hero { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); overflow: hidden; background: radial-gradient(120% 80% at 70% 40%, var(--boiler-3) 0%, var(--boiler) 70%); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%); mask-image: linear-gradient(to right, transparent 0, #000 34%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 46%) 1fr; min-height: inherit; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(84px, 9vw, 110px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 720px; }
.eyebrow { font: 700 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); }
.dot { opacity: 0.55; padding: 0 2px; }
.wordmark { font: 700 clamp(64px, 9.6vw, 150px)/0.86 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--steam); max-width: 6.2ch; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero-lede { font: 700 clamp(24px, 2.6vw, 36px)/1.15 var(--sans); color: var(--steam); }
.hero-line { font: 500 clamp(17px, 1.5vw, 21px)/1.4 var(--sans); color: var(--steam-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 6px; font: 700 15px/1 var(--sans); border: 1.5px solid var(--steam); transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn-steam { background: transparent; color: var(--steam); }
.btn-steam:hover { background: var(--steam); color: var(--ink); }
.btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--steam); }
.ca-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius); background: rgba(16, 32, 29, 0.72); border: 1px solid rgba(243, 239, 230, 0.2); width: fit-content; }
.ca-label { font: 700 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.ca-short { font: 400 15px/1 var(--mono); color: var(--steam); }
.btn-copy { padding: 10px 14px; border-radius: 6px; border: 1.5px solid var(--orange); background: var(--orange); color: var(--ink); font: 700 14px/1 var(--sans); transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.is-copied { background: var(--teal); border-color: var(--teal); }
.btn-copy-sm { padding: 7px 12px; font-size: 13px; }
.hero-note { font: 400 14px/1.5 var(--sans); color: var(--steam-soft); max-width: 56ch; }
.caption { position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 14px/1.4 var(--mono); color: var(--steam-soft); max-width: 48ch; }
.btn-fix { padding: 7px 12px; border-radius: 6px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); font: 700 13px/1 var(--sans); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.btn-fix:hover, .is-fixed .btn-fix { background: var(--teal); color: var(--ink); }
.stamp { position: absolute; font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; border: 1.5px solid var(--brass); border-radius: 6px; color: var(--brass); transform: rotate(-4deg); background: rgba(16, 32, 29, 0.6); }
.stamp-hero { right: var(--gutter); bottom: clamp(20px, 3vw, 36px); }

/* The drip: three drops falling in the lower-left of the hero; stops when fixed / 水滴：首屏左下三滴往下落，修好就停 */
.drip { position: absolute; left: 8%; bottom: 0; width: 6px; height: 34%; pointer-events: none; z-index: 1; }
.drip span { position: absolute; left: 0; top: 0; width: 6px; height: 14px; border-radius: 50% 50% 60% 60%; background: var(--teal); opacity: 0; animation: fall 1.8s linear infinite; }
.drip span:nth-child(2) { animation-delay: 0.6s; }
.drip span:nth-child(3) { animation-delay: 1.2s; }
.is-fixed .drip span { animation-play-state: paused; opacity: 0; }
.is-fixed .caption-leak { text-decoration: line-through; opacity: 0.6; }
@keyframes fall { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.9; } 100% { transform: translateY(100%); opacity: 0; } }

/* Running head / 跑马灯 */
.running-head { overflow: hidden; background: var(--orange); color: var(--ink); padding: 12px 0; font: 700 13px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.running-track { display: flex; gap: 48px; width: max-content; animation: run 42s linear infinite; }
.running-track span::before { content: '◆'; margin-right: 18px; font-size: 9px; vertical-align: 1px; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections / 区块 */
.section { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.kicker { font: 700 clamp(12px, 1vw, 14px)/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.kicker-light { color: var(--teal); }
.section h2 { font: 700 clamp(34px, 4.4vw, 64px)/0.98 var(--display); letter-spacing: 0.01em; text-transform: uppercase; max-width: 20ch; }
.section p + p { margin-top: 14px; }
.plain { color: var(--steam-soft); }

/* The leak / 漏水 */
.leak { background: var(--boiler-2); }
.leak-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.leak-copy h2 { margin-bottom: 26px; }
.jobs { border-top: 1.5px solid var(--brass); margin-top: 8px; }
.jobs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(243, 239, 230, 0.16); font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--sans); }
.jobs .done { font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }

/* House rules / 规矩 */
.rules-section { background: var(--boiler); }
.rules-section h2 { margin-bottom: 40px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rules li { position: relative; padding: 28px 24px 26px; background: var(--boiler-2); border-radius: var(--radius); border: 1.5px solid rgba(217, 164, 65, 0.35); }
.rule-no { display: inline-block; font: 700 13px/1 var(--mono); letter-spacing: 0.2em; color: var(--orange); margin-bottom: 18px; }
.rules h3 { font: 700 clamp(24px, 2.2vw, 32px)/1.05 var(--display); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 12px; }
.rules p { color: var(--steam-soft); font-size: 15.5px; }

/* After hours / 下班后 */
.after { position: relative; min-height: clamp(520px, 72vh, 820px); background: #070b0a; color: var(--steam); overflow: hidden; }
.after-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.after-copy { position: relative; z-index: 1; padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.after-line { font: 700 clamp(40px, 6.4vw, 104px)/0.95 var(--display); letter-spacing: 0.01em; text-transform: uppercase; max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.stamp-after { left: var(--gutter); bottom: clamp(20px, 3vw, 36px); transform: rotate(3deg); }

/* Call Pete / 叫 Pete（亮底，像工单纸） */
.call { background: var(--steam); color: var(--ink); }
.call .kicker { color: var(--copper); }
.call .plain { color: #4a4744; }
.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.action img { border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--boiler); }
.action figcaption { margin-top: 10px; font: 700 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4a4744; }
.call-copy h2 { margin-bottom: 18px; }
.ticker-inline { font: 700 1.1em/1 var(--display); color: var(--copper); letter-spacing: 0.04em; }
.call-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ca-block { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.ca-block .ca-label { color: var(--copper); }
.ca-full { font: 400 14px/1.5 var(--mono); word-break: break-all; color: var(--ink); }
.ca-block .btn-copy { width: fit-content; }

/* Work order / 工单 */
.workorder { background: var(--boiler-2); }
.order-card { max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); background: var(--steam); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--copper); background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(20, 20, 20, 0.06) 31px 32px); }
.order-head { text-align: center; margin-bottom: 26px; }
.order-head .kicker { color: var(--copper); margin-bottom: 12px; }
.order-head h2 { margin: 0 auto; }
.order-sub { margin-top: 10px; font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #4a4744; }
.order-rows { border-top: 1.5px solid var(--ink); }
.order-rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(20, 20, 20, 0.2); }
.order-rows dt { font: 700 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #4a4744; }
.order-rows dd { font: 700 15px/1.45 var(--sans); }
.order-rows dd a { text-decoration: underline; text-underline-offset: 3px; }
.row-ca dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-ca code { font: 400 13px/1.5 var(--mono); word-break: break-all; }
.order-sign { margin-top: 22px; display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; font: 400 14px/1 var(--mono); color: #4a4744; }
.order-sign .sign { font: 700 34px/1 var(--display); color: var(--copper); letter-spacing: 0.04em; transform: rotate(-3deg); display: inline-block; }

/* Footer / 页脚 */
.site-footer { padding: 32px var(--gutter) 40px; font: 400 13.5px/1.6 var(--sans); color: var(--steam-soft); max-width: 900px; }

/* Reveal / 滚入 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .running-track, .drip span { animation: none; }
}

/* Tablet and below: stacked hero with the tall image / 平板及以下：首屏叠放，用竖图 */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .site-nav { justify-content: flex-start; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; position: static; display: flex; flex-direction: column; padding: 28px var(--gutter) 0; }
  .hero-copy { position: relative; z-index: 1; max-width: none; gap: 12px; }
  .hero-art { order: 2; position: relative; inset: auto; width: 100%; margin: -36% 0 0; height: auto; z-index: 0; }
  .hero-art img { position: relative; inset: auto; right: auto; top: auto; width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
  .drip { display: none; }
  .caption { position: static; order: 3; padding: 12px var(--gutter) 18px; max-width: none; }
  .stamp-hero { right: 12px; bottom: 64px; z-index: 1; }
  .leak-grid, .call-grid { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}

/* Phone / 手机 */
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .site-nav { display: none; }
  :root { --gutter: 16px; }
  .hero-note { display: none; }
  .hero-art { margin-top: -40%; }
  .wordmark { font-size: clamp(60px, 20vw, 88px); }
  .hero-lede { font-size: 22px; }
  .btn { padding: 11px 15px; font-size: 14px; }
  .after { min-height: 70vh; }
  .after-line { max-width: 10ch; }
  .order-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .order-card { box-shadow: 6px 6px 0 var(--copper); }
  .order-sub { font-size: 11px; letter-spacing: 0.1em; }
}

/* Wide / 超宽 */
@media (min-width: 2000px) {
  body { font-size: 20px; }
  :root { --gutter: 7vw; }
  .hero-copy { max-width: 980px; }
  .wordmark { font-size: clamp(150px, 8.4vw, 220px); }
  .hero-lede, .hero-line, .hero-note { font-size: 1.3em; }
  .btn, .btn-copy { font-size: 18px; padding: 16px 26px; }
  .section h2 { font-size: clamp(64px, 3.6vw, 88px); }
  .order-card { max-width: 1100px; }
  .leak-grid, .call-grid, .rules, .rules-section h2, .site-footer { max-width: 1800px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 3000px) {
  body { font-size: 26px; }
  .wordmark { font-size: clamp(220px, 7.6vw, 290px); }
  .btn, .btn-copy { font-size: 24px; padding: 20px 34px; }
  .leak-grid, .call-grid, .rules, .rules-section h2, .site-footer { max-width: 2600px; }
  .order-card { max-width: 1500px; }
}
