/* Peltram Plumbing, LLC — BND mockup. B2B commercial, canyon structure re-expressed.
   Tokens ACSS-mappable. One container, one gutter token. No residential conversion patterns. */

:root {
  --red: #c11718;          /* Peltram red, sampled from the logo */
  --red-dark: #9e1213;
  --charcoal: #1d2124;
  --charcoal-2: #2a2f33;
  --steel: #43484c;
  --text: #24282b;
  --text-muted: #5b6166;
  --paper: #ffffff;
  --concrete: #f0f1f2;
  --line: #dfe2e4;

  --font-display: "IBM Plex Sans Condensed", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --gutter: clamp(20px, 4vw, 44px);
  --container: 1240px;
  --radius: 6px; /* industrial: tight radii */
  --shadow-card: 0 4px 18px rgba(29, 33, 36, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); font-size: 16.5px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; font-style: italic; line-height: 1.08; color: var(--charcoal); letter-spacing: 0.2px; }
h1 .flat, h2 .flat { font-style: normal; }

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--concrete { background: var(--concrete); }
.section--dark { background: var(--charcoal); color: #ccd2d6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; font-style: normal; }
.kicker::before { content: ""; width: 38px; height: 2px; background: var(--red); }
.section--dark .kicker { color: #ff8a8a; }
.section--dark .kicker::before { background: #ff8a8a; }

.h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 16px; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--text-muted); max-width: 760px; }
.section--dark .lede { color: #aab2b8; }

/* Buttons: squared-off industrial, not consumer pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 16px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 16px 34px; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.btn--ghost:hover { background: #fff; color: var(--charcoal); }
.btn--charcoal { background: var(--charcoal); color: #fff; }
.btn--charcoal:hover { background: var(--charcoal-2); }

/* Header */
.topbar { background: var(--charcoal); color: #b7bec3; font-size: 13px; font-family: var(--font-mono); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: #fff; }
.topbar__right { display: flex; gap: 20px; white-space: nowrap; }

.header { background: var(--paper); position: sticky; top: 0; z-index: 70; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 84px; }
.header__logo img { width: clamp(150px, 15vw, 200px); height: auto; }
.nav__list { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav__link { display: block; color: var(--charcoal); font-weight: 600; font-size: 15.5px; padding: 10px 14px; letter-spacing: 0.3px; }
.nav__link:hover { color: var(--red); }
.nav__cta { margin-left: 10px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 95; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer (lean, B2B) */
.drawer { position: fixed; inset: 0; background: var(--charcoal); z-index: 90; transform: translateX(103%); transition: transform 0.3s ease, visibility 0s linear 0.3s; visibility: hidden; display: flex; flex-direction: column; }
.drawer.is-open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.12); }
.drawer__head img { height: 44px; width: auto; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; padding: 6px; }
.drawer__nav { padding: 12px 0; flex: 1; }
.drawer__nav a { display: block; color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 21px; padding: 15px var(--gutter); }
.drawer__nav a:hover { color: #ff8a8a; }
.drawer__foot { padding: 20px var(--gutter) 30px; border-top: 1px solid rgba(255,255,255,0.12); display: grid; gap: 12px; }
.drawer__foot .mono { font-family: var(--font-mono); color: #b7bec3; font-size: 13.5px; line-height: 1.7; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 80; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.scrim.is-open { opacity: 1; visibility: visible; }
body.drawer-locked { overflow: hidden; }

/* Hero: full-bleed real project, centered (canyon) */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 78vh, 780px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,33,36,0.55) 0%, rgba(29,33,36,0.38) 45%, rgba(29,33,36,0.72) 100%); }
.hero .container { text-align: center; padding-top: 80px; padding-bottom: 90px; width: 100%; }
.hero__eyebrow { font-family: var(--font-mono); color: #ffd2d2; font-size: clamp(12px, 1.4vw, 14px); letter-spacing: 3.2px; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 68px); margin-bottom: 16px; }
.hero__sub { color: #e6e9eb; font-size: clamp(17px, 2.2vw, 21px); max-width: 760px; margin: 0 auto 32px; font-weight: 500; }
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__caption { position: absolute; right: 18px; bottom: 14px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; }

/* Spec band: mono numbers */
.specband { background: var(--red); }
.specband .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.spec { text-align: center; color: #ffd9d9; }
.spec strong { display: block; font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 3vw, 38px); color: #fff; line-height: 1.1; }
.spec span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }

/* Builder logo wall */
.wall { text-align: center; }
.wall__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 38px; }
.wall__cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 96px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.wall__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.wall__cell img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* Numbered service lines (canyon device) */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.line-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.line-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.line-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.line-card:hover .line-card__media img { transform: scale(1.04); }
.line-card__body { padding: 26px; flex: 1; }
.line-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 2px; margin-bottom: 8px; }
.line-card h3 { font-size: 22px; margin-bottom: 10px; }
.line-card p { font-size: 15px; color: var(--text-muted); }
.line-card__spec { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--charcoal); background: var(--concrete); border-left: 3px solid var(--red); padding: 10px 12px; line-height: 1.6; }

/* Story split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(29,33,36,0.85)); color: #e6e9eb; font-family: var(--font-mono); font-size: 12px; padding: 28px 16px 12px; }
.marklist { list-style: none; display: grid; gap: 13px; margin-top: 22px; }
.marklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.marklist .sq { flex: 0 0 auto; width: 10px; height: 10px; background: var(--red); margin-top: 8px; }

/* Portfolio strip */
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.portfolio figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.portfolio img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio figure:hover img { transform: scale(1.05); }
.portfolio figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(29,33,36,0.9)); color: #fff; font-family: var(--font-mono); font-size: 11.5px; padding: 26px 12px 10px; letter-spacing: 0.4px; }

