/* ==========================================================================
   SITCO - components.css
   Header, navigation, hero, buttons, cards, data blocks, forms, contact
   sheet gallery, footer. One design system, used by all five pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--darkroom);
  border-bottom: 1px solid var(--darkroom-line-2);
}

/* Utility bar - the two facts a plant engineer actually needs first */
.utility {
  background: #080A0D;
  border-bottom: 1px solid var(--darkroom-line-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-muted);
  overflow: hidden;
  height: 36px;
  transition: height var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 36px;
}
.utility a { color: var(--on-dark-muted); text-decoration: none; }
.utility a:hover { color: #fff; }
.utility__loc { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.utility__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility__tel { white-space: nowrap; font-weight: 500; color: var(--on-dark); }
.utility__dot { color: var(--safelight-lit); }

.site-header.is-scrolled .utility { height: 0; opacity: 0; }

/* Main bar */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .nav-bar { height: 62px; }

.brand { display: flex; align-items: center; gap: var(--s-4); text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand__rule { width: 1px; height: 26px; background: var(--darkroom-line); }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  max-width: 22ch;
  white-space: nowrap;
}

/* Desktop navigation */
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav__list { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--on-dark-muted);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-4); right: var(--s-4); bottom: 6px;
  height: 2px;
  background: var(--safelight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Certification: preserved from the source menu, where it points nowhere.
   Rendered as a real menu item that is honestly not navigable. */
.nav__link--inert { color: #7E8894; cursor: default; }
.nav__link--inert:hover { color: #7E8894; }
.nav__link--inert:hover::after { transform: scaleX(0); }

.nav__caret { width: 8px; height: 8px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__drop {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  min-width: 232px;
  background: var(--darkroom-panel);
  border: 1px solid var(--darkroom-line);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.7);
  list-style: none;
  padding: var(--s-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }

.nav__drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-3);
  font-size: 0.875rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__drop a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__drop svg { width: 11px; height: 11px; opacity: 0.5; flex-shrink: 0; }

/* Header CTA - the phone number, shown only inside the mobile panel where
   the utility bar is hidden. On desktop the utility bar already carries it. */
.nav__cta {
  display: none;
  align-items: center;
  gap: var(--s-2);
  margin-left: var(--s-3);
  padding: 0.6rem var(--s-5);
  background: var(--safelight);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.nav__cta:hover { background: #FF1C29; color: #fff; }

/* Mobile toggle */
/* Sits above the off-canvas panel (z-index 110) inside the header's stacking
   context, so the close control stays reachable while the menu is open. */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  margin-right: calc(var(--s-3) * -1);
  background: none;
  border: 0;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 20px; height: 12px; position: relative; }
.nav-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85rem var(--s-6);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary, .on-darkroom .btn--primary { background: var(--safelight); color: #fff; }
.btn--primary:hover, .on-darkroom .btn--primary:hover { background: #FF1C29; color: #fff; }

.btn--ghost, .on-darkroom .btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover, .on-darkroom .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.btn--outline, .on-darkroom .btn--outline { background: transparent; color: var(--ink); border-color: var(--film-edge); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Same reason: cards and framed links inside a dark band keep their own ink. */
.on-darkroom .card, .on-darkroom .card:hover { color: var(--ink); }
.on-darkroom .card__go { color: var(--safelight-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* --------------------------------------------------------------------------
   Home hero - the darkroom
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--darkroom);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  /* The source photograph is a darkroom lit only by a safelight, so it is
     genuinely near-black. Lifted just enough to read behind the overlay. */
  filter: brightness(1.22) contrast(1.04) saturate(1.06);
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 10, 13, 0.93) 0%, rgba(8, 10, 13, 0.80) 46%, rgba(8, 10, 13, 0.46) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(440px, 66vh, 620px);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__eyebrow { margin-bottom: var(--s-5); color: var(--on-dark-muted); }
.hero__title { color: #fff; max-width: 17ch; }
.hero__title em {
  font-style: normal;
  display: block;
  color: var(--safelight);
}
.hero__rule { width: 64px; height: 3px; background: var(--safelight); margin-block: var(--s-6); }
.hero__note {
  max-width: 46ch;
  color: #B9C3CD;
  font-size: var(--step-1);
  line-height: 1.6;
  margin-bottom: var(--s-7);
}

/* Method codes strip - these are the exact equipment codes from the source page */
.methods { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.methods dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.methods dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #C8D1DA;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.04);
}

/* Hero slide indicator - preserves the source page's two-slide rotation */
.hero__dots {
  position: absolute;
  bottom: var(--s-6);
  right: var(--gutter);
  display: flex;
  gap: var(--s-3);
  z-index: 2;
  padding: var(--s-2) var(--s-3);
  background: rgba(8, 10, 13, 0.55);
  backdrop-filter: blur(2px);
}
.hero__dot {
  width: 28px; height: 16px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
/* The visible mark is a 3px bar centred in a 16px-tall tap target. */
.hero__dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: rgba(255, 255, 255, 0.42);
  transition: background var(--dur) var(--ease);
}
.hero__dot[aria-selected="true"]::before { background: var(--safelight); }
.hero__dot:hover::before { background: rgba(255, 255, 255, 0.62); }

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  background: var(--darkroom);
  overflow: hidden;
  isolation: isolate;
}
.page-head__media {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.28;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(8, 10, 13, 0.95) 10%, rgba(8, 10, 13, 0.72) 100%);
}
.page-head__inner { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head .eyebrow { color: var(--on-dark-muted); }
.page-head__title { color: #fff; margin-top: var(--s-4); }
.page-head__note { color: #A9B4BF; max-width: 58ch; margin-top: var(--s-4); font-size: var(--step-1); }

/* Breadcrumb */
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); list-style: none; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s-3); color: #4C5761; }
.crumbs [aria-current="page"] { color: var(--safelight-lit); }

/* --------------------------------------------------------------------------
   Section heading
   -------------------------------------------------------------------------- */
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); max-width: 62ch; }
.sec-head .eyebrow { margin-bottom: var(--s-4); }
.sec-head__rule { width: 48px; height: 2px; background: var(--safelight); margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   Split layout: prose + supporting figure
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--6-6 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Instrument figure - product photos are small (244px), so they are framed
   rather than blown up. The frame carries the caption. */
.instrument {
  background: var(--lightbox-raised);
  border: 1px solid var(--film-edge);
  box-shadow: var(--shadow-sm);
}
.instrument img { width: 100%; background: var(--lightbox-raised); }
.instrument--pad img {
  padding: var(--s-6);
  max-width: 308px;
  margin-inline: auto;
}
.instrument figcaption {
  border-top: 1px solid var(--film-edge);
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.instrument + .instrument { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   Spec block - key/value data, hairline ruled
   -------------------------------------------------------------------------- */
.spec { border-top: 1px solid var(--film-edge); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--film-edge);
  align-items: baseline;
}
.spec__key {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
}
.spec__val { font-size: var(--step-0); }
.spec__val strong { font-weight: 600; }

.on-darkroom .spec { border-color: var(--darkroom-line); }
.on-darkroom .spec__row { border-color: var(--darkroom-line); }
.on-darkroom .spec__key { color: var(--on-dark-muted); }
.on-darkroom .spec__val { color: var(--on-dark); }

/* Headline figure - one number, stated plainly */
.figure-stat { display: flex; align-items: baseline; gap: var(--s-3); }
.figure-stat b {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.figure-stat span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Approval cards - client qualifications
   -------------------------------------------------------------------------- */
.approvals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); list-style: none; }
.approval {
  background: var(--darkroom-raised);
  border: 1px solid var(--darkroom-line);
  border-left: 2px solid var(--safelight);
  padding: var(--s-5);
}
.approval__client {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  display: block;
  margin-bottom: var(--s-2);
}
.approval__scope {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   Nav cards - route to the other pages
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--s-5); list-style: none; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--lightbox-raised);
  border: 1px solid var(--film-edge);
  padding: var(--s-6);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--safelight);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}
.card .eyebrow { margin-bottom: var(--s-4); }
.card__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.25; margin-bottom: var(--s-3); }
.card__body { color: var(--ink-muted); font-size: 0.94rem; margin-bottom: var(--s-5); }
.card__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--safelight-deep);
}
.card__go svg { width: 13px; height: 13px; transition: transform var(--dur) var(--ease); }
.card:hover .card__go svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Capability groups - Products and Services
   -------------------------------------------------------------------------- */
.groups { display: grid; gap: var(--s-6); align-items: start; }
.groups--2 { grid-template-columns: repeat(2, 1fr); }

.group {
  background: var(--lightbox-raised);
  border: 1px solid var(--film-edge);
  border-top: 3px solid var(--darkroom);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}
.group__head { margin-bottom: var(--s-5); }
.group__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2; }
.group__count {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); margin-top: var(--s-2); display: block;
}

