:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #21262a;
  --muted: #51555a;
  --line: #d8d3c9;
  --accent: #9d3029;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(2.15rem, 4.3vw, 3.7rem); }
h3 { font-size: 1.09rem; line-height: 1.3; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 2; background: white; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
.site-header { border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--paper) 25%, transparent 92%),
    repeating-linear-gradient(to right, #36505d1a 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to bottom, #36505d1a 0 1px, transparent 1px 12px);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 83px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.25; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; }
.brand small { color: var(--muted); margin-top: 4px; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 41px); }
nav a { text-decoration: none; font-weight: 600; font-size: .91rem; }
nav a:hover, .text-link:hover { color: var(--accent); text-decoration: underline; }
.home-canvas {
  position: relative;
  /* Keep the branding strip at the bottom of the artwork clear of tiles. */
  --branding-strip: min(12.3vw, 230px);
  background: #f5f5f5 url("machined-housing-background.webp") center bottom / min(100%, 1866px) auto no-repeat;
}
.canvas-inner {
  padding-top: clamp(34px, 4vw, 63px);
}
.canvas-inner h1 { font-size: clamp(2.45rem, 4.3vw, 4.6rem); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.45vw, 22px);
  width: min(62%, 555px);
  margin: 28px auto var(--branding-strip);
}
.home-canvas.has-floating-tiles {
  display: flex;
  flex-direction: column;
  min-height: clamp(740px, 56.28vw, 1050px);
}
.topic-grid.is-floating {
  display: block;
  position: relative;
  flex: 1;
  min-height: 520px;
  width: calc(50% + min(15%, 280px) - 10px);
  margin: 0 0 var(--branding-strip) 10px;
  pointer-events: none;
}
.is-floating .topic-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--tile-size);
  pointer-events: auto;
  transition: box-shadow .18s ease;
}
.is-floating .topic-tile:hover, .is-floating .topic-tile:focus-visible { z-index: 1; }
.topic-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #ffffffb8;
  border-radius: 18px;
  background: #373e43;
  box-shadow: 0 7px 18px #20262d37;
  color: white;
  font-size: clamp(.85rem, 1.14vw, 1.05rem);
  font-weight: 700;
  line-height: 1.18;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.topic-tile:hover, .topic-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 13px 24px #20262d52;
}
.topic-tile:focus-visible { outline-color: var(--accent); }
.topic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.topic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 31%, #171e24c9 65%, #171e24 100%);
  z-index: -1;
}
.topic-tile > span { display: flex; justify-content: space-between; align-items: end; gap: 5px; padding: 12px; }
.tile-arrow { flex: none; }
.detail { padding-block: clamp(34px, 6vw, 85px); }
.detail-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(25px, 6vw, 80px); margin-top: 23px; }
.detail h1 { font-size: clamp(2.75rem, 5.5vw, 5.25rem); }
.lede { font-size: clamp(1.12rem, 2vw, 1.4rem); font-weight: 600; }
.detail article p { margin-top: 16px; color: var(--muted); }
.detail ul { padding-left: 1.2rem; margin-block: 20px 26px; }
.detail-visuals { display: grid; gap: 18px; align-content: start; }
.detail-visuals figure { padding: 12px; border: 1px solid var(--line); background: white; }
.detail-visuals img { width: 100%; height: auto; max-height: 480px; object-fit: contain; }
figcaption { color: var(--muted); font-size: .85rem; padding: 8px 3px 2px; }
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: .68rem 1rem; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover { background: #79221c; }
.text-link { font-weight: 650; text-decoration: none; }
.contact { padding-block: clamp(47px, 6.4vw, 91px); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px 35px; align-items: end; }
.section-heading > p, .service-grid p, .work-grid p, .about p:not(.eyebrow) { color: var(--muted); }
.section-heading > p { max-width: 45ch; }
section h2 { margin-top: 9px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 37px; }
.service-grid article { border-top: 2px solid #ad544c; padding-top: 17px; }
.service-grid p, .work-grid p { margin-top: .5rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 29px; }
.work-grid article { border: 1px solid var(--line); }
.work-grid img { width: 100%; height: clamp(175px, 22vw, 280px); object-fit: cover; }
.work-grid article > div { padding: 17px 19px 20px; }
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(25px, 6vw, 85px); align-items: center; }
.about p:not(.eyebrow) { margin-top: 15px; max-width: 61ch; }
.about figure { border: 1px solid var(--line); padding: 12px; background: #fff; }
.about img { width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .85rem; padding: 8px 3px 2px; }
.contact { padding-block: clamp(47px, 6.4vw, 91px); background: #272b2d; color: #fff; }
.contact .eyebrow { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 24px 49px; }
.contact p:not(.eyebrow) { color: #e4ded7; margin-top: 15px; max-width: 59ch; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-actions .button { background: #f6dfd8; color: #592019; margin-bottom: 4px; }
.contact-actions .button:hover { background: #fff0e9; }
footer { font-size: .86rem; color: var(--muted); }
.footer-inner { min-height: 63px; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: 12px; gap: 10px; }
  nav { width: 100%; gap: 18px; }
  .home-canvas { --branding-strip: 56.28vw; }
  .topic-grid { width: min(calc(100% - 36px), 540px); }
  .topic-grid.is-floating { width: calc(100% - 20px); }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .topic-grid.is-floating { min-height: 790px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic-tile { transition: none; }
  .topic-tile:hover, .topic-tile:focus-visible { transform: none; }
}

.brand img { width: 42px; height: 42px; }

.vault-project { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.vault-project p { margin-top: .65rem; max-width: 65ch; }
.vault-project h3 { margin: 1.8rem 0 .75rem; }
.vault-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.vault-gallery figure { border: 1px solid var(--line); padding: .6rem; background: white; }
.vault-gallery a { display: block; }
.vault-gallery img { width: 100%; height: 260px; object-fit: contain; }

.team { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1.25rem; margin-top: 1rem; }
.team-profile { padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); }
.team-profile img { display: block; width: min(100%, 180px); height: auto; margin-bottom: 1rem; }
.team-profile p { margin-top: .5rem; }