/* GC process */
.gcsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.gcstep { background: #fff; border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 26px 22px; }
.gcstep::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 15px; color: var(--red); display: block; margin-bottom: 10px; letter-spacing: 2px; }
.gcstep h3 { font-size: 18.5px; margin-bottom: 8px; }
.gcstep p { font-size: 14.5px; color: var(--text-muted); }

/* Hiring strip */
.hiring { background: var(--charcoal); }
.hiring .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.hiring p { color: #ccd2d6; font-size: 16px; }
.hiring p strong { color: #fff; }

/* CTA band */
.ctaband { position: relative; isolation: isolate; overflow: hidden; }
.ctaband__bg { position: absolute; inset: 0; z-index: -2; }
.ctaband__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ctaband__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29,33,36,0.95), rgba(193,23,24,0.75)); }
.ctaband .container { padding-top: clamp(54px, 7vw, 90px); padding-bottom: clamp(54px, 7vw, 90px); text-align: center; }
.ctaband h2 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 14px; }
.ctaband p { color: #e6e9eb; font-size: 18px; margin-bottom: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ctaband__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ctaband__contact { margin-top: 22px; font-family: var(--font-mono); font-size: 14px; color: #ffd2d2; }
.ctaband__contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Bid form: lean, B2B */
.bidform { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.bidform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bidform input, .bidform select, .bidform textarea {
  width: 100%; padding: 14px 16px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.96); font-family: var(--font-body); font-size: 15px; color: var(--text);
}
.bidform input:focus, .bidform select:focus, .bidform textarea:focus { outline: 3px solid rgba(193,23,24,0.45); border-color: var(--red); }
.bidform .btn { width: 100%; }
.bidform__done { color: #fff; font-family: var(--font-mono); font-size: 14px; text-align: center; }
@media (max-width: 560px) { .bidform__row { grid-template-columns: 1fr; } }

/* Footer: lean B2B */
.footer { background: var(--charcoal); color: #b7bec3; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 54px; padding-bottom: 44px; }
.footer__grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__grid ul { list-style: none; display: grid; gap: 10px; }
.footer__grid a { color: #b7bec3; font-size: 14.5px; }
.footer__grid a:hover { color: #ff8a8a; }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; line-height: 1.7; }
.footer__mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__legal .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.pagehero { position: relative; isolation: isolate; background: var(--charcoal); }
.pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: 0.55; }
.pagehero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,33,36,0.6), rgba(29,33,36,0.85)); }
.pagehero .container { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); text-align: center; }
.pagehero .breadcrumbs { font-family: var(--font-mono); font-size: 12.5px; color: #9aa3a9; margin-bottom: 16px; }
.pagehero .breadcrumbs a { color: #ff8a8a; }
.pagehero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin-bottom: 14px; }
.pagehero .lede { color: #ccd2d6; margin-left: auto; margin-right: auto; }

/* Capability table */
.capgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 44px; }
.cap { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); }
.cap h3 { font-size: 19px; margin-bottom: 10px; }
.cap p { font-size: 15px; color: var(--text-muted); }
.cap .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--charcoal); margin-top: 12px; display: block; }

