/* Ironwood Electric: sample custom site by Xyrol. A film that plays as you scroll. */
:root { --ink: #0b0c0e; --paper: #f4f1ea; --soft: #c9c4b8; --line: rgb(244 241 234 / .18); --amber: #f2a541;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html, button { line-height: 1.5; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 19px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px clamp(18px, 4vw, 48px); background: linear-gradient(rgb(11 12 14 / .55), rgb(11 12 14 / 0)); }
.mark { font-family: var(--serif); font-size: 24px; line-height: 1.3; letter-spacing: .01em; text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.mark span { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.bar nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--paper); padding: 10px 0; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn { display: inline-flex; align-items: center; white-space: nowrap; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: #fff; }
.btn.small { min-height: 44px; padding: 0 20px; }

/* The film: one pinned screen. Scrolling runs the footage forward, and each
   scene hands over to the next behind a soft dark gradient that sweeps up. */
.film { position: relative; height: 1100vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; clip-path: inset(0); }
.layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.layer.on { opacity: 1; visibility: visible; }
.layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 12 14 / .82) 0%, rgb(11 12 14 / .28) 46%, rgb(11 12 14 / .12) 100%); }
.veil { position: absolute; left: 0; right: 0; top: 0; height: 300%; pointer-events: none; transform: translateY(100%);
  background: linear-gradient(to bottom, rgb(11 12 14 / 0) 0%, var(--ink) 33.3%, var(--ink) 66.6%, rgb(11 12 14 / 0) 100%); }
.words { position: absolute; left: clamp(18px, 6vw, 96px); right: clamp(18px, 6vw, 96px); bottom: clamp(56px, 11vh, 120px); max-width: 900px; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 28px)); }
.eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.words h1, .words h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.6vw, 96px); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.sub { margin-top: 20px; font-size: 24px; color: var(--paper); max-width: 34em; line-height: 1.45; }
.scene-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.tel { font-size: 19px; text-underline-offset: 5px; padding: 12px 0; }
.cue { position: absolute; right: clamp(18px, 4vw, 48px); bottom: 26px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); opacity: var(--cue, 1); }
.cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: var(--paper); animation: drop 2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }

/* Progress line */
.rail { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 20; background: rgb(244 241 234 / .14); }
.rail i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }

/* Plain sections */
.plain { padding: 140px 0; }
.plain + .plain { padding-top: 140px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.plain h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.01em; max-width: 14em; }
.work { list-style: none; padding: 0; margin-top: 56px; }
.work li { padding: 28px 0; border-top: 1px solid var(--line); }
.work li:last-child { border-bottom: 1px solid var(--line); }
.work h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }
.work p { color: var(--soft); margin-top: 6px; }
.contact { background: var(--paper); color: var(--ink); }
.contact .eyebrow { color: #8a5a10; }
.contact .lead { margin-top: 20px; font-size: 24px; line-height: 1.45; max-width: 30em; color: #3b3a36; }
.contact .btn { background: var(--ink); color: var(--paper); }
.contact .btn:hover { background: #000; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgb(11 12 14 / .16); }
.facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #5c5a54; margin-bottom: 6px; }
.foot { padding: 28px 0 40px; font-size: 15px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

@media (max-width: 720px) {
  .bar nav { display: none; }
  .bar { gap: 12px; }
  .bar .btn { margin-left: auto; }
  .btn { white-space: nowrap; }
  .mark span { letter-spacing: .12em; }
  .bar { padding-inline: 14px; }
  .btn.small { padding: 0 16px; }
  .words { bottom: 84px; }
  .facts { grid-template-columns: 1fr; }
  .plain, .plain + .plain { padding: 88px 0; }
  .wrap { padding: 0 20px; }
  .sub, .contact .lead { font-size: 19px; }
  .film { height: 900vh; }
}

/* Visitors who ask for less motion get six stills, one after another, with the words in place. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film { height: auto; }
  .stage { position: static; height: auto; clip-path: none; }
  .layer { position: relative; height: 100vh; height: 100svh; opacity: 1; visibility: visible; }
  .words { opacity: 1; transform: none; }
  .cue, .motion, .rail, .veil { display: none; }
}
