@font-face {
  font-family: Barlow;
  src: url("Barlow-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #201e1b;
  --steel: #242522;
  --concrete: #f1ede5;
  --chalk: #fff7e6;
  --red: #a92122;
  --gutter: clamp(1rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--steel); color: var(--chalk); font: 1.125rem/1.55 Barlow, system-ui, sans-serif; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3, .film-title {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.85rem, 4.9vw, 4.3rem); text-wrap: balance; }
h2 { font-size: clamp(2.55rem, 4.7vw, 4.75rem); text-wrap: balance; }
h3 { font-size: 1.75rem; }
a { color: inherit; text-underline-offset: .22em; touch-action: manipulation; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: 1rem;
  left: var(--gutter);
  z-index: 5;
  padding: .65rem 1rem;
  background: var(--chalk);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

.masthead {
  --masthead-logo-width: clamp(8.25rem, 16vw, 14rem);
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: max(1.3rem, env(safe-area-inset-top)) var(--gutter) 2.6rem;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.masthead .site-nav a:not(.button) { text-shadow: 0 1px 5px #100e0c, 0 2px 12px #100e0c; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img {
  display: block;
  width: clamp(8.25rem, 16vw, 14rem);
  height: auto;
  filter: invert(1) hue-rotate(180deg) saturate(5);
}
.masthead .brand img { width: var(--masthead-logo-width); }
.brand-mark { position: relative; display: block; }
.brand-rig {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.brand-motion .masthead .brand:not(.brand-docked):not(:focus-visible) { pointer-events: none; }
.brand-motion .masthead .brand:not(.brand-docked):not(:focus-visible) img {
  opacity: 0;
}
.brand-motion .masthead .brand:not(.brand-docked):not(:focus-visible) .brand-rig {
  display: block;
  filter: invert(1) hue-rotate(180deg) saturate(5) drop-shadow(0 3px 6px #16120f8c);
  opacity: var(--emblem-opacity, 0);
}
.site-nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 2.2rem); }
.site-nav a, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }
.button {
  background: var(--red);
  color: #fff;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
}
.button:hover { background: #8b1617; }
.button:focus-visible { outline-color: var(--chalk); }
.film-controls, .film-title { text-shadow: 0 1px 8px #000, 0 2px 14px #000; }

.shell { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7vw, 7.2rem); scroll-margin-top: 1rem; }
.services, .history { background: var(--concrete); color: var(--ink); }
.services > .shell { max-width: 65rem; }
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  grid-template-areas: "intro list" "photo photo";
  gap: clamp(1.8rem, 4vw, 3rem) clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}
.services-intro { grid-area: intro; }
.lead { margin-top: 1.1rem; max-width: 52ch; font-size: clamp(1.15rem, 1.6vw, 1.38rem); }
.services-list { grid-area: list; }
.services-list > div { padding-block: 1rem; border-top: 1px solid #201e1b34; }
.services-list > div:last-child { padding-bottom: 0; }
.services-list dt { font-weight: 700; font-size: 1.2rem; }
.services-list dd { margin-top: .2rem; color: #4b473e; }
.truck-photo { grid-area: photo; align-self: center; }
.truck-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.truck-photo figcaption { padding-top: .6rem; font-size: .95rem; color: #4b473e; }
.crane-specifications {
  margin-top: clamp(2.75rem, 6vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid #201e1b34;
}
.crane-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 1.8rem;
}
.crane-charts > section {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  row-gap: .7rem;
}
.crane-charts p { color: #4b473e; }
.chart-link { display: block; margin-top: .3rem; font-weight: 700; }
.chart-link img { display: block; width: 100%; height: auto; }
.chart-link span { display: flex; align-items: center; min-height: 44px; padding-block: .45rem; }
.chart-link:hover { color: #8e1d20; }

.history { padding-top: 0; }
.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: end;
  gap: clamp(1.25rem, 5vw, 5.5rem);
  border-top: 1px solid #201e1b34;
  padding-top: clamp(2.6rem, 5vw, 5rem);
}
.commitment { max-width: 43ch; }
.commitment strong { color: #8e1d20; }

.contact { background: var(--steel); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.contact .lead, .contact-area, .site-footer p { color: #dfd7ca; }
.phone-button { font-size: 1.15rem; min-height: 52px; }
.contact-area { margin-top: .7rem; font-size: 1rem; }

.site-footer { background: var(--steel); }
.footer-layout {
  border-top: 1px solid #fff7e645;
  padding-block: 1.45rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.4rem, 4vw, 3rem);
}
.site-footer .brand img { width: 9rem; }
.site-footer p { font-size: 1rem; }
.footer-phone { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; }
.footer-phone:hover, .film-links a:hover { color: #ffd2ae; }

@media (max-width: 740px) {
  .masthead { --masthead-logo-width: clamp(7rem, 34vw, 9rem); padding-bottom: 1.75rem; }
  .site-nav { gap: .7rem; font-size: 1rem; }
  .site-nav .about-link { display: none; }
  .site-nav .button { padding-inline: .8rem; }
  .services-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "photo" "list"; gap: 1.6rem; }
  .crane-charts { grid-template-columns: 1fr; }
  .history-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-layout { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer-phone { margin-left: 0; }
}
