/* ============================================================
   Twomeys Mining and Engineering
   Type: Oswald + Open Sans - the two faces the business already
   uses, and a match for the condensed bold strapline in the logo.
   Palette sampled pixel-exact from assets/brand/logo.png.
   Shape language borrows the rising ramp from the logo mark:
   one cut corner, skewed accent bars, angled section joins.
   ============================================================ */

@font-face {
  font-family: 'Oswald';
  src: url('/assets/fonts/oswald-latin.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'OpenSans';
  src: url('/assets/fonts/opensans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand - sampled from the logo, not eyeballed */
  --brand: #514fa2;          /* 45.4% of opaque logo pixels */
  --brand-mid: #45438c;
  --brand-dark: #35336b;
  --brand-darker: #23224a;
  --brand-tint: #eeeef7;
  --accent: #f36f31;         /* 5.8% of opaque logo pixels */
  --accent-dark: #db5a1d;
  --accent-tint: #fdf0e9;

  --ink: #16171f;
  --body: #4a4e58;
  --muted: #71767f;
  --line: #dfe1e7;
  --line-strong: #c5c8d1;
  --surface: #f5f6f9;
  --surface-2: #e9ebf1;
  --white: #ffffff;

  --gutter: 24px;
  --bar-pad: 24px;           /* header + footer horizontal padding (full-bleed) */
  --maxw: 1220px;
  --maxw-text: 68ch;

  --notch: 14px;             /* single cut corner */
  --notch-sm: 9px;

  --font-display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body: 'OpenSans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 68px;
  --header-total: calc(var(--header-h) + 1px);
}

@media (min-width: 700px)  { :root { --gutter: 32px; --bar-pad: 32px; } }
@media (min-width: 1180px) { :root { --header-h: 84px; --bar-pad: 36px; } }
@media (min-width: 1500px) { :root { --gutter: 40px; --bar-pad: 56px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.004em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* no single long token (filename, URL, part number) may widen its container */
h1, h2, h3, h4, h5, p, li, dd, dt, figcaption, label, td, th { overflow-wrap: break-word; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field:focus-visible { outline: none; }

::selection { background: var(--brand); color: #fff; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 880px; }

/* full-bleed bar: spans the whole viewport, padding only - no max-width */
.bar {
  width: 100%;
  padding-inline: var(--bar-pad);
}

.section { padding-block: 62px; }
.section--tight { padding-block: 46px; }
.section--lg { padding-block: 78px; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--brand-tint); }

@media (min-width: 900px) {
  .section { padding-block: 104px; }
  .section--tight { padding-block: 70px; }
  .section--lg { padding-block: 130px; }
}

.stack > * + * { margin-top: 1.05em; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.35;
}
/* skewed bar - the rising ramp from the logo mark, in miniature */
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent);
  flex: none;
  transform: skewX(-24deg);
}
.eyebrow--onDark { color: #fff; }
.eyebrow--onDark::before { background: var(--accent); }

h1, .h1 { font-size: clamp(2.35rem, 6.6vw, 4.5rem); line-height: 1.03; }
h2, .h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.08; }
h3, .h3 { font-size: clamp(1.24rem, 2.2vw, 1.55rem); line-height: 1.18; }
h4, .h4 { font-size: 1.06rem; }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.6;
  color: var(--body);
}
.prose { max-width: var(--maxw-text); }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.55em; margin-bottom: 0.45em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
/* long-document variant (legal pages, quoted brochures): every h2 gets the
   skewed brand bar so walls of text break into visible sections */
.prose--doc h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 0.55em;
}
.prose--doc h2::before {
  content: "";
  flex: none;
  width: 26px;
  height: 4px;
  background: var(--accent);
  transform: skewX(-24deg);
}

/* numbered section header - used on What We Do */
.numhead { display: flex; align-items: baseline; gap: 16px; }
.numhead__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .1em;
  color: #fff;
  background: var(--brand);
  padding: 5px 12px;
  flex: none;
}

