/* Steel Art Metal Fabrication L.L.C. — website styles
   Palette taken from the logo (brushed steel + copper). Type: Archivo, used across its width axis. */

:root {
  --ink: #1b2229;        /* mill scale */
  --steel: #34414c;      /* dark plate */
  --muted: #4a5762;      /* secondary text on light */
  --galv: #dde2e5;       /* galvanised grey */
  --zinc: #f1f3f4;       /* light section */
  --white: #ffffff;
  --copper: #b06b45;     /* logo copper */
  --copper-deep: #96583a;/* buttons, text on light */
  --copper-light: #e0a584;/* text on dark */
  --line: #c4cbd0;
  --line-dark: rgba(255, 255, 255, .18);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1180px;
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Archivo", "Segoe UI", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--zinc);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h1, .h2, .h3 { font-family: "Archivo", "Segoe UI", Arial, sans-serif; letter-spacing: -.01em; }
.h1 { font-size: clamp(2.5rem, 6.4vw, 5.1rem); font-weight: 800; font-stretch: 125%; line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.8rem); font-weight: 750; font-stretch: 118%; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 110%; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 60ch; }
.meta { font-size: .875rem; font-stretch: 88%; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius);
  font-weight: 700; font-stretch: 108%; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--copper-deep); color: var(--white); }
