/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-ink); }
a:hover { color: var(--fh-black); }
:focus-visible { outline: 3px solid var(--fh-brown); outline-offset: 3px; }
/* Brand guide type scale: H1 Cuprum Bold; H2 Montserrat Black, wide tracking, smaller;
   h3 stays in Cuprum Bold so cards and steps read as the same family as H1. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 2rem + 4.5vw, 5.75rem); }
h2 {
  font-family: var(--font-subhead); font-weight: 900;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); line-height: 1.25; letter-spacing: 0.16em;
}
h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); letter-spacing: 0.03em; }
/* Accent font (Cuprum Bold Italic): sparingly, for the tagline and quotes. */
.accent, blockquote { font-family: var(--font-display); font-style: italic; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.lead { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem); line-height: 1.45; max-width: 40ch; }
.measure { max-width: 62ch; }

/* Visible placeholder for text the owner still needs to supply */
mark.todo { background: #F6E3CF; color: var(--brown-ink); outline: 1px dashed var(--fh-brown); padding: 0 0.25em; }
.on-dark mark.todo, .cta-band mark.todo { background: rgba(255,255,255,0.12); color: var(--fh-offwhite); }

/* ---------- Small type ---------- */
.eyebrow {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.95rem; font-weight: 600; color: var(--brown-ink);
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--fh-brown); flex: none; }
@media (max-width: 480px) { .eyebrow { font-size: 0.9rem; letter-spacing: 0.08em; gap: 0.6rem; } .eyebrow::before { width: 1.25rem; } }
.spec {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0 0 1rem;
}
.spec span:not(:last-child)::after { content: "\00B7"; margin-left: 0.6rem; color: var(--fh-tan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; font-size: 1.05rem; line-height: 1;
  padding: 0.95rem 1.5rem; border: 2px solid var(--fh-black);
  background: var(--fh-black); color: var(--fh-offwhite);
  text-decoration: none; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fh-brown); border-color: var(--fh-brown); color: var(--fh-offwhite); }
.btn--ghost { background: transparent; color: var(--fh-black); }
.btn--ghost:hover { background: var(--fh-black); border-color: var(--fh-black); color: var(--fh-offwhite); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.text-link {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  text-decoration: none; color: var(--brown-ink); border-bottom: 2px solid var(--fh-tan); padding-bottom: 0.1em;
}
.text-link:hover { border-color: var(--fh-brown); color: var(--fh-black); }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--fh-black); color: var(--fh-offwhite); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
/* Brand guide: clear space of at least the logo's "M" height (46% of the logo) on every side. */
@media (min-width: 1001px) { .site-header__inner { min-height: 5.25rem; } }
.brand { display: block; }
.brand img { height: 2.4rem; width: auto; }
/* Page links in a row across the header on wide screens, plus a "Menu" button at every
   screen size (owner's choice); the button opens the same links in a panel below it. */
.site-links { display: none; }
@media (min-width: 1101px) {
  .site-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); margin-left: auto; margin-right: 0.75rem; }
  .site-links a {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 1rem;
    color: var(--ink); text-decoration: none; padding: 0.75rem 0; border-bottom: 2px solid transparent;
  }
  .site-links a:hover, .site-links a[aria-current="page"] { border-color: var(--fh-brown); }
  .site-links .site-nav__cta { border: 2px solid var(--fh-black); padding: 0.55rem 1rem; }
  .site-links .site-nav__cta:hover { background: var(--fh-black); color: var(--fh-offwhite); }
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  background: none; border: 2px solid var(--fh-black); padding: 0.5rem 0.8rem; color: var(--ink);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.95rem;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--fh-black); color: var(--fh-offwhite); }
.nav-toggle__bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; display: block; }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem var(--gutter) 1.25rem;
  box-shadow: 0 16px 24px -16px rgba(24,26,24,0.35);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--fh-brown); }