/* ---------- Round-2 devices ---------- */
/* Blueprint grid texture on dark surfaces */
.section--dark, .specband, .pagehero { position: relative; }
.section--dark::before, .specband::before, .pagehero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 48px 48px; }
.section--dark > .container, .specband > .container, .pagehero > .container { position: relative; z-index: 1; }

/* Plumb-bob: a thin line dropped from the hero top with a bob weight. Trade signature. */
.plumb { position: absolute; top: 0; right: clamp(40px, 12vw, 180px); z-index: 2; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.plumb__line { width: 2px; height: clamp(90px, 16vh, 160px); background: linear-gradient(rgba(255,255,255,0.15), var(--red)); }
.plumb__bob { width: 14px; height: 20px; background: var(--red); clip-path: polygon(50% 100%, 0 30%, 20% 0, 80% 0, 100% 30%); animation: bobSway 5s ease-in-out infinite; transform-origin: top center; }
@keyframes bobSway { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(2.2deg); } 75% { transform: rotate(-2.2deg); } }

/* Hero corner stamp */
.hero__stamp { position: absolute; left: 18px; bottom: 14px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.75); letter-spacing: 2px; border: 1px solid rgba(255,255,255,0.35); padding: 6px 10px; border-radius: 2px; }

/* Ken Burns on the hero photo */
@keyframes heroDrift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__bg { overflow: hidden; }
.hero__bg img { animation: heroDrift 3s ease-out both; }
@media (prefers-reduced-motion: reduce) { .hero__bg img, .plumb__bob { animation: none; } }

/* Phase rail: underground -> rough-in -> top-out -> trim */
.phaserail { display: flex; align-items: center; gap: 0; margin-top: 40px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.phaserail::-webkit-scrollbar { display: none; }
.phase { flex: 1 0 auto; min-width: 150px; text-align: center; position: relative; padding-top: 26px; }
.phase::before { content: ""; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--red); transform: translateX(-50%); box-shadow: 0 0 0 4px rgba(193,23,24,0.18); }
.phase::after { content: ""; position: absolute; top: 14px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.phase:last-child::after { display: none; }
.phase strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 16.5px; color: var(--charcoal); }
.phase span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* Ghosted phase numbers behind line cards */
.line-card { position: relative; }
.line-card__ghost { position: absolute; right: 14px; bottom: 8px; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 96px; line-height: 1; color: rgba(193,23,24,0.10); pointer-events: none; z-index: 3; }
.line-card__media, .line-card__body { position: relative; z-index: 2; }

/* Giant ghost year behind the story section */
.story-wrap { position: relative; }
.story-wrap .ghost-year { position: absolute; right: 0; top: -34px; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(90px, 14vw, 200px); color: rgba(29,33,36,0.05); line-height: 1; pointer-events: none; user-select: none; }

/* Builder wall: grayscale until hover */
.wall__cell img { filter: none; opacity: 0.9; transition: opacity 0.2s ease, transform 0.2s ease; }
.wall__cell:hover img { opacity: 1; transform: scale(1.04); }
.wall__count { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--text-muted); }