/* stat/benefit tile - white card with a brand top rule, no image */
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 24px;
}
.tile h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 0.95rem; }
.tile--accent { border-top-color: var(--accent); }
.tile--num { position: relative; }
.tile__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: .1em;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

/* ---------- shape: one cut corner, bottom-right ---------- */
.notch {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.notch-sm {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) 100%, 0 100%);
}

/* ---------- buttons ----------
   Clean rectangles - no clipped corners. The angular character lives in the
   skewed eyebrow bars, nav underline and triangle bullets instead. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 30px;
  min-height: 52px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%;
  text-align: center;
  /* NOT nowrap: a long label with nowrap cannot shrink and will stretch its
     grid track, pushing the whole page wider on a phone. Let labels wrap. */
  text-wrap: balance;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(243, 111, 49, .8);
}

.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--white); }

.btn--onDark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--brand-darker); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; min-height: 44px; font-size: 0.86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* short labels only - safe to keep on one line */
.header .btn, .hero .btn { white-space: nowrap; }

/* ---------- header (full-bleed) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brandmark {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  padding-block: 6px;
  min-height: 46px;
}
.brandmark img { height: 32px; width: auto; }
@media (min-width: 1180px) { .brandmark img { height: 40px; } }
@media (min-width: 1500px) { .brandmark img { height: 52px; } }

/* Nav items run the FULL header height. The hover underline paints at the
   header's bottom edge and the dropdown hangs from that same edge, so the
   two can never collide - they own different lines. */
.nav { display: none; height: 100%; }
@media (min-width: 1180px) { .nav { display: flex; } }
.nav > ul { display: flex; align-items: stretch; height: 100%; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  padding: 0 10px;
  position: relative;
  transition: color .16s var(--ease);
}
@media (min-width: 1380px) { .nav__link { padding-inline: 16px; font-size: 0.97rem; } }
/* skewed underline, same ramp motif as the eyebrow - sits ON the header's
   bottom border, full item width */
.nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: skewX(-24deg) scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after,
.nav__item:focus-within > .nav__link::after { transform: skewX(-24deg) scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"]::after { background: var(--brand); transform: skewX(-24deg) scaleX(1); }
.nav__caret { width: 9px; height: 9px; opacity: .5; }

.nav__sub {
  position: absolute;
  top: 100%;                 /* = header bottom edge, because the item is full height */
  left: 0;
  z-index: 5;
  min-width: 262px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 20px 44px -20px rgba(22, 23, 31, .4);
  padding: 7px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block;
  padding: 11px 14px;
  font-size: 0.94rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .14s var(--ease), border-color .14s var(--ease);
}
.nav__sub a:hover { background: var(--surface); border-left-color: var(--accent); color: var(--brand); }

.header__cta { display: none; align-items: center; gap: 16px; flex: none; }
@media (min-width: 1180px) { .header__cta { display: flex; } }
.header__phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }
@media (min-width: 1380px) { .header__phone { display: inline; } }
@media (min-width: 1500px) { .brandmark img { height: 48px; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
@media (min-width: 1180px) { .burger { display: none; } }
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .22s var(--ease), opacity .18s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile panel */
.mnav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: #fff;
  overflow-y: auto;
  padding: 20px var(--bar-pad) 44px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mnav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1180px) { .mnav { display: none; } }
.mnav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mnav a:hover, .mnav a[aria-current="page"] { color: var(--brand); }
.mnav .mnav__sub a {
  font-size: 1.02rem;
  padding-left: 18px;
  color: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  border-bottom-color: var(--surface-2);
}
.mnav__foot { margin-top: 26px; display: grid; gap: 12px; }
.mnav__foot a { border-bottom: 0; text-transform: uppercase; font-size: 0.95rem; padding: 17px 28px; }

body[data-lock="true"] { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-total));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brand-darker);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__media img.is-active { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,26,.66) 0%, rgba(18,19,26,.2) 30%, rgba(18,19,26,.5) 62%, rgba(18,19,26,.9) 100%),
    linear-gradient(102deg, rgba(35,34,74,.78) 0%, rgba(35,34,74,.3) 46%, rgba(35,34,74,0) 72%);
}
.hero__inner { position: relative; width: 100%; padding-block: 36px 40px; }