.site-nav .site-nav__cta { margin-top: 1rem; padding: 0.55rem 1rem; text-align: center; justify-content: center; border: 2px solid var(--fh-black); }
.site-nav .site-nav__cta:hover { background: var(--fh-black); color: var(--fh-offwhite); }
@media (max-width: 1000px) { .brand img { height: 1.8rem; } }
/* Wider screens: the panel hangs under the button instead of spanning the page. */
@media (min-width: 1001px) {
  .site-header__inner { position: relative; }
  .site-nav { left: auto; right: 0; width: 20rem; padding: 0.25rem 1.5rem 1.5rem; border: 1px solid var(--line); border-top: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(540px, 88svh, 860px); display: flex; align-items: flex-end; color: var(--fh-offwhite); background: var(--fh-black); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(24,26,24,0.10) 0%, rgba(24,26,24,0.22) 45%, rgba(24,26,24,0.86) 100%),
  linear-gradient(90deg, rgba(24,26,24,0.55) 0%, rgba(24,26,24,0.25) 45%, rgba(24,26,24,0) 75%); }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 1px 2px rgba(24,26,24,0.45), 0 0 24px rgba(24,26,24,0.35); }
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 12ch; margin-bottom: 0.35em; color: var(--fh-offwhite); }
.hero .lead { color: var(--fh-offwhite); opacity: 0.94; }
.hero .eyebrow { color: var(--fh-offwhite); }
.hero .eyebrow::before { background: var(--fh-offwhite); }
.hero .btn { background: var(--fh-offwhite); border-color: var(--fh-offwhite); color: var(--fh-black); }
.hero .btn:hover { background: var(--fh-brown); border-color: var(--fh-brown); color: var(--fh-offwhite); }
.hero .btn--ghost { background: transparent; color: var(--fh-offwhite); }
.hero .btn--ghost:hover { background: var(--fh-offwhite); color: var(--fh-black); border-color: var(--fh-offwhite); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem); border-top: 2px solid var(--fh-black); padding-top: 1.25rem;
}
.section-head__num { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; color: var(--brown-ink); padding-top: clamp(0.1rem, 0.02rem + 0.45vw, 0.45rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 52ch; color: var(--ink-2); grid-column: 2; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: auto 1.1fr 1fr; }
  .section-head p { grid-column: auto; padding-top: 0.45rem; }
}

/* Offers */
.offer-grid { display: grid; gap: 2.25rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offer img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1.1rem; background: var(--line); }
.offer h3 { margin-bottom: 0.4em; }
.offer p { color: var(--ink-2); max-width: 40ch; }

/* Feature */
.feature { display: grid; gap: 2rem var(--gutter); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 7fr 5fr; } }
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.feature__body p { max-width: 46ch; }

/* Work grid */
.work-grid { display: grid; gap: 2.25rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); }
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; background: var(--line); transition: opacity 0.2s; }
.work-card h3 { font-size: 1.5rem; margin-bottom: 0.25em; }
.work-card .spec { margin-bottom: 0; }
.work-card:hover img { opacity: 0.9; }
.work-card:hover h3 { color: var(--brown-ink); }

/* Steps */
.steps { display: grid; gap: 2.5rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--fh-brown); margin-bottom: 0.5rem; }
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--ink-2); max-width: 40ch; }
.strip { display: grid; gap: 1.5rem var(--gutter); grid-template-columns: 1fr; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 560px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip figure { margin: 0; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--line); }
.strip figcaption, .page-head__media figcaption, .clip figcaption { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--ink-2); margin-top: 0.6rem; }

/* Dark */
.on-dark { background: var(--bg-dark); color: var(--fh-offwhite); }
.on-dark h2, .on-dark h3 { color: var(--fh-offwhite); }
.on-dark p { color: var(--ink-on-dark); }
.on-dark .eyebrow { color: var(--fh-tan); }
.on-dark .eyebrow::before { background: var(--fh-tan); }
.on-dark .section-head { border-top-color: var(--fh-tan); }
.on-dark .section-head__num { color: var(--fh-tan); }
.on-dark a { color: var(--fh-offwhite); }

/* About */
.about { display: grid; gap: 2rem var(--gutter); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; } .about__img { order: -1; } }
.about__img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--line-on-dark); }
.about__body p { max-width: 50ch; }

/* CTA band */
.cta-band { background: var(--band); color: var(--fh-offwhite); padding-block: calc(var(--section) * 0.7); }
.cta-band h2 { color: var(--fh-offwhite); max-width: 22ch; margin-bottom: 0.4em; }
.cta-band p { max-width: 46ch; margin-bottom: 0; }
.cta-band__inner { display: grid; gap: 1.5rem var(--gutter); align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band .btn { background: var(--fh-black); border-color: var(--fh-black); color: var(--fh-offwhite); }
.cta-band .btn:hover { background: var(--fh-offwhite); border-color: var(--fh-offwhite); color: var(--fh-black); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fh-black); color: var(--ink-on-dark); padding-block: 3.5rem 2rem; }
.site-footer__grid { display: grid; gap: 2rem var(--gutter); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.site-footer__brand img { width: 7rem; height: auto; margin-bottom: 1rem; }
.site-footer__brand p { max-width: 28ch; }
.site-footer h2 { color: var(--fh-tan); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 0.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding-block: 0.7rem; }
.site-footer a { color: var(--fh-offwhite); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--fh-tan); text-underline-offset: 3px; }
.site-footer a, .contact-list .v a { overflow-wrap: anywhere; }
.site-footer__bottom .accent { font-size: 1.05rem; color: var(--fh-offwhite); letter-spacing: 0.02em; }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.9rem; color: var(--fh-tan); }