/* Ruled list - reads as a scope-of-work register, not decorative bullets */
.ruled { list-style: none; border-top: 1px solid var(--film-edge); }
.ruled li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--film-edge);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ruled li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: 0.62em;
  background: var(--safelight);
}
.on-darkroom .ruled { border-color: var(--darkroom-line); }
.on-darkroom .ruled li { border-color: var(--darkroom-line); color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Client register - Projects
   -------------------------------------------------------------------------- */
.register {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  border-top: 1px solid var(--film-edge);
  border-left: 1px solid var(--film-edge);
}
.register li {
  border-bottom: 1px solid var(--film-edge);
  border-right: 1px solid var(--film-edge);
  padding: var(--s-5);
  background: var(--lightbox-raised);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.register li:hover { background: var(--darkroom); color: #fff; }

/* Scope rows - client to project codes */
.scope { border-top: 1px solid var(--darkroom-line); }
.scope__row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--darkroom-line);
}
.scope__client {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--safelight-lit);
}
.scope__items { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.scope__items li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--on-dark);
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--darkroom-line);
  background: rgba(255, 255, 255, 0.035);
}

/* --------------------------------------------------------------------------
   Contact sheet - gallery.
   A contact sheet is how a darkroom presents a roll: every frame, numbered,
   at one size. The numbering is real here - these are frames 1 to 20.
   -------------------------------------------------------------------------- */
