/* BenT Metal MFG, Option A. Plainwell Web, 2026. */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/BigShouldersDisplay-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/BigShouldersDisplay-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #19202E;        /* the logo navy */
  --navy-deep: #11161F;   /* footer, one step down so it never matches the header */
  --ink: #19202E;
  --muted: #4B5567;       /* 7.5:1 on white */
  --steel: #F1F3F6;       /* pale steel band */
  --line: #D3D8DF;
  --white: #FFFFFF;
  --on-navy-muted: #C3C9D3; /* 9.8:1 on navy */
  --focus: #3D7BE0;
  --display: "Big Shoulders Display", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(48px, 6.4vw, 96px); }
h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; }
h3 { font-size: 30px; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* The signature: a rule that runs under a heading and bends down at its end, like the T in the logo. */
.bent::after {
  content: "";
  display: block;
  width: 76px;
  height: 16px;
  margin-top: 18px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.center .bent::after, .bent.center::after { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid var(--navy); border-radius: 2px;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-fill { background: var(--navy); color: var(--white); }
.btn-fill:hover { background: #2A3448; border-color: #2A3448; }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: #E4E8EE; border-color: #E4E8EE; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header: LOCKED sticky behaviour (design-standards 13) */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 120;
  overflow-anchor: none;
  background: var(--navy);
  border-bottom: 1px solid #2B3446;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; transition: padding .2s ease; }
.brand { display: block; flex: none; }
.brand img { height: 72px; width: auto; transition: height .2s ease; }
.site-header.shrunk .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.shrunk .brand img { height: 48px; }
.primary { display: flex; align-items: center; gap: 34px; }
.primary ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.primary a:not(.btn):hover { border-bottom-color: var(--on-navy-muted); }
.primary a[aria-current="page"] { border-bottom-color: var(--white); }
.primary .btn { min-height: 42px; padding: 9px 18px; }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; color: var(--white); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; padding: 10px 4px; }
.menu summary::-webkit-details-marker { display: none; }
.bars { width: 26px; height: 18px; position: relative; display: inline-block; }
.bars::before, .bars::after, .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--white); }
.bars::before { top: 0; } .bars span { top: 8px; } .bars::after { bottom: 0; }
.menu[open] .bars span { opacity: 0; }
.menu[open] .bars::before { top: 8px; transform: rotate(45deg); }
.menu[open] .bars::after { bottom: 8px; transform: rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid #2B3446; padding: 8px 20px 22px; box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a:not(.btn) { display: block; color: var(--white); text-decoration: none; font-size: 20px; font-weight: 500; padding: 13px 0; border-bottom: 1px solid #2B3446; }
.menu-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.menu-panel .btn { margin-top: 18px; width: 100%; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); }
.hero-media { position: relative; width: 100%; aspect-ratio: 2400 / 1305; max-height: calc(100svh - 101px); min-height: 520px; overflow: hidden; }
.hero-media img, .hero-media picture { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 13, 20, .78) 0%, rgba(10, 13, 20, .35) 32%, rgba(10, 13, 20, 0) 58%); pointer-events: none; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 46px; }
.hero-copy .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 980px; }
.hero h1 { font-size: clamp(54px, 5.8vw, 90px); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-sub { font-size: 20px; margin-top: 14px; max-width: 34em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero .actions { flex: none; padding-bottom: 4px; }

/* Sections */
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.band { background: var(--steel); }
.intro { text-align: center; }
.intro h2 { max-width: 15em; margin: 0 auto; font-size: clamp(36px, 4vw, 58px); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 920px; margin: 56px auto 0; text-align: left; color: var(--muted); }

/* Project entries (home) */
.entries { border-top: 1px solid var(--line); }
.entry { padding: 84px 0; border-bottom: 1px solid var(--line); }
.entry h2 { font-size: clamp(34px, 3.4vw, 48px); }
.entry p { max-width: 38em; color: var(--muted); margin-top: 14px; }
.entry-media { margin: 32px 0 30px; max-width: 900px; }
.pair { display: grid; gap: 14px; align-items: start; }
.pair img { width: 100%; }
.pair-stamp { grid-template-columns: 1.538fr 1.154fr; }
.pair-mounts { grid-template-columns: 1fr 1fr; }
.after-entries { padding-top: 56px; }

/* Reviews placeholder */
.reviews { padding: 90px 0 110px; }
.reviews h2 { margin-bottom: 26px; }

/* Placeholders */
.tbd { display: inline-block; border: 2px dashed currentColor; padding: 1px 8px; font-size: .82em; font-weight: 600; border-radius: 2px; white-space: nowrap; }
.placeholder-panel { border: 2px dashed #8992A1; background: var(--steel); color: var(--ink); padding: 40px 28px; text-align: center; font-weight: 600; }
.placeholder-panel small { display: block; font-weight: 400; color: var(--muted); margin-top: 6px; font-size: 16px; }

/* Page heads (inner pages) */
.page-head { padding: 96px 0 56px; }
.page-head p { max-width: 40em; color: var(--muted); font-size: 20px; margin-top: 26px; }
.page-head .actions { margin-top: 30px; }

/* Projects page */
.project { padding: 72px 0; border-top: 1px solid var(--line); }
.project h2 { font-size: clamp(34px, 3.4vw, 48px); }
.project > .wrap > p { max-width: 40em; color: var(--muted); margin-top: 14px; }
.rows { margin-top: 34px; display: grid; gap: 14px; }
.row { display: grid; gap: 14px; align-items: start; }
.row a { display: block; cursor: zoom-in; }
.row a img { width: 100%; transition: opacity .15s; }
.row a:hover img { opacity: .88; }
.r-tys-concrete-stamp-1 { max-width: 820px; }
.r-tube-assemblies-1 { max-width: 900px; }
.project-cta { padding: 90px 0 110px; border-top: 1px solid var(--line); }

/* Services page */
.wide-photo { max-width: 1000px; }
.service-list { margin-top: 90px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(220px, 5fr) 7fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.service h2 { font-size: clamp(30px, 2.8vw, 40px); }
.service p { color: var(--muted); max-width: 34em; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 70px 0 110px; }
.closing h2 { font-size: clamp(30px, 3vw, 42px); }

/* About page */
.about-photo { max-width: 1000px; }
.about-more { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: start; padding: 100px 0 110px; }
.about-more p { color: var(--muted); }
.about-more h2 { margin-bottom: 26px; }
.about-more .actions { margin-top: 28px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 70px; align-items: start; padding-bottom: 110px; }
.details h2 { font-size: 38px; margin-bottom: 22px; }
.details dl { margin: 26px 0 0; }
.details dt { font-weight: 600; margin-top: 18px; }
.details dd { margin: 2px 0 0; color: var(--muted); }
.details .social { margin-top: 22px; }
.details img { margin-top: 38px; }
.social { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
form .field { margin-bottom: 22px; }
form label { display: block; font-weight: 600; margin-bottom: 7px; }
form .hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  border: 1.5px solid #8A93A2; border-radius: 2px; padding: 12px 14px; background: var(--white);
}
textarea { min-height: 170px; resize: vertical; }
input[type="file"] { font: inherit; font-size: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Plain text pages */
.plain { padding: 110px 0 140px; }
.plain p { max-width: 36em; color: var(--muted); margin-top: 26px; font-size: 20px; }
.plain .actions { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding: 80px 0 0; font-size: 16px; }
.site-footer a:not(.btn) { color: var(--white); text-decoration: none; }
.site-footer a:not(.btn):hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 118px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 21em; }
.footer-contact { margin: 18px 0; display: grid; gap: 6px; }
.footer-brand .btn { margin-top: 22px; }
.site-footer h2 { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: 0; line-height: 1.3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding: 22px 0 26px; border-top: 1px solid #2B3446; font-size: 14px; }
.footer-base a:not(.btn) { color: var(--on-navy-muted); }
.footer-base a:not(.btn):hover { color: var(--white); text-decoration: underline; }

/* Phone call bar */
.callbar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 11, 17, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: var(--white); border: 1.5px solid rgba(255, 255, 255, .55); width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--on-navy-muted); font-size: 15px; }

/* Tablet */
@media (max-width: 1020px) {
  :root { --gutter: 28px; }
  .primary { gap: 22px; }
  .primary ul { gap: 20px; }
  .hero-copy .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { gap: 44px; }
}

/* Phone */
@media (max-width: 759px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; padding-bottom: 64px; }
  .primary { display: none; }
  .menu { display: block; }
  .brand img { height: 58px; }
  .site-header.shrunk .brand img { height: 44px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }

  .hero-media { aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
  .hero-media::after { display: none; }
  .hero-copy { position: static; padding: 36px 0 44px; text-align: center; }
  .hero-copy .wrap { align-items: center; }
  .hero h1 { font-size: 52px; text-shadow: none; }
  .hero-sub { text-shadow: none; font-size: 18px; margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }

  .section { padding: 72px 0; }
  .intro-cols { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
  .entry { padding: 60px 0; }
  .entry-media { margin: 24px 0 24px; }
  .pair { gap: 10px; }
  .page-head { padding: 64px 0 40px; }
  .page-head p { font-size: 18px; }
  .project { padding: 56px 0; }
  .row { grid-template-columns: 1fr !important; gap: 12px; }
  .rows { gap: 12px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .service-list { margin-top: 60px; }
  .about-more { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; padding-bottom: 80px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 6px; }
  .plain { padding: 72px 0 90px; }

  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; box-shadow: 0 -2px 12px rgba(0, 0, 0, .2); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; font-weight: 600; font-size: 17px; text-decoration: none; }
  .callbar .call { background: var(--white); color: var(--navy); border-top: 1px solid var(--line); }
  .callbar .start { background: var(--navy); color: var(--white); }
  .lightbox { padding: 64px 10px 70px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}


/* Home page sections: Option B's home page in Option A's look (combined site, 2026-11-06) */
.lead { font-size: 21px; line-height: 1.5; color: var(--ink); margin-top: 22px; max-width: 34em; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: start; }
.split .lead { margin-top: 0; }
.split h2 + .lead { margin-top: 26px; }
.split p:not(.lead) { color: var(--muted); }
.text-link { font-weight: 600; }
.home-services { padding-top: 0; }
.ledger { list-style: none; margin: 44px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: minmax(240px, 4fr) 6fr auto; gap: 32px; align-items: baseline; padding: 26px 0; text-decoration: none; color: var(--ink); }
.ledger h3 { font-size: 30px; }
.ledger p { margin: 0; color: var(--muted); font-size: 17px; }
.row-link { font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ledger a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.steps { margin-top: 56px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); }
.step h3 { font-size: 34px; }
.step p { color: var(--muted); margin-top: 12px; max-width: 24em; }
.step img { width: 100%; max-width: 640px; }
.step img.step-tall { max-width: 420px; }
.difference-side { padding-top: 6px; }
.home-cta .closing { padding: 80px var(--gutter); }
.home-cta p { color: var(--muted); margin-top: 12px; }
@media (max-width: 1020px) {
  .split { gap: 44px; }
  .ledger a { grid-template-columns: 1fr 1.4fr; }
  .ledger .row-link { grid-column: 2; }
  .step { gap: 36px; }
}
@media (max-width: 759px) {
  .lead { font-size: 19px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .ledger a { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .ledger .row-link { grid-column: auto; }
  .ledger h3 { font-size: 27px; }
  .steps { margin-top: 36px; }
  .step { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .step h3 { font-size: 30px; }
  .home-cta .closing { padding: 60px var(--gutter) 64px; }
}


/* Luke, 2026-11-06: logo further into the top left, hero headline smaller than Option A's. */
.site-header .wrap, .hero-copy .wrap { max-width: 1760px; }
.hero h1 { font-size: clamp(44px, 4.3vw, 86px); }
.hero-sub { font-size: 19px; }
@media (max-width: 759px) { .hero h1 { font-size: 42px; } .hero-sub { font-size: 17px; } }


/* Luke, 2026-11-06: hero text up in the sky, top left of the photo (desktop and tablet; phones keep the text under the photo). */
@media (min-width: 760px) {
  .hero-copy { top: 0; bottom: auto; padding: clamp(40px, 6vh, 72px) 0 0; }
  .hero-copy .wrap { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 26px; }
  .hero .actions { padding-bottom: 0; }
  .hero-media::after { background: linear-gradient(to bottom, rgba(10, 13, 20, .62) 0%, rgba(10, 13, 20, .34) 30%, rgba(10, 13, 20, 0) 55%), linear-gradient(to right, rgba(10, 13, 20, .28) 0%, rgba(10, 13, 20, 0) 50%); }
}


/* The hero text waits until the logo intro has landed in the header, so the flying logo never crosses the headline.
   No intro (JavaScript off, reduced motion, a repeat visit): the class is never set and the text shows at once. */
.hero-copy { transition: opacity .4s ease; }
html.bent-intro-on .hero-copy { opacity: 0; }

/* Project rows (generated by build_pages.py) */
.r-custom-trailer-1 { grid-template-columns: 2.203fr 1.333fr 0.750fr; }
.r-custom-trailer-2 { grid-template-columns: 1.333fr 0.750fr 0.750fr; }
.r-custom-trailer-3 { grid-template-columns: 1.333fr 1.333fr; }
.r-tys-concrete-stamp-1 { grid-template-columns: 1.538fr 1.445fr; }
.r-tys-concrete-stamp-2 { grid-template-columns: 1.154fr 0.750fr; }
.r-bearing-mounts-1 { grid-template-columns: 0.750fr 0.750fr 0.750fr; }
.r-tube-assemblies-1 { grid-template-columns: 0.750fr 0.872fr; }