/* vertical rule beside the headline block - echoes the standing figure in the mark */
.hero__body { position: relative; padding-left: 18px; }
.hero__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 38%, rgba(255,255,255,.25) 38%);
}
@media (min-width: 900px) { .hero__body { padding-left: 26px; } .hero__body::before { width: 4px; } }

.hero h1 {
  color: #fff;
  max-width: 15ch;
  font-weight: 600;
  letter-spacing: 0.002em;
  text-shadow: 0 2px 26px rgba(10, 10, 20, .32);
}
.hero__lead {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  line-height: 1.62;
  max-width: 50ch;
  margin: 20px 0 28px;
  text-shadow: 0 1px 16px rgba(10, 10, 20, .3);
}
.hero .btn-row { gap: 11px; }

@media (max-width: 599px) {
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btn-row > :first-child { grid-column: 1 / -1; }
  .hero .btn { padding-inline: 8px; font-size: 0.85rem; letter-spacing: 0.04em; }
}
@media (min-width: 900px) {
  .hero { min-height: min(790px, calc(100svh - var(--header-total))); }
  .hero__inner { padding-block: 60px 78px; }
}

/* capability strip under the hero */
.hero__strip { position: relative; background: var(--brand); color: #fff; }
.hero__strip ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 820px) {
  .hero__strip ul { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 40px; padding: 22px 0; }
}
.hero__strip li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.45;
}
.hero__strip li::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 6px;
  background: var(--accent);
  /* rising ramp */
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---------- page banner ---------- */
.banner { position: relative; background: var(--brand-darker); overflow: hidden; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,26,.74) 0%, rgba(18,19,26,.56) 50%, rgba(35,34,74,.86) 100%),
    linear-gradient(100deg, rgba(35,34,74,.7) 0%, rgba(35,34,74,0) 65%);
}
.banner--plain .banner__scrim { background: linear-gradient(114deg, var(--brand-darker) 0%, var(--brand-mid) 100%); }
.banner__inner { position: relative; padding-block: 40px 42px; }
@media (min-width: 900px) { .banner__inner { padding-block: 74px 72px; } }
.banner h1 { color: #fff; max-width: 19ch; }
.banner__lead {
  color: rgba(255,255,255,.9);
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.65vw, 1.13rem);
  line-height: 1.62;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; padding-block: 4px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .45; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
/* grid items default to min-width:auto, so one wide child can stretch the
   track past the viewport. Let tracks shrink. */
.grid > * { min-width: 0; }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .grid { gap: 22px; }
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(22, 23, 31, .5);
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
a.card:hover .card__body h3 { color: var(--brand); }
.card__tag {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__more {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
a.card:hover .card__more { gap: 14px; }
.card__more::after { content: "→"; transition: transform .2s var(--ease); }
a.card__more { padding-block: 10px; min-height: 44px; text-decoration: none; }

.card--num .card__body { padding-top: 26px; }
.card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: .12em;
  color: #fff;
  background: var(--brand);
  padding: 5px 12px;
  align-self: flex-start;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

/* ---------- lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  margin-top: 8px;
  background: var(--accent);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.ticks--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: 12px 32px; } }

.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: .04em;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 9px 15px;
}

.panel { background: var(--surface); border-left: 4px solid var(--brand); padding: 28px; }
.panel--accent { border-left-color: var(--accent); }

.factlist { display: grid; border-top: 1px solid var(--line); }
.factlist div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .factlist div { grid-template-columns: 190px 1fr; gap: 22px; align-items: baseline; } }
.factlist dt, .factlist .k {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.factlist dd, .factlist .v { margin: 0; color: var(--ink); }

.spec { border-top: 3px solid var(--brand); margin-top: 8px; }
.spec__row { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .spec__row { grid-template-columns: 240px 1fr; gap: 28px; } }
.spec__k {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.spec__v { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }

/* ---------- split ---------- */
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 62px; }
  .split--wide-text { grid-template-columns: 1.14fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1050px) { .gal { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gal figure { margin: 0; position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figure[hidden] { display: none; }

/* ---------- pager ---------- */
.pager { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 26px; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; gap: 18px; } }
.pager a {
  display: block;
  padding: 21px 24px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.pager a:hover { border-color: var(--brand); background: var(--surface); }
.pager .k {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.pager .t { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.pager--next { text-align: right; }

/* ---------- contact ---------- */
.contactgrid { display: grid; gap: 34px; }
@media (min-width: 940px) { .contactgrid { grid-template-columns: 1fr 1.06fr; gap: 62px; } }

.infoblock { border-top: 3px solid var(--brand); padding-top: 20px; }
.infoblock + .infoblock { margin-top: 30px; }
.infoblock h3 { margin-bottom: 8px; }
.infoblock a { color: var(--ink); text-decoration: none; }
.infoblock a:hover { color: var(--brand); text-decoration: underline; }

.people { display: grid; }
.person { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.person .role {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.person .name { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.person a { display: inline-block; padding-block: 6px; color: var(--brand); text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.form { display: grid; gap: 17px; }
.form__row { display: grid; gap: 17px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }

.f { display: grid; gap: 7px; }
.f > label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
}
.f .req { color: var(--accent); }

.field {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:hover { border-color: var(--muted); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(81, 79, 162, .18); }
textarea.field { min-height: 148px; resize: vertical; }

select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2371767f' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 46px;
  cursor: pointer;
  color: var(--ink);
}
select.field[data-placeholder="true"] { color: var(--muted); }
select.field option { color: var(--ink); }

.field[aria-invalid="true"] { border-color: #c0392b; }
.field[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }

.f__err { font-size: 0.86rem; color: #c0392b; display: none; align-items: center; gap: 6px; margin: 0; }
.f__err[data-show="true"] { display: flex; }

.form__note { font-size: 0.86rem; color: var(--muted); }
.form__status {
  padding: 14px 16px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
  display: none;
  margin: 0;
}
.form__status[data-show="true"] { display: block; }

@media (max-width: 619px) { .form .btn { width: 100%; } }

/* ---------- CTA ---------- */
.cta { background: var(--brand-darker); color: #fff; position: relative; overflow: hidden; }
/* rising ramp, oversized, as a background mark */
.cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 460px;
  height: 100%;
  background: var(--brand);
  opacity: .4;
  clip-path: polygon(38% 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr auto; gap: 50px; } }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin-top: 12px; max-width: 54ch; }

/* ---------- footer (full-bleed) ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); }
.footer__top { padding-block: 52px; display: grid; gap: 34px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 46px; } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 1.8fr 1fr 1fr 1.15fr; gap: 56px; } }
.footer img.footer__logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer h4, .footer .footer__h {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; display: inline-block; padding-block: 7px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.6; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  padding: 0;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 17px; height: 17px; fill: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- reveal (see README - three fail-safes) ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal [data-reveal][data-reveal-d="1"] { transition-delay: .07s; }
.js-reveal [data-reveal][data-reveal-d="2"] { transition-delay: .14s; }
.js-reveal [data-reveal][data-reveal-d="3"] { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- utilities ---------- */
.skip {
  position: fixed;
  left: 8px;
  top: -120px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .16s var(--ease);
}
.skip:focus { top: 8px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.pdf-link {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.pdf-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -18px rgba(22, 23, 31, .55);
}
/* icon sits in its own brand-tint square */
.pdf-link svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: var(--accent);
  box-sizing: content-box;
  padding: 15px;
  background: var(--brand-tint);
}
/* PDF filenames are long unbreakable tokens - let them wrap inside the flex item */
.pdf-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
  align-self: center;
  padding: 14px 18px;
}