/* Capabilities anchor rail */
.anchor-rail { position: sticky; top: 84px; z-index: 40; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.anchor-rail .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.anchor-rail .container::-webkit-scrollbar { display: none; }
.anchor-rail a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); padding: 7px 14px; border-radius: 3px; white-space: nowrap; flex: 0 0 auto; }
.anchor-rail a:hover { background: var(--concrete); color: var(--charcoal); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 1024px) {
  .nav__list { display: none; }
  .hamburger { display: block; }
  .lines, .capgrid { grid-template-columns: 1fr; }
  .gcsteps { grid-template-columns: 1fr 1fr; }
  .wall__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .specband .container { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .topbar__right { display: none; }
  .topbar .container { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__ctas .btn { width: 100%; }
  .hiring .container { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .wall__grid { grid-template-columns: repeat(2, 1fr); }
  .gcsteps { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .portfolio figure { aspect-ratio: 4 / 3; }
}

/* ---------- Review-pass fixes ---------- */
/* Hero caption + stamp collided at mobile; stack them and drop the stamp on small screens */
@media (max-width: 900px) {
  .hero__stamp { display: none; }
  .plumb { display: none; }              /* plumb bob reads as a stray red line at mobile widths */
  .hero__caption { left: var(--gutter); right: auto; bottom: 10px; font-size: 10.5px; max-width: 70%; }
}
/* Builder wall: grayscale-until-hover is desktop-only thinking. No hover on touch = invisible logos. */
@media (max-width: 768px) {
  .wall__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wall__cell { min-height: 72px; padding: 10px; }
  .wall__cell img { max-height: 42px; }
  /* Phase rail: grid, not a clipped scroll strip */
  .phaserail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; overflow: visible; }
  .phase { min-width: 0; }
  .phase::after { display: none; }
  .specband .container { gap: 26px 14px; }
  .spec span { font-size: 11px; letter-spacing: 1.1px; }
  .topbar { font-size: 12px; }
  .topbar .container { min-height: 34px; }
}
@media (max-width: 560px) {
  .wall__grid { grid-template-columns: repeat(3, 1fr); }
}

.topbar__short { display: none; }
@media (max-width: 768px) { .topbar__full { display: none; } .topbar__short { display: inline; white-space: nowrap; } }

/* ================= BRAND-DRENCH PASS =================
   Peltram reads as a spec document: charcoal grounds, blueprint grid, red rules.
   The white page with red bits was too polite for a 40-year mechanical contractor. */

/* Builder wall on charcoal: white logo cells read like a bid sheet */
.wall.section--dark { background: var(--charcoal); }
.wall.section--dark .h2 { color: #fff; }
.wall.section--dark .lede { color: #aab2b8; }
.wall.section--dark .wall__cell { background: #fff; border-color: transparent; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.wall.section--dark .wall__count { color: #8f989e; }

/* Service-line cards: charcoal header bar carrying the phase number */
.line-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--charcoal); padding: 14px 22px; min-height: 76px; }
.line-card__head h3 { color: #fff; font-size: 19px; line-height: 1.15; }
.line-card__head .idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.6px; color: #ff8a8a; text-align: right; flex: 0 0 auto; }
.line-card__body { padding-top: 20px; }
.line-card__body h3 { display: none; }

/* Measurement-tick rule: a ruler edge, the most honest possible trade device */
.tickrule { height: 16px; background: var(--charcoal);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 16px),
                    repeating-linear-gradient(90deg, var(--red) 0 2px, transparent 2px 80px); }

/* Portfolio on charcoal */
.section--dark .portfolio figcaption { background: linear-gradient(transparent, rgba(0,0,0,0.92)); }

/* Footer ghost wordmark */
.footer { position: relative; overflow: hidden; }
.footer::before { content: "PELTRAM"; position: absolute; right: -18px; bottom: -40px; font-family: var(--font-display);
  font-style: italic; font-weight: 700; font-size: clamp(110px, 18vw, 250px); line-height: 1;
  color: rgba(255,255,255,0.03); pointer-events: none; user-select: none; }
.footer > .container, .footer .footer__legal { position: relative; }

/* ===== CRAFT PASS (taste-skill: physics motion + diffused depth) =====
   Adopted: spring easing, blur-fade reveals, magnetic button press, soft ambient shadow.
   Rejected: pill eyebrows and soft SaaS radii (Josh's documented AI-tells), and the
   skill's ban on sticky nav / mobile CTA bars, which are proven home-services patterns. */
:root { --ease-spring: cubic-bezier(0.32, 0.72, 0, 1); --ease-soft: cubic-bezier(0.16, 1, 0.3, 1); }

.reveal { filter: blur(6px);
  transition: opacity 0.85s var(--ease-soft), transform 0.85s var(--ease-spring), filter 0.85s var(--ease-soft); }
.reveal.in { filter: blur(0); }

.btn { transition: transform 0.55s var(--ease-spring), background 0.4s var(--ease-spring), box-shadow 0.55s var(--ease-spring); }
.btn:active { transform: scale(0.975); }

/* Diffused ambient depth instead of a single harsh drop shadow */
.silo, .county, .review, .step, .inc, .line-card, .gcstep, .cap, .branch, .qcard, .program, .loccard, .projects figure {
  transition: transform 0.55s var(--ease-spring), box-shadow 0.55s var(--ease-spring), border-color 0.55s var(--ease-spring);
}
@media (prefers-reduced-motion: reduce) { .reveal { filter: none; transition: none; } }