.sheet { columns: 3; column-gap: var(--s-5); }
.sheet__frame {
  break-inside: avoid;
  margin-bottom: var(--s-5);
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--film-edge);
  background: var(--lightbox-raised);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sheet__frame img {
  width: 100%;
  transition: transform 0.55s var(--ease), filter var(--dur) var(--ease);
}
.sheet__frame:hover { border-color: var(--safelight); box-shadow: var(--shadow-md); }
.sheet__frame:hover img { transform: scale(1.035); }
.sheet__no {
  position: absolute;
  left: 0; bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(8, 10, 13, 0.9);
  padding: 0.3rem 0.55rem;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 8, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1180px, 100%);
  max-height: 82vh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lightbox__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: var(--s-5);
  padding: var(--s-5);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em;
  color: var(--on-dark-muted);
}
.lightbox__btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lightbox__btn:hover { background: var(--safelight); border-color: var(--safelight); }
.lightbox__btn svg { width: 15px; height: 15px; }
.lightbox__close { position: absolute; top: var(--s-5); right: var(--s-5); }

/* --------------------------------------------------------------------------
   Data table (contact details)
   -------------------------------------------------------------------------- */
.datatable { border-top: 1px solid var(--darkroom-line); }
.datatable th, .datatable td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--darkroom-line);
}
.datatable th {
  width: 160px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-right: var(--s-5);
}
.datatable td { color: var(--on-dark); }
.datatable a { color: #FF7079; }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
}
.field__label .req { color: var(--safelight-deep); }

.field input, .field textarea {
  width: 100%;
  padding: 0.78rem var(--s-4);
  background: var(--lightbox-raised);
  border: 1px solid var(--film-edge);
  border-radius: 0;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--safelight);
  box-shadow: 0 0 0 3px var(--safelight-wash);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA5B0; }

.field__error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--safelight-deep);
  min-height: 0;
}
.field.has-error input, .field.has-error textarea { border-color: var(--safelight); }

.form__note {
  font-size: 0.84rem;
  color: var(--steel);
  border-left: 2px solid var(--film-edge);
  padding-left: var(--s-4);
}
.form__status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: var(--s-4);
  border: 1px solid var(--film-edge);
  background: var(--film);
}
.form__status:empty { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--darkroom); color: var(--on-dark); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand img { height: 34px; width: auto; margin-bottom: var(--s-5); }
.footer__blurb { color: var(--on-dark-muted); font-size: 0.9rem; max-width: 34ch; }
.footer__member {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-muted);
  border-left: 2px solid var(--safelight);
  padding-left: var(--s-4);
}
.footer__h {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-5);
}
.footer__list { list-style: none; display: grid; gap: var(--s-3); }
.footer__list a, .footer__list span {
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur) var(--ease);
}
.footer__list a:hover { color: #fff; }
.footer__list svg { width: 10px; height: 10px; opacity: 0.55; }
.footer__list span { color: #7E8894; }

.footer__bar {
  border-top: 1px solid var(--darkroom-line-2);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-muted);
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--darkroom);
  border: 1px solid var(--darkroom-line);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur), background var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--safelight); border-color: var(--safelight); }
.to-top svg { width: 15px; height: 15px; }