.btn--primary:hover { background: #7f4a2f; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--steel); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.nav-list a { text-decoration: none; font-weight: 600; font-stretch: 100%; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--copper); }
.nav-list a.is-active { border-bottom-color: var(--copper); }
.nav-cta { white-space: nowrap; min-height: 42px; padding: .45rem 1.1rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink) url("../images/cover.jpg") right center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(27, 34, 41, .96) 0%, rgba(27, 34, 41, .82) 42%, rgba(27, 34, 41, .3) 100%);
}
.beam { position: absolute; z-index: -1; height: clamp(70px, 11vw, 130px); width: 90%; transform-origin: left center; animation: beam-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.beam--a { left: -12%; bottom: -8%; transform: rotate(-26deg); background: linear-gradient(90deg, rgba(176, 107, 69, .9), rgba(176, 107, 69, .55) 55%, rgba(176, 107, 69, 0)); }
.beam--b { right: -52%; top: 6%; transform: rotate(-26deg); background: linear-gradient(90deg, rgba(176, 107, 69, 0), rgba(176, 107, 69, .5)); animation-delay: .15s; }
@keyframes beam-in { from { opacity: 0; translate: -8% 0; } to { opacity: 1; translate: 0 0; } }

.hero-body { padding-top: clamp(4rem, 12vh, 8rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.hero .h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.5rem; color: #e8ecef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Drawing-sheet title block */
.titleblock { background: rgba(241, 243, 244, .97); color: var(--ink); border-top: 4px solid var(--copper); }
.titleblock dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.titleblock dl > div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); }
.titleblock dl > div:first-child { border-left: 0; padding-left: 0; }
.titleblock dt { font-size: .85rem; font-stretch: 88%; font-weight: 600; color: var(--muted); }
.titleblock dd { font-size: 1.35rem; font-weight: 750; font-stretch: 112%; line-height: 1.2; margin-top: .15rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section--steel { background: var(--steel); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead, .section-head p { margin-top: 1rem; }
.section--dark .meta, .section--steel .meta { color: #b9c3ca; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--galv); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 21 / 9; }

/* About */
.about-banner { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.about-banner .photo { aspect-ratio: 21 / 8; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.vm-photo { grid-column: 1 / -1; aspect-ratio: 21 / 7; background: url("../images/vision.jpg") center 22% / cover; }
.vm article { padding: clamp(1.5rem, 3vw, 2.5rem); }
.vm article + article { border-left: 1px solid var(--line-dark); }
.vm h3 { color: var(--copper-light); margin-bottom: .6rem; }
.vm p { max-width: 46ch; font-size: 1.1rem; }

/* Why us */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.reasons li { padding: 1.1rem 0 1.1rem 2.2rem; border-top: 1px solid var(--line); position: relative; font-weight: 500; font-size: 1.05rem; }
.reasons li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--copper-deep); }
.reasons li::after { content: ""; position: absolute; left: .32rem; top: 1.78rem; width: .4rem; height: .22rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Services */
.service-list { border-bottom: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.service-list p { color: var(--muted); max-width: 52ch; }

/* Process */
.process { background: linear-gradient(rgba(27, 34, 41, .9), rgba(27, 34, 41, .94)), url("../images/blueprint.jpg") center / cover, var(--ink); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.steps li { padding: 1.5rem 1.25rem 0 0; position: relative; counter-increment: step; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--copper); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: -4px; right: 0; width: 12px; height: 12px; background: var(--copper); transform: rotate(45deg) translate(4px, -4px); }
.step-no { display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 125%; line-height: 1; color: var(--copper-light); margin-bottom: .8rem; }
.steps .h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.steps p { color: #cdd5da; font-size: .96rem; line-height: 1.5; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap-grid > div { background: var(--white); padding: 1.6rem; }
.cap-grid p { color: var(--muted); margin-top: .5rem; font-size: 1rem; }
.cap-grid strong { display: block; font-size: 1.9rem; font-weight: 800; font-stretch: 120%; line-height: 1.1; color: var(--copper-deep); }

.roster { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; padding-bottom: .8rem; }
.data-table th, .data-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .85rem; font-stretch: 88%; font-weight: 700; background: var(--ink); color: var(--white); border-bottom: 0; white-space: nowrap; }
.data-table tbody th { font-weight: 500; }
.data-table td.num, .data-table th.num { text-align: right; width: 5rem; }
.data-table .group th { background: var(--galv); font-weight: 700; font-stretch: 105%; }
.data-table tfoot td, .data-table tfoot th { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }

details.equipment { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
details.equipment summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; font-stretch: 110%; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.equipment summary::-webkit-details-marker { display: none; }
details.equipment summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--copper-deep); }
details.equipment[open] summary::after { content: "\2212"; }
.equip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; padding: 0 1.4rem 1.2rem; }
.equip-cols li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.equip-cols b { font-weight: 700; }

/* Org chart (indented tree) */
.org { margin-top: clamp(2.5rem, 5vw, 4rem); }
.tree, .tree ul { position: relative; }
.tree ul { margin-left: 1.1rem; padding-left: 1.4rem; }
.tree li { position: relative; padding: .28rem 0; }
.tree ul > li::before { content: ""; position: absolute; left: -1.4rem; top: 1.12rem; width: 1.1rem; border-top: 2px solid var(--line); }
.tree ul > li::after { content: ""; position: absolute; left: -1.4rem; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.tree ul > li:last-child::after { bottom: auto; height: 1.12rem; }
.tree .node { display: inline-block; padding: .35rem .8rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .95rem; }
.tree > li > .node { background: var(--ink); color: var(--white); border-color: var(--ink); }
.org-cols { column-width: 22rem; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.chip { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: .4rem 1rem; font-weight: 600; font-stretch: 100%; cursor: pointer; min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.search { margin-left: auto; min-width: min(100%, 16rem); min-height: 42px; border: 2px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem; background: var(--white); }
.search:focus { border-color: var(--ink); outline-offset: 2px; }
.register { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.register .data-table { min-width: 960px; font-size: .92rem; }
.register thead th { position: sticky; top: 0; }
.register td.year { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.register .sub { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.register .scope { min-width: 9.5rem; }
.register td:nth-child(2) { min-width: 16rem; }
.register td:nth-child(4) { min-width: 8rem; }
.result-count { margin-top: .9rem; }
tr[hidden] { display: none; }

.gallery { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: clamp(2.2rem, 4vw, 3.2rem); }
.set { display: grid; grid-template-columns: 17rem 1fr; gap: 1.5rem 2rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.set h3 { margin-bottom: .35rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.shot { position: relative; width: 100%; padding: 0; border: 0; background: var(--galv); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; display: block; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shot:hover img { transform: scale(1.04); }
.shot--wide { grid-column: span 2; aspect-ratio: auto; }

.drawings { margin-top: clamp(3rem, 6vw, 5rem); }
.drawings .shots { grid-template-columns: repeat(4, 1fr); }
.drawings .shot { aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); }
.drawings .shot img { object-fit: contain; }
.drawings figcaption, .certs figcaption { margin-top: .5rem; }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cert .shot { aspect-ratio: 3 / 4; background: var(--white); border: 1px solid var(--line); }
.cert .shot img { object-fit: cover; object-position: top; }
.cert-scope { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.5rem 1.75rem; border-left: 5px solid var(--copper); background: var(--white); max-width: 70ch; }
.cert-scope .h3 { margin-bottom: .4rem; }

/* Clients */
.client-list { columns: 2; column-gap: 2.5rem; }
.client-list li { break-inside: avoid; padding: .55rem 0; border-top: 1px solid var(--line-dark); font-weight: 600; font-stretch: 105%; }
.client-list small { display: block; font-weight: 400; font-stretch: 100%; color: #b9c3ca; font-size: .88rem; }
.contractors { margin-top: 2rem; }
.contractors p { color: #cdd5da; margin-top: .5rem; max-width: 56ch; }

/* HSE */
.hse-values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); overflow: hidden; }
.hse-values li { background: var(--white); padding: 1.1rem 1rem; font-weight: 700; font-stretch: 108%; text-align: left; }
.hse-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.5rem; }
.hse-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hse-main { aspect-ratio: 16 / 10; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { margin-top: 1.5rem; }
.contact-list div { padding: 1rem 0; border-top: 1px solid var(--line-dark); }
.contact-list dt { color: #b9c3ca; font-size: .88rem; font-stretch: 88%; font-weight: 600; }
.contact-list dd { font-size: 1.15rem; font-weight: 600; font-stretch: 105%; }
.contact-list a { text-decoration-color: var(--copper); text-underline-offset: 4px; }
.form { background: var(--zinc); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-stretch: 100%; font-size: .95rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: #11161a; color: #c3ccd2; padding-block: 3rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: inline-block; background: var(--white); padding: .6rem .9rem; border-radius: var(--radius); }
.footer-logo img { height: 52px; width: auto; }
.site-footer h2 { font-size: .95rem; font-stretch: 110%; font-weight: 700; color: var(--white); margin-bottom: .8rem; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .9rem; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--white); }
dialog.lightbox::backdrop { background: rgba(10, 14, 17, .92); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 1rem; gap: .8rem; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lb-caption { max-width: 70ch; }
.lb-btns { display: flex; gap: .5rem; }
.lb-btn { background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius); min-width: 46px; min-height: 46px; padding: 0 1rem; font-weight: 700; cursor: pointer; }
.lb-btn:hover { background: var(--copper-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .certs { grid-template-columns: repeat(3, 1fr); }
  .drawings .shots { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .steps li:nth-child(3)::after { display: none; }
  .set { grid-template-columns: 1fr; }
  .hse-values { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem; display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-list a.btn { display: flex; margin-top: 1rem; padding: .7rem 1.4rem; border-bottom: 2px solid transparent; }
  .split, .roster, .contact-grid { grid-template-columns: 1fr; }
  .split .photo--tall { aspect-ratio: 16 / 10; order: -1; }
  .cap-grid { grid-template-columns: 1fr; }
  .titleblock dl { grid-template-columns: 1fr 1fr; }
  .titleblock dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .titleblock dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; }
  .about-banner .photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  .reasons { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 1fr; gap: .4rem; }
  .vm { grid-template-columns: 1fr; }
  .vm article + article { border-left: 0; border-top: 1px solid var(--line-dark); }
  .vm-photo { aspect-ratio: 16 / 8; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3)::after { display: block; }
  .steps li:nth-child(even)::after { display: none; }
  .equip-cols { grid-template-columns: 1fr; padding-bottom: 1rem; }
  .client-list { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .hse-photos { grid-template-columns: 1fr 1fr; }
  .hse-values { grid-template-columns: 1fr 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .search { margin-left: 0; width: 100%; }
  .shots { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .shot--wide { grid-column: span 2; aspect-ratio: 16 / 9; }

  /* Project register becomes stacked cards */
  .register .data-table { min-width: 0; }
  .register thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .register tbody tr { display: block; padding: 1rem; border-bottom: 1px solid var(--line); }
  .register tbody td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; border: 0; padding: .2rem 0; }
  .register tbody td::before { content: attr(data-label); font-size: .82rem; font-stretch: 88%; font-weight: 600; color: var(--muted); }
  .register .scope, .register td:nth-child(2), .register td:nth-child(4) { min-width: 0; }
  .register .sub { grid-column: 2; }
}

@media (max-width: 480px) {
  .titleblock dl { grid-template-columns: 1fr; }
  .titleblock dl > div { border-left: 0; padding-left: 0; }
  .titleblock dl > div + div { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none !important; }
  .brand img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; }
  .shot img { transition: none; }
}
