:root {
  color-scheme: light;
  --navy: #142337;
  --red: #ae342e;
  --paper: #f7f5f0;
  --steel: #515963;
  --rule: #d5d8d9;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; color: var(--navy); background: var(--paper); font: 1rem/1.65 Inter, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #bb481e; outline-offset: 5px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; background: white; padding: .5rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(1440px, 100% - clamp(2rem, 10.4vw, 150px)); margin-inline: auto; }
header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar, nav, .brand { display: flex; align-items: center; }
.bar { justify-content: space-between; min-height: 75px; gap: 1rem; }
.brand { gap: .35rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
nav { gap: clamp(.75rem, 2vw, 2rem); flex-wrap: wrap; font-size: .875rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--navy); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; gap: clamp(1.5rem, 5vw, 5rem); }
.hero-copy { padding-block: clamp(3rem, 7vw, 7rem); }
.hero figure { margin: 0; position: relative; min-height: 18rem; }
.hero figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 .8rem; color: var(--red); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; }
.hero .eyebrow { color: #ffa39a; }
h1, h2 { font-family: Georgia, serif; line-height: 1.06; margin: 0 0 1.1rem; }
h1 { font-size: clamp(2.5rem, 5.2vw, 5.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -.035em; }
h3 { line-height: 1.25; margin: 0 0 .8rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 49ch; color: #dce1e6; }
.button { display: inline-block; padding: .7rem 1.1rem; margin-top: .7rem; background: var(--red); color: white; text-decoration: none; font-weight: 750; }
.button:hover { background: #913029; }
.button span { margin-inline-start: .5rem; }
.section { padding-block: clamp(2.8rem, 6vw, 5.5rem); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.25rem, 7vw, 6rem); }
.section p:not(.eyebrow) { color: var(--steel); }
.band { background: #eceeed; border-block: 1px solid var(--rule); }
.grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
article { border-top: 2px solid var(--red); padding-top: 1rem; }
.note { margin-top: 2rem; max-width: 78ch; }
footer { border-top: 1px solid var(--rule); }
footer p { font-size: .85rem; }
@media (max-width: 780px) {
  html { scroll-padding-top: 1rem; }
  header { position: static; }
  header .bar { display: block; padding-block: .35rem 1rem; }
  nav { padding-inline: .45rem; }
  .hero-grid, .split, .grid { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 2.75rem 0; }
  .hero figure { margin-bottom: 1.25rem; min-height: 0; aspect-ratio: 3 / 2; }
  footer .bar { flex-wrap: wrap; padding-block: .5rem 1rem; }
}

.page-hero { position: relative; isolation: isolate; display: grid; align-content: end; min-height: clamp(26rem, 54vw, 42rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #101d2eee, #101d2e24 80%); }
.page-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero-copy { padding-bottom: clamp(2rem, 5vw, 4.5rem); }
.page-hero-copy > p:not(.eyebrow) { max-width: 54ch; color: #fff; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-art-credit { padding-bottom: .85rem; color: #f7f5f0; font-size: .8rem; }
.engineering-art { margin: 1.6rem 0 0; }
.engineering-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.engineering-art figcaption { color: var(--steel); font-size: .8rem; margin-top: .55rem; }
@media (max-width: 780px) {
  .page-hero-image { object-position: center; }
}


.engineering-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.45rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--rule);
}
.engineering-nav a:hover { color: var(--red); }
.engineering-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 1.35rem;
  padding: 0;
  background: var(--navy);
  color: var(--paper);
}
.engineering-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .35rem;
  padding: .95rem clamp(.85rem, 2.5vw, 2rem);
  border-inline-start: 1px solid #536071;
}
.engineering-metrics > div:first-child { border-inline-start: 0; }
.engineering-metrics dt { font-size: .85rem; }
.engineering-metrics dd {
  margin: 0;
  color: #ffa39a;
  font: bold clamp(1.4rem, 4vw, 3rem)/1.05 Georgia, serif;
}
.engineering-feature { border-top: 1px solid var(--rule); }
.engineering-feature:nth-of-type(odd) { background: #eceeed; }
.engineering-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1rem, 3.5vw, 3.5rem);
  align-items: stretch;
  padding-block: clamp(1.25rem, 2.6vw, 2.5rem);
}
.engineering-copy h2 { font-size: clamp(1.65rem, 3vw, 3rem); margin: .36rem 0 .75rem; }
.engineering-copy p { margin-bottom: .7rem; color: var(--steel); }
.engineering-copy p:last-child { margin-bottom: 0; }
.engineering-copy strong { color: var(--navy); }
.engineering-figure {
  display: grid;
  grid-template-rows: minmax(9rem, 1fr) auto;
  margin: 0;
  min-width: 0;
}
.engineering-figure img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.engineering-figure figcaption { padding: .35rem .65rem; background: var(--navy); color: var(--paper); font-size: .75rem; }
#power .engineering-figure img { object-position: 78% center; }
#design .engineering-figure img { object-position: 20% center; }
@media (min-width: 781px) {
  .engineering-feature:nth-of-type(odd) .engineering-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .engineering-feature:nth-of-type(odd) .engineering-figure { grid-area: 1 / 1; }
}
@media (max-width: 780px) {
  .engineering-spread { grid-template-columns: minmax(0, 1fr); }
  .engineering-figure { grid-template-rows: auto auto; }
  .engineering-figure img { height: auto; aspect-ratio: 16 / 9; }
}
@media (min-width: 781px) {
  .engineering-figure {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 11rem;
    overflow: hidden;
  }
  .engineering-figure img { position: absolute; inset: 0; }
  .engineering-figure figcaption { position: relative; width: 100%; }
}

.image-home .home-panel {
  background-color: var(--navy);
  background-image: linear-gradient(90deg, #101d2ef5 0%, #101d2edb 40%, #101d2e24 100%), var(--home-image);
  background-position: center;
  background-size: cover;
  color: var(--paper);
  border: 0;
}
.home-lead, .image-home #parts { --home-image: url("assets/stamped-steel.webp"); }
.image-home #about, .image-home #campus { --home-image: url("assets/school-workshop.webp"); }
.image-home #why { --home-image: url("assets/restoration-work.webp"); }
.image-home #process { --home-image: url("assets/welding-extraction.webp"); }
.image-home #engineering { --home-image: url("assets/campus-solar.webp"); }
.image-home .home-lead {
  min-height: clamp(30rem, 54vw, 42rem);
  display: grid;
  align-items: end;
}
.home-lead h1 { max-width: 15ch; }
.image-home .home-panel .eyebrow { color: #ffa39a; }
.image-home .home-panel p:not(.eyebrow) { color: #fff; }
.image-home .home-panel .split { display: block; }
.image-home .home-panel .section { padding-block: clamp(3rem, 6vw, 5rem); }
.image-home .home-panel .split > div { max-width: 38rem; }
.image-home .home-panel .grid {
  background: #101d2ed9;
  margin-top: 1.25rem;
  padding: 1.25rem;
}
.image-home .home-panel .note { background: #101d2ed9; padding: .85rem 1.25rem; }
.image-home .home-image-caption { font-size: .8rem; }
@media (max-width: 780px) {
  .image-home .home-panel {
    background-image: linear-gradient(90deg, #101d2ef5, #101d2e9c), var(--home-image);
  }
  .image-home .home-lead .hero-copy { padding-block: 3rem; }
}

.image-home .home-panel { min-height: clamp(25rem, 39vw, 37rem); display: grid; align-items: end; }
.image-home .home-lead { min-height: clamp(30rem, 54vw, 42rem); }
.image-home #about { --home-image: url("assets/steel-recovery.webp"); }
.image-home #parts { --home-image: url("assets/stamped-steel.webp"); }
.home-panel-copy { max-width: 42rem; }
.home-panel-copy h2 { max-width: 19ch; }
.home-panel-copy > p:not(.eyebrow) { max-width: 42ch; }
.home-image-caption { margin-top: .8rem; }
.home-stat-band {
  color: var(--paper);
  background: repeating-linear-gradient(125deg, #ffffff08 0 1px, transparent 1px 13px), var(--navy);
  border-block: 3px solid var(--red);
}
.home-stat-band:nth-of-type(even) { background-color: #253447; }
.home-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-block: 0; }
.home-stats div { display: flex; flex-direction: column-reverse; justify-content: center; gap: .35rem; padding: clamp(.9rem, 2.7vw, 2rem); }
.home-stats div + div { border-inline-start: 1px solid #ffffff45; }
.home-stats dd { margin: 0; color: #ffb4a9; font: bold clamp(1.75rem, 5vw, 4.5rem)/1 Georgia, serif; }
.home-stats dt { font-size: clamp(.76rem, 1.5vw, 1rem); }
