/* Thermal Metal Treating
   Concept: cold steel that heats when touched. Charcoal and quench teal at rest,
   forge orange and amber on interaction. Colors come from the existing logo and site. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-700-900.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #151515;
  --char: #1f1e1d;
  --plate: #333333;
  --steel: #666666;
  --mist: #f3f3f3;
  --white: #ffffff;
  --forge: #f36c38;
  --forge-deep: #b93f0e;
  --amber: #edb059;
  --quench: #7ebec5;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(21, 21, 21, .14);

  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; interpolate-size: allow-keywords; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--quench); outline-offset: 3px; border-radius: 2px; }
.band--light :focus-visible, .band--mist :focus-visible { outline-color: var(--forge-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1.1rem; background: var(--amber); color: var(--ink); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Scroll heat bar ---------- */
.heat-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.heat-bar span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--quench), var(--amber) 45%, var(--forge)); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
/* The blur lives on a pseudo-element: on the header itself, backdrop-filter would
   become the containing block for the fixed mobile menu and clip it to header height. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 21, 21, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); opacity: 0; pointer-events: none; transition: opacity .3s; }
.site-header.is-stuck::before { opacity: 1; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: var(--header-h); transition: height .3s var(--ease); }
.is-stuck .site-header__row { height: 68px; }
.site-logo img { width: 142px; transition: width .3s var(--ease); }
.is-stuck .site-logo img { width: 112px; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { display: flex; align-items: center; gap: 2rem; }
.site-nav__item { position: relative; }
.site-nav__link { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 0; background: none; border: 0; color: var(--white); font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--forge); transform: scaleX(0); transition: transform .28s var(--ease); }
.site-nav__link:hover::after, .site-nav__link.is-current::after { transform: scaleX(1); }
.caret { width: .45rem; height: .45rem; margin-top: -.2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.is-open > .site-nav__link .caret { transform: rotate(225deg) translate(-2px, -2px); }

.site-nav__sub { position: absolute; top: 100%; left: -1.1rem; min-width: 200px; padding: .5rem; background: var(--char); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); border-top: 2px solid var(--forge); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-sub:hover .site-nav__sub, .has-sub:focus-within .site-nav__sub, .has-sub.is-open .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a { display: block; padding: .55rem .7rem; color: var(--white); text-decoration: none; transition: color .2s, padding-left .2s var(--ease); }
.site-nav__sub a:hover { color: var(--amber); padding-left: 1rem; }

.site-phone { font-family: var(--mono); font-size: .92rem; font-weight: 500; color: var(--amber); text-decoration: none; white-space: nowrap; transition: color .2s; }
.site-phone:hover { color: var(--forge); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 26px; height: 2px; margin-inline: auto; background: var(--white); transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons: steel that heats on hover ---------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.5rem; overflow: hidden; border: 0; border-radius: 3px; font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; transition: color .25s, box-shadow .3s, transform .15s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--forge), var(--amber)); transform: translateX(-101%); transition: transform .38s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px); }
.btn .icon-arrow { flex: none; transition: transform .28s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: progress; }

.btn--hot { background: var(--forge); color: var(--ink); }
.btn--hot:hover { box-shadow: 0 0 34px rgba(243, 108, 56, .5); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent, 0 0 30px rgba(243, 108, 56, .4); }
.btn--plain { background: var(--ink); color: var(--white); }
.btn--plain:hover { color: var(--ink); }

.link-heat { color: inherit; text-decoration: underline; text-decoration-color: var(--quench); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .25s, color .25s; }
.link-heat:hover { text-decoration-color: var(--forge); }

/* ---------- Fire ---------- */
.fire { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.fire.is-lit { opacity: 1; }

/* ---------- Home hero ---------- */
.hero { position: relative; display: flex; min-height: max(100svh, 720px); overflow: hidden; color: var(--white); background: #000 url("../img/flames-poster.webp") center bottom / cover no-repeat; }
.js .hero { background-image: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .88) 50%, rgba(0, 0, 0, .35) 66%, transparent 76%); }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)); padding-bottom: 3rem; }
.hero__title { max-width: 17ch; font: 800 clamp(3.3rem, 7.8vw, 7.6rem)/.9 var(--display); letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; animation: rise .9s var(--ease) both; }
.hero__claims { display: flex; flex-wrap: wrap; gap: .4rem 2.5rem; margin-top: 1.5rem; text-shadow: 0 1px 14px #000; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; animation: rise .9s .12s var(--ease) both; }
.hero__claims p + p { color: var(--amber); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; animation: rise .9s .22s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Proof strip ---------- */
.proof { background: var(--char); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.proof__row { display: grid; grid-template-columns: repeat(5, 1fr); }
.proof__item { padding: 1.5rem 1.25rem; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .3rem; transition: background-color .3s; }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item dt { font-family: var(--mono); font-size: .76rem; color: #c4c4c4; }
.proof__item dd { font: 700 clamp(1.45rem, 2.1vw, 1.95rem)/1.05 var(--display); white-space: nowrap; text-transform: uppercase; color: var(--amber); }

/* ---------- Bands ---------- */
.band { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--light { background: var(--white); }
.band--mist { background: var(--mist); }
.band--dark { background: var(--ink); color: var(--white); }
.band--mist + .band--mist { padding-top: 0; }

.section-title { font: 800 clamp(2.4rem, 5vw, 4.1rem)/.98 var(--display); text-transform: uppercase; text-wrap: balance; }
.section-title--measure { max-width: 20ch; }
.sub-title { font: 700 clamp(1.4rem, 2.2vw, 1.8rem)/1.1 var(--display); text-transform: uppercase; }
.lede { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--flip .split__media { order: -1; }
.split--wide-media { grid-template-columns: 1fr 1.15fr; }
.split__text > p + p { margin-top: 1rem; }
.split__text .btn { margin-top: 1.75rem; }
.split__media { overflow: hidden; border-radius: 3px; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.split__media:hover img { transform: scale(1.025); }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(3rem, 6vw, 5rem); }
.tile { display: flex; flex-direction: column; background: var(--ink); color: var(--white); text-decoration: none; border-radius: 3px; overflow: hidden; }
.tile__media { display: block; overflow: hidden; }
.tile__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: saturate(.75); }
.tile:hover .tile__media img { transform: scale(1.04); filter: saturate(1.1); }
.tile__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.5rem 1.4rem; }
.tile__body::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--quench); transition: background-color .35s; }
.tile__body::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--forge), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tile:hover .tile__body::after { transform: scaleX(1); }
.tile__title { font: 700 1.9rem/1.05 var(--display); text-transform: uppercase; }
.tile__more { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; color: var(--amber); font-weight: 600; }
.tile__more .icon-arrow { transition: transform .28s var(--ease); }
.tile:hover .tile__more .icon-arrow { transform: translateX(5px); }

/* ---------- Testimonials ---------- */
.quote { max-width: 1040px; }
.quote blockquote { margin: 0; font: 700 clamp(1.5rem, 2.9vw, 2.45rem)/1.18 var(--display); }
.quote figcaption { margin-top: 1.5rem; font-family: var(--mono); font-size: .92rem; color: var(--amber); }
.quote-band--light .quote figcaption { color: var(--forge-deep); }

/* ---------- Motto over the shop floor ---------- */
.band--floor { overflow: hidden; color: var(--white); background: var(--ink); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.motto { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.motto .section-title { max-width: 18ch; }
.motto__line { margin-top: clamp(1.5rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line-dark); width: 100%; }
.motto__label { font-family: var(--mono); font-size: .92rem; color: var(--quench); }
.motto__text { font: 900 clamp(2.5rem, 7.5vw, 6.5rem)/.95 var(--display); text-transform: uppercase; color: var(--amber); }

/* ---------- Memberships ---------- */
.memberships { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.memberships__logos { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.5rem); }
.memberships__logos img { width: 140px; }
.careers-card { display: block; width: min(100%, 340px); overflow: hidden; border-radius: 3px; transition: box-shadow .3s; }
.careers-card:hover { box-shadow: 0 0 0 3px var(--forge); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__item { border-top: 1px solid var(--line-light); }
.faq__item:last-child { border-bottom: 1px solid var(--line-light); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.15rem 0; font-size: 1.12rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; transition: color .2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--forge-deep); }
.faq__mark { position: relative; flex: none; width: 16px; height: 16px; }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.faq__mark::after { transform: rotate(90deg); }
[open] > summary .faq__mark::after { transform: rotate(0); }
[open] > summary { color: var(--forge-deep); }
.faq__body { padding-bottom: 1.3rem; max-width: 62ch; }
.faq__item::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
.faq__item[open]::details-content { height: auto; }

/* ---------- Interior hero ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: #000 url("../img/flames-poster.webp") center bottom / cover no-repeat; }
.js .page-hero { background-image: none; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .8) 48%, transparent 82%); }
.page-hero__inner { position: relative; z-index: 2; min-height: clamp(360px, 52vh, 520px); padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: clamp(8rem, 20vh, 11rem); }
.page-hero__title { font: 800 clamp(3.4rem, 8.5vw, 7.25rem)/.92 var(--display); text-transform: uppercase; animation: rise .8s var(--ease) both; }
.page-hero__intro { max-width: 68ch; margin-top: 1rem; font-size: clamp(1.05rem, 1.45vw, 1.2rem); text-shadow: 0 1px 12px #000; animation: rise .8s .1s var(--ease) both; }

/* Interior hero with a photo instead of fire */
.page-hero--photo { background-image: none; }
.page-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::before { background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0, transparent 32%), linear-gradient(90deg, rgba(0, 0, 0, .84) 0, rgba(0, 0, 0, .62) 48%, rgba(0, 0, 0, .2) 100%); }
.page-hero--photo .page-hero__inner { padding-bottom: clamp(3.5rem, 8vh, 5rem); }

/* ---------- Services ---------- */
.jump { position: sticky; top: 68px; z-index: 30; background: var(--char); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.jump__row { display: flex; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.jump a { position: relative; display: block; padding: .95rem 0; font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; color: #d6d6d6; transition: color .2s; }
.jump a::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--forge); transform: scaleX(0); transition: transform .3s var(--ease); }
.jump a:hover, .jump a.is-current { color: var(--white); }
.jump__btn { position: absolute; top: 0; bottom: 0; z-index: 2; display: grid; place-items: center; width: 52px; padding: 0; border: 0; color: var(--amber); cursor: pointer; transition: opacity .2s, color .2s; }
.jump__btn:hover { color: var(--forge); }
.jump__btn:disabled { opacity: 0; pointer-events: none; }
.jump__btn span { width: .7rem; height: .7rem; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.jump__btn--prev { left: 0; background: linear-gradient(90deg, var(--char) 58%, transparent); }
.jump__btn--prev span { transform: translateX(-5px) rotate(-135deg); }
.jump__btn--next { right: 0; background: linear-gradient(270deg, var(--char) 58%, transparent); }
.jump__btn--next span { transform: translateX(5px) rotate(45deg); }
.jump a.is-current::after { transform: scaleX(1); }

.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 1.5rem; }
.spec-list > li { padding: .55rem 0; border-bottom: 1px solid var(--line-light); font-weight: 500; transition: padding-left .25s var(--ease), border-color .25s; }
.spec-list > li:hover { padding-left: .4rem; border-color: var(--forge); }
.spec-list ul { margin-top: .2rem; }
.spec-list ul li { font-family: var(--mono); font-size: .86rem; font-weight: 400; color: var(--steel); }
.band--mist .spec-list ul li { color: #555; }
.spec-list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 1.5rem; }

.standards { margin-top: clamp(3rem, 6vw, 4.5rem); }
.standards__intro { font-size: 1.15rem; font-weight: 600; }
.standards__table { width: 100%; margin-top: 1rem; border-collapse: collapse; background: var(--white); }
.standards__table thead th { padding: .75rem 1rem; background: var(--ink); color: var(--amber); font: 500 .8rem var(--mono); text-align: left; letter-spacing: .05em; text-transform: uppercase; }
.standards__table tbody th, .standards__table td { padding: .8rem 1rem; border-top: 1px solid var(--line-light); text-align: left; transition: background-color .2s; }
.standards__table tbody th { width: 34%; font: 500 .95rem var(--mono); white-space: nowrap; }
.standards__table tbody tr:hover > * { background: #fbeee7; }

/* ---------- Company ---------- */
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.2vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.cert { display: flex; flex-direction: column; gap: 1rem; }
.cert img { width: 100%; height: 96px; object-fit: contain; object-position: left center; }
.cert__logos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.full-photo img { width: 100%; max-height: 640px; object-fit: cover; }
.company-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); }
.seals { display: flex; gap: 1rem; margin-top: 1.5rem; }
.seals img { width: 104px; background: var(--white); border-radius: 50%; }
.pillar { padding: 1.3rem 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar dt { font: 700 1.5rem/1.15 var(--display); text-transform: uppercase; color: var(--amber); }

/* ---------- Careers ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.25rem); }
.reason { padding-top: 1rem; border-top: 3px solid var(--quench); transition: border-color .35s; }
.reason:hover { border-color: var(--forge); }
.reason dt { margin-bottom: .4rem; font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }

/* ---------- Longleaf ---------- */
.longleaf-logo { width: 230px; margin-bottom: 1rem; }
.page-longleaf .band--light { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.page-longleaf .split { align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 1rem; }
.gallery img { width: 100%; height: clamp(220px, 28vw, 380px); object-fit: cover; border-radius: 3px; }

/* ---------- Forms ---------- */
.form-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-family: var(--mono); font-size: .82rem; color: #555; }
.field { position: relative; }
.field input, .field textarea { display: block; width: 100%; padding: 1.45rem .95rem .55rem; background: var(--white); border: 1.5px solid #8b8b8b; border-radius: 3px; transition: border-color .2s, box-shadow .25s; resize: vertical; }
.band--light .field input, .band--light .field textarea { background: var(--mist); }
.field label { position: absolute; left: 1rem; top: 1rem; color: #555; pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forge); box-shadow: 0 0 0 3px rgba(243, 108, 56, .22); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.76); color: var(--forge-deep); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__hp { position: absolute; left: -9999px; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form .btn { justify-self: start; }
.form__status { font-size: .95rem; }
.form__status.is-error { color: #b3261e; font-weight: 600; }
.choice { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: .5rem; font-weight: 600; }
.choice label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.choice input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .3rem; accent-color: var(--forge); }

.form-thanks { margin-top: 1.5rem; padding: 1.75rem; background: var(--mist); border-top: 3px solid var(--forge); }
.form-thanks:focus { outline: none; }
.form-thanks svg { margin-bottom: .75rem; stroke: var(--forge-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-thanks circle { stroke-dasharray: 151; animation: draw .7s var(--ease) both; }
.form-thanks path { stroke-dasharray: 40; animation: draw .4s .5s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }

.contact-info { display: grid; gap: 2rem; }
.contact-info p, .contact-info address { margin-top: .5rem; }
.contact-file { margin-top: 1.5rem; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.person { min-width: 0; padding-top: 1rem; border-top: 3px solid var(--quench); transition: border-color .35s; }
.person:hover { border-color: var(--forge); }
.person__name { font: 700 1.7rem/1.1 var(--display); text-transform: uppercase; }
.person__role { margin-bottom: .6rem; color: var(--amber); }
.person p { overflow-wrap: anywhere; }
.map-band { background: var(--plate); }
.map-band iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.25); }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 2.25rem; font: 700 1.7rem/1.15 var(--display); text-transform: uppercase; }
.legal h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.legal p, .legal ul { margin-top: .85rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal li + li { margin-top: .4rem; }
.legal a { text-decoration-color: var(--forge); text-underline-offset: 2px; }

/* ---------- CTA and footer ---------- */
.cta-band { background: linear-gradient(100deg, var(--forge), var(--amber)); }
.cta-band__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.cta-band__title { max-width: 26ch; font: 800 clamp(2.2rem, 4.5vw, 3.75rem)/.98 var(--display); text-transform: uppercase; }
.cta-band .btn--hot { background: var(--ink); color: var(--white); }
.cta-band .btn--hot::before { background: var(--white); }
.cta-band .btn--hot:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

.site-footer { background: var(--ink); color: #dcdcdc; font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.site-footer__label { margin-bottom: .5rem; font: 500 .8rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--amber); }
.site-footer__badges { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 2.5rem; }
.badge-plate { display: block; width: 124px; height: 124px; padding: .5rem; background: var(--white); border-radius: 3px; transition: box-shadow .3s; }
.badge-plate img { width: 100%; height: 100%; object-fit: contain; }
a.badge-plate:hover { box-shadow: 0 0 0 3px var(--forge); }
.social { display: flex; gap: .5rem; margin-top: .9rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-dark); transition: color .2s, background-color .25s, box-shadow .25s; }
.social a:hover { background: var(--forge); color: var(--ink); box-shadow: 0 0 18px rgba(243, 108, 56, .55); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; border-top: 1px solid var(--line-dark); font-size: .87rem; color: #bdbdbd; }

/* ---------- Scroll reveals (only with JS, so content never hides without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(2), .certs__grid .reveal:nth-child(2), .people .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3), .certs__grid .reveal:nth-child(3), .people .reveal:nth-child(3) { transition-delay: .16s; }
.certs__grid .reveal:nth-child(4), .people .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.5rem; padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; overflow-y: auto; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: .25rem; width: 100%; }
  .site-nav__item { width: 100%; }
  .site-nav__link { font: 700 2.3rem/1.15 var(--display); text-transform: uppercase; }
  .site-nav__sub { position: static; display: none; min-width: 0; padding: 0 0 .5rem; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.is-open .site-nav__sub { display: block; }
  .site-nav__sub a { padding: .4rem 0; font-size: 1.15rem; }
  .site-logo { position: relative; z-index: 2; }
  .site-phone { font-size: 1.1rem; }
  .proof__row { grid-template-columns: repeat(3, 1fr); }
  .proof__item:nth-child(4) { border-left: 0; padding-left: 0; }
  .proof__item { padding-block: 1.1rem; }
  .certs__grid, .people { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .split, .split--wide-media, .faq, .form-split, .company-grid { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile__media img { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }

  .page-hero--photo::before { background: rgba(0, 0, 0, .64); }

  /* Mobile centering */
  .proof__row { display: flex; flex-wrap: wrap; justify-content: center; }
  .proof__item, .proof__item:first-child, .proof__item:nth-child(4) { flex: 0 0 33.333%; align-items: center; padding-inline: .5rem; border-left: 0; text-align: center; }
  .memberships { flex-direction: column; justify-content: center; }
  .memberships__logos { justify-content: center; }
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .social { justify-content: center; }
  .site-footer__legal { flex-direction: column; align-items: center; text-align: center; }
  .cert img { object-position: center; }
  .seals { justify-content: center; }
  .longleaf-logo { display: block; width: min(80vw, 340px); margin-inline: auto; margin-bottom: .75rem; }
  .page-longleaf .band--light { padding-top: 1.25rem; }
}

@media (max-width: 560px) {
  .proof__item, .proof__item:first-child, .proof__item:nth-child(4) { flex-basis: 50%; }
  .proof__item:last-child { flex-basis: 100%; }
  .spec-cols, .spec-list--two, .form__row, .people, .reasons, .certs__grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: .25rem; }
  .standards__table tbody th { white-space: normal; }
  .btn { padding-inline: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .fire, .heat-bar, .site-header, .cta-band, .map-band { display: none; }
  body { background: #fff; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
}