/* ---------- Work page ---------- */
.page-head { padding-block: calc(var(--section) * 0.7) calc(var(--section) * 0.5); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 14ch; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem); }
.page-head .lead { color: var(--ink-2); }
/* Page label above the title, in the brand guide's H2 style (Montserrat Black,
   wide tracking): clearly secondary to the H1, but not faint. */
.page-head .eyebrow {
  font-family: var(--font-subhead); font-weight: 900; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); letter-spacing: 0.22em;
  color: var(--brown-ink); gap: 1rem; margin-bottom: 1.25rem;
}
.page-head .eyebrow::before { width: 2.5rem; height: 3px; }
/* Page head with a picture beside the title (Process) */
.page-head__grid { display: grid; gap: 2rem var(--gutter); }
.page-head__media { margin: 0; }
.page-head__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.project { padding-block: calc(var(--section) * 0.7); border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.project:last-of-type { border-bottom: 0; }
.project__head { display: grid; gap: 1rem var(--gutter); margin-bottom: 2rem; }
.project__head h2 { margin-bottom: 0.25em; }
.project__head p { margin: 0; max-width: 52ch; color: var(--ink-2); }
@media (min-width: 900px) { .project__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery a { display: block; background: var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.2s; }
.gallery a:hover img { opacity: 0.9; }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-2 img { aspect-ratio: 8 / 3; }
.gallery--wide img { aspect-ratio: 2 / 1; } /* before/after pairs shot wide */
.gallery--single { grid-template-columns: minmax(0, 560px); }
.gallery--single img { aspect-ratio: auto; } /* one photo: show it whole */
.gallery img.focus-top { object-position: 50% 12%; } /* tall subjects: keep the top in the square crop */

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 2.5rem var(--gutter); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); padding-top: 0.25rem; }
.contact-list .v { font-size: 1.15rem; font-weight: 500; }
.contact-list .v small { display: block; font-size: 0.95rem; font-weight: 400; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.65rem 0 0.65rem 1.75rem; position: relative; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 0.7rem; height: 0.7rem; background: var(--fh-brown); }

/* ---------- Bracket evolution (Approach section) ---------- */
/* CAD renders sit on light "drawing sheet" plates; multiply drops their white ground into the plate tone. */
.plate { background: var(--plate); border: 1px solid var(--line); display: block; }
.plate img { mix-blend-mode: multiply; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.progression { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); counter-reset: none; }
@media (min-width: 760px) { .progression { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); gap: 1rem; } }
.progression__label { margin: 0.6rem 0 0; display: flex; gap: 0.5rem; align-items: baseline; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; font-size: 0.95rem; }
.progression__num { color: var(--brown-ink); }
.evolution { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.evolution__head { display: grid; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.evolution__head h3 { margin: 0; }
.evolution__head p { margin: 0; max-width: 60ch; color: var(--ink-2); }
@media (min-width: 900px) { .evolution__head { grid-template-columns: 1fr 1.6fr; align-items: start; } }
a.plate:hover { border-color: var(--line-strong); }

/* Buttons on dark sections: light fill so the button reads against black */
.on-dark .btn { background: var(--fh-offwhite); border-color: var(--fh-offwhite); color: var(--fh-black); }
.on-dark .btn:hover { background: var(--fh-brown); border-color: var(--fh-brown); color: var(--fh-offwhite); }
/* Contact list: stack label over value on narrow phones so the email fits on one line */
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Workshop notes ---------- */
.gallery--plates a { background: var(--plate); border: 1px solid var(--line); }
.gallery--plates img { mix-blend-mode: multiply; object-fit: contain; }
.gallery--plates > :first-child { grid-column: span 2; }
@media (min-width: 760px) { .gallery--plates > :first-child { grid-column: auto; } }
/* Simulation and photo plates are dark images: no multiply, black ground. */
.gallery--plates a.is-dark { background: var(--fh-black); border-color: var(--fh-black); }
.gallery--plates a.is-dark img { mix-blend-mode: normal; object-fit: cover; }
/* Phones: with the first plate spanning two columns, an even count leaves the last plate alone; widen it. */
@media (max-width: 759px) { .gallery--plates > :first-child:nth-last-child(even) ~ :last-child { grid-column: span 2; } }
.note { font-size: 0.95rem; color: var(--ink-2); margin-top: 1rem; }
.evolution__more { margin: 1.75rem 0 0; }

/* ---------- Page links and Process page ---------- */
.section-more { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.why { max-width: 46rem; }
.why h2 { margin-bottom: 0.4em; }
.why p:last-child { margin-bottom: 0; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); }

/* ---------- Work page: engineering notes, galleries ---------- */
.project__text { display: grid; gap: 0.9rem; }
.eng-note { margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--ink); }
.eng-note__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.9rem; color: var(--brown-ink); margin-right: 0.5rem; }
@media (min-width: 760px) { .gallery--pair { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 759px) { .gallery > .span-2:first-child ~ :last-child:nth-child(even) { grid-column: span 2; } }

/* ---------- Contact form ---------- */
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.35fr 1fr; } }
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.field__opt { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--plate);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.75rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--fh-brown); outline-offset: 1px; border-color: var(--fh-brown); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form__note { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.form__error { margin: 0; padding: 0.85rem 1rem; border-left: 3px solid var(--fh-brown); background: var(--plate); color: var(--brown-ink); font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside__h { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Accessibility statement ---------- */
.statement h2 { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); margin-top: clamp(2.25rem, 4vw, 3rem); }
.statement h2:first-child { margin-top: 0; }
.statement ul { padding-left: 1.25em; margin: 0 0 1.25em; }
.statement li + li { margin-top: 0.4em; }
.statement__contact { list-style: none; padding: 0 !important; }
.statement__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.statement__contact li + li { margin-top: 0; }
.statement__date { margin-top: 2rem; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Touch targets, cursors, utilities (UI/UX audit) ---------- */
/* Enlarge the tappable area of small standalone links to 44px without changing how they look. */
.text-link, .brand, .contact-list .v a { position: relative; }
.text-link::after, .brand::after, .contact-list .v a::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
}
.nav-toggle { min-height: 44px; }
button, select, summary, [type="submit"] { cursor: pointer; }
button:disabled { cursor: progress; opacity: 0.7; }
picture { display: contents; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Phones: show the whole hero photo, headline below it ---------- */
/* A tall crop of a long table only shows a slice of tabletop, so on narrow
   screens the photo keeps its own proportions and the text sits on black. */
@media (max-width: 599px) {
  .hero { display: block; min-height: 0; }
  .hero__img { position: static; height: auto; aspect-ratio: 3 / 2; }
  .hero::after { display: none; }
  .hero__inner { padding-block: 1.75rem 2.75rem; }
}

/* ---------- Photo viewer (js/main.js) ---------- */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--fh-black); color: var(--ink-on-dark);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--fh-black); }
.lightbox__figure { margin: 0; padding: 4.25rem 1rem 1.25rem; display: grid; justify-items: center; gap: 0.85rem; max-width: 100%; }
.lightbox__img { display: block; width: auto; height: auto; max-width: min(100%, 1600px); max-height: calc(100svh - 10rem); object-fit: contain; }
.lightbox__caption { max-width: 60ch; text-align: center; font-size: 0.95rem; line-height: 1.5; }
.lightbox__count { font-family: var(--font-display); letter-spacing: 0.12em; color: var(--fh-tan); white-space: nowrap; margin-left: 0.5em; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--scrim); color: var(--fh-offwhite);
}
.lightbox__btn:hover { color: var(--fh-tan); }
.lightbox__btn:focus-visible { outline: 3px solid var(--fh-tan); outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
@media (min-width: 900px) {
  .lightbox__figure { padding-inline: 5rem; }
  .lightbox__prev { left: 1.25rem; }
  .lightbox__next { right: 1.25rem; }
}

/* ---------- Engineering diagrams (Work page) ---------- */
/* Inline SVG drawings on a drawing-sheet plate. Ink is currentColor; the one
   element each drawing is about (cable, rod, fibers) is in the accent brown. */
.diagram { margin: 0 0 1.25rem; }
.diagram__panels { display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .diagram__panels { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.diagram figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-2); }
/* Interactive Study Hall drawing (main.js): one panel with a Cable on/off switch. */
.diagram__panels[hidden] { display: none; }
.diagram__live, .diagram--live figcaption { max-width: 760px; margin-inline: auto; }
.diagram__live .dl-on, .diagram__live .dl-off { transition: opacity 0.25s ease; }
.diagram__live .dl-off { opacity: 0; }
.diagram__live [data-cable="off"] .dl-on { opacity: 0; }
.diagram__live [data-cable="off"] .dl-off { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .diagram__live .dl-on, .diagram__live .dl-off { transition: none; } }
.dgswitch { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 0.9rem; }
.dgswitch__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.dgswitch__group { display: inline-flex; border: 2px solid var(--fh-black); }
.dgswitch button {
  min-height: 44px; min-width: 4.75rem; padding: 0.4rem 1rem; border: 0; background: none; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em;
}
.dgswitch button[aria-pressed="true"] { background: var(--fh-black); color: var(--fh-offwhite); }
.dgswitch__hint { margin: 0.5rem 0 0; text-align: center; font-size: 0.9rem; color: var(--ink-2); }
.dg { display: block; width: 100%; height: auto; background: var(--plate); border: 1px solid var(--line); color: var(--ink); }
.dg text { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: 0.08em; fill: currentColor; }
.dg .tb { font-size: 15.5px; letter-spacing: 0.1em; }
.dg .meta { font-size: 14px; font-weight: 500; fill: var(--ink-2); }
.dg .acc { fill: var(--brown-ink); }
.dg .ob { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; }
.dg .ob-rect { stroke: currentColor; stroke-width: 1.6; }
.dg .th { fill: none; stroke: currentColor; stroke-width: 1; }
.dg .hid { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 6 4; }
.dg .ph { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 14 4 3 4; opacity: 0.75; }
.dg .cl { fill: none; stroke: currentColor; stroke-width: 0.9; stroke-dasharray: 12 3 2 3; opacity: 0.8; }
.dg .grain { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.35; }
.dg .box { fill: none; stroke: currentColor; stroke-width: 1.4; }
.dg .solid { fill: currentColor; }
.dg .wood { fill: var(--line); stroke: currentColor; stroke-width: 2.2; }
.dg .notch { fill: var(--plate); stroke: currentColor; stroke-width: 1.4; }
.dg .steel { fill: currentColor; }
.dg .steel-hi { fill: var(--ink-2); }
.dg .acc-line { fill: none; stroke: var(--accent); stroke-width: 3; }
.dg .acc-thin { stroke-width: 2.4; }
.dg .acc-th { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.dg .acc-fill { fill: var(--accent); }
.dg .acc-hid { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 7 4; }

/* ---------- Bracket version slider (Process page, js/main.js) ---------- */
.progression[hidden] { display: none; }
/* ---------- Video clips: short silent loops with a pause button ---------- */
.clip { margin: 0; }
.clip__frame { position: relative; background: var(--line); }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.clip__toggle {
  position: absolute; right: 0.6rem; bottom: 0.6rem; width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: var(--scrim); color: var(--fh-offwhite); cursor: pointer;
}
.clip__toggle:focus-visible { outline: 3px solid var(--fh-tan); outline-offset: 2px; }
.gallery--clip { align-items: start; }
@media (max-width: 759px) { .gallery--clip > .clip:last-child { grid-column: span 2; } }
/* Five items: three across, then two larger ones (the video among them). */
@media (min-width: 560px) and (max-width: 999px) { .strip--five > :last-child { grid-column: span 2; } }
@media (min-width: 1000px) {
  .strip--five { grid-template-columns: repeat(6, 1fr); }
  .strip--five > * { grid-column: span 2; }
  .strip--five > :nth-child(n+4) { grid-column: span 3; }
}
.vslider { max-width: 760px; margin-inline: auto; }
.vslider__stage { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer; }
.vslider__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.45s ease; }
.vslider__stage img.is-on { opacity: 1; }
.vslider__range { display: block; width: 75%; height: 44px; margin: 1rem auto 0; accent-color: var(--fh-brown); cursor: pointer; }
.vslider__labels { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.vslider__labels button {
  width: 100%; min-height: 44px; padding: 0.35rem 0.25rem; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; text-align: center;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 0.9rem; color: var(--ink-2);
}
.vslider__labels button[aria-pressed="true"] { color: var(--ink); }
.vslider__labels button[aria-pressed="true"] .progression__num { color: var(--brown-ink); }
.vslider__hint { margin: 0.5rem 0 0; text-align: center; font-size: 0.9rem; color: var(--ink-2); }

