/* ============================================================
   Seven Chem & Tech - interior page components
   Inherits all tokens, type and motion from styles.css.
   Shape system stays all-sharp; accent stays cyan.
   ============================================================ */

/* Interior pages start below the fixed nav (no full-bleed hero
   canvas), so push content clear of the 72px bar. */
.page {
  padding-top: 72px;
}

/* Active nav item on interior pages */
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.menu__link.is-active { color: var(--accent); }

/* Dotted-surface animated background (three.js canvas lives here).
   Fixed behind all content; the navy body colour shows through the
   transparent dots, the flat sections let it read, and the tinted
   bands stay semi-opaque so text contrast holds. */
.dotted-surface {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.dotted-surface canvas { display: block; }

/* ------------------------------------------------------------
   Page hero (asymmetric: copy left, full-colour image right)
   ------------------------------------------------------------ */
.page-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
@media (min-width: 900px) {
  .page-hero { grid-template-columns: 7fr 5fr; }
}
.page-hero__crumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.page-hero__crumb a { color: var(--muted); transition: color 0.3s ease; }
.page-hero__crumb a:hover { color: var(--accent); }
.page-hero__crumb span { color: var(--dim); }
.page-hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.0;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.page-hero__title em { font-style: italic; color: var(--accent); line-height: 1.1; padding-bottom: 0.05em; }
.page-hero__lead {
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: clamp(1.0rem, 1.4vw, 1.2rem);
  color: var(--muted);
}
.page-hero__media {
  height: clamp(220px, 36vw, 360px);
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.95) saturate(1.06);
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(47, 198, 207, 0.1), rgba(4, 18, 30, 0.45));
}

/* ------------------------------------------------------------
   Generic interior section + heading
   ------------------------------------------------------------ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x);
}
.section--tint {
  max-width: none;
  background: rgba(8, 28, 44, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tint > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 18ch;
}
.section__intro {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ------------------------------------------------------------
   Detail rows (products / fleets) - alternating editorial split
   ------------------------------------------------------------ */
.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.detail:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .detail { grid-template-columns: 6fr 5fr; }
  .detail--flip .detail__media { order: 2; }
}
.detail__media {
  position: relative;
  height: clamp(240px, 32vw, 380px);
  overflow: hidden;
  background: var(--bg-2);
}
.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.95) saturate(1.07);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.detail:hover .detail__media img { transform: scale(1.04); }
.detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(47, 198, 207, 0.08), rgba(4, 18, 30, 0.32));
}
.detail__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.detail__name {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.detail__desc {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 50ch;
  font-size: 1.0312rem;
}
.detail__tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.detail__tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
}
.detail__link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}
.detail__link span { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.detail__link:hover span { transform: translate(4px, -4px); }

/* ------------------------------------------------------------
   Process steps (compliance / how ordering works)
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  border-top: 2px solid var(--line);
  position: relative;
  transition: border-color 0.4s ease;
}
.step:hover { border-top-color: var(--accent); }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step__name {
  margin-top: 0.9rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 112%;
}
.step__desc { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; max-width: 34ch; }

/* ------------------------------------------------------------
   Standards (compliance certs, deep)
   ------------------------------------------------------------ */
.standards { display: flex; flex-direction: column; margin-top: clamp(2rem, 4vw, 3rem); }
.standard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.standard:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .standard { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); } }
.standard__code {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.standard__name {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: -0.01em;
}
.standard__body { color: var(--muted); font-size: 1.0312rem; }
.standard__body p + p { margin-top: 1rem; }
.standard__body strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------
   Stat strip reused on interior pages
   ------------------------------------------------------------ */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 760px) { .mini-stats { grid-template-columns: repeat(4, 1fr); } }
.mini-stat { padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mini-stat:nth-child(-n + 2) { border-top: 0; }
@media (min-width: 760px) { .mini-stat:nth-child(-n + 4) { border-top: 0; } }
.mini-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}
.mini-stat__label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ------------------------------------------------------------
   Contact page: form + info split
   ------------------------------------------------------------ */
.contact-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
@media (min-width: 940px) { .contact-grid { grid-template-columns: 7fr 5fr; } }

.form { display: grid; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.field__control {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.field__control::placeholder { color: #5d7282; }
.field__control:focus {
  outline: none;
  border-color: var(--accent);
  background: #0a2230;
}
textarea.field__control { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }
.field__error {
  font-size: 0.8125rem;
  color: #ff7a6b;
  display: none;
}
.field.is-invalid .field__control { border-color: #ff7a6b; }
.field.is-invalid .field__error { display: block; }

.form__submit {
  justify-self: start;
  position: relative;
  overflow: hidden;
}
.form__status {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--bg-2);
  color: var(--ink);
  display: none;
}
.form__status.is-visible { display: block; }

.info { display: flex; flex-direction: column; gap: 2rem; }
.info__block { display: flex; flex-direction: column; gap: 0.5rem; }
.info__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.info__value { font-size: 1.0625rem; line-height: 1.5; font-style: normal; }
.info__value a { color: var(--accent); }
.info__map {
  height: 220px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(47,198,207,0.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(47,198,207,0.06) 0 1px, transparent 1px 28px),
    var(--bg-2);
}
.info__map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(47, 198, 207, 0.18);
}
.info__map-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Interior CTA band
   ------------------------------------------------------------ */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(47, 198, 207, 0.13), transparent),
    rgba(4, 18, 30, 0.6);
}
.cta-band__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.cta-band__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1.0;
  text-transform: uppercase;
  max-width: 16ch;
}

/* ------------------------------------------------------------
   Interactive micro-states on previously-static blocks
   ------------------------------------------------------------ */
.step {
  transition: border-color 0.4s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease;
}
.step:hover { transform: translateY(-3px); background: rgba(8, 28, 44, 0.45); }

.mini-stat { transition: background-color 0.4s ease; }
.mini-stat:hover { background: rgba(8, 28, 44, 0.55); }

.detail__tags li {
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.detail__tags li:hover { border-color: rgba(47, 198, 207, 0.5); color: var(--accent); }

/* Scroll progress bar (interior pages, created by main.js) */
.scroll-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: rgba(234, 243, 247, 0.06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ------------------------------------------------------------
   Products catalogue (data-driven grid from products-data.js)
   ------------------------------------------------------------ */
.catalogue {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--pad-x) clamp(4rem, 8vw, 7rem);
}
.catalogue__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.catalogue__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.cat-chip span { color: var(--dim); margin-left: 0.25rem; }
.cat-chip:hover { color: var(--ink); border-color: rgba(234, 243, 247, 0.28); }
.cat-chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.cat-chip.is-active span { color: var(--accent-ink); opacity: 0.7; }
.catalogue__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: 200px;
  transition: border-color 0.3s ease;
}
.catalogue__search:focus-within { border-color: var(--accent); }
.catalogue__search input {
  background: none; border: 0; outline: none; color: var(--ink);
  font-family: var(--font-sans); font-size: 0.9rem; width: 100%;
}
.catalogue__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0;
}
.catalogue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.catalogue__empty { color: var(--muted); padding: 2rem 0; }
.catalogue__reset {
  background: none; border: 0; color: var(--accent); cursor: pointer;
  font: inherit; text-decoration: underline;
}

.pcard { border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pcard:hover { border-color: rgba(47, 198, 207, 0.4); transform: translateY(-4px); }
.pcard__link { display: flex; flex-direction: column; height: 100%; }
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a1a26;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard--noimg .pcard__media { background: linear-gradient(150deg, #0a1a26, #08202f); }
.pcard--noimg .pcard__media::after {
  content: "SEVEN";
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.1em;
  color: rgba(47, 198, 207, 0.25);
  font-size: 1.4rem;
}
.pcard__badge {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(4, 18, 30, 0.9);
  border: 1px solid rgba(234, 243, 247, 0.14);
  padding: 0.3rem 0.55rem;
}
.pcard__flag {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(4, 18, 30, 0.9);
  border: 1px solid rgba(47, 198, 207, 0.35);
  padding: 0.28rem 0.5rem;
}
.pcard__body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.pcard__name { font-size: 1.1rem; font-weight: 700; font-stretch: 114%; letter-spacing: -0.01em; line-height: 1.2; transition: color 0.3s ease; }
.pcard:hover .pcard__name { color: var(--accent); }
.pcard__desc { color: var(--muted); font-size: 0.875rem; line-height: 1.5; flex: 1; }
.pcard__desc--muted { font-style: italic; opacity: 0.75; }
.pcard__cta {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pcard__cta i { font-style: normal; display: inline-block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.pcard:hover .pcard__cta i { transform: translate(3px, -3px); }
.pcard__ref {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--dim);
  vertical-align: middle;
}

/* ------------------------------------------------------------
   New interior components: capability cards, pillars, team
   departments, ESG grid (used by services / about / team)
   ------------------------------------------------------------ */
.lede {
  max-width: 60ch;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  font-stretch: 106%;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lede--muted { color: var(--muted); font-weight: 400; }

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.cap {
  --mx: 50%; --my: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(47,198,207,0.08), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.cap:hover { border-color: rgba(47,198,207,0.4); transform: translateY(-4px); }
.cap:hover::before { opacity: 1; }
.cap__title {
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 114%;
  letter-spacing: -0.01em;
}
.cap__lead { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.cap__list { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cap__list li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.cap__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; background: var(--accent);
}
.cap__list strong { color: var(--ink); font-weight: 600; }
.cap__num {
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent);
  display: block; margin-bottom: 0.7rem;
}

/* Pillars: values / mission / vision / commitment */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.4s ease;
}
.pillar:hover { border-color: rgba(47,198,207,0.35); }
.pillar__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(47,198,207,0.1);
  border: 1px solid rgba(47,198,207,0.22);
  margin-bottom: 0.2rem;
}
.pillar__title { font-size: 1.35rem; font-weight: 700; font-stretch: 116%; letter-spacing: -0.01em; }
.pillar__text { color: var(--muted); font-size: 0.975rem; line-height: 1.6; }

/* Team departments: expandable accordion cards */
.depts { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.dept {
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.dept[open] { border-color: rgba(47,198,207,0.4); }
.dept summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.dept summary::-webkit-details-marker { display: none; }
.dept__num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); letter-spacing: 0.1em; }
.dept__name { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; font-stretch: 116%; letter-spacing: -0.01em; }
.dept__plus {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), background-color 0.3s ease;
}
.dept[open] .dept__plus { transform: rotate(45deg); background: rgba(47,198,207,0.12); }
.dept__body {
  padding: 0 clamp(1.4rem, 2.5vw, 2rem) clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 800px) { .dept__body { grid-template-columns: 1fr 1fr; } }
.dept__intro { color: var(--muted); font-size: 1rem; line-height: 1.6; grid-column: 1 / -1; }
.dept__intro strong { color: var(--ink); }

/* ------------------------------------------------------------
   Contact office map band
   ------------------------------------------------------------ */
.mapband {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
@media (min-width: 900px) { .mapband { grid-template-columns: 4fr 7fr; } }
.mapband__head { display: flex; flex-direction: column; gap: 0.8rem; }
.mapband__title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mapband__sub { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 40ch; }
.mapband__dir {
  align-self: flex-start;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(47, 198, 207, 0.35);
  padding: 0.6rem 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.mapband__dir:hover { background: rgba(47, 198, 207, 0.1); border-color: var(--accent); }
.mapband__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}
.mapband__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Rendered taller than the visible frame and clipped by the parent's
     overflow: hidden, so OpenStreetMap's own "Report a problem / Donate /
     API terms" bar (fixed to the bottom of the iframe's own page) lands
     below the crop instead of over the map. The required copyright
     attribution is reproduced in .mapband__attribution below. */
  height: calc(100% + 34px);
  border: 0;
  /* Tone the bright Google tiles toward the dark marine palette */
  filter: invert(0.92) hue-rotate(170deg) brightness(0.95) contrast(0.9) saturate(0.85);
}
.mapband__attribution {
  grid-column: 1 / -1;
  margin-top: -0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-align: right;
}
.mapband__attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.mapband__attribution a:hover { color: var(--accent); }

/* ------------------------------------------------------------
   Training two-image gallery
   ------------------------------------------------------------ */
.detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.detail__gallery .detail__media { height: clamp(200px, 26vw, 340px); }
.detail__gallery .detail__media:first-child { transform: translateY(-0.9rem); }
.detail__gallery .detail__media:last-child { transform: translateY(0.9rem); }
@media (max-width: 560px) {
  .detail__gallery { grid-template-columns: 1fr; }
  .detail__gallery .detail__media { transform: none; height: clamp(180px, 40vw, 260px); }
}

/* Extra interactivity on capability cards: the number underlines and the
   bullets tick cyan on hover. */
.cap__num { position: relative; display: inline-block; padding-bottom: 0.35rem; }
.cap__num::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap:hover .cap__num::after { transform: scaleX(1); }
.cap__list li::before { transition: transform 0.3s ease, background-color 0.3s ease; }
.cap:hover .cap__list li::before { transform: scale(1.5); }

/* Pillar icon springs on hover */
.pillar__icon { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease; }
.pillar:hover .pillar__icon { transform: translateY(-3px) rotate(-6deg); background: rgba(47,198,207,0.18); }

/* Department accordion: animated open (grid-rows reveal) + summary shift */
.dept summary { transition: background-color 0.3s ease; }
.dept summary:hover { background: rgba(47,198,207,0.05); }
.dept__name { transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.3s ease; }
.dept summary:hover .dept__name { transform: translateX(6px); color: var(--accent); }
.dept__body > * {
  opacity: 0;
  transform: translateY(14px);
}
.dept[open] .dept__body > * {
  animation: dept-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dept[open] .dept__body > *:nth-child(1) { animation-delay: 0.04s; }
.dept[open] .dept__body > *:nth-child(2) { animation-delay: 0.12s; }
.dept[open] .dept__body > *:nth-child(3) { animation-delay: 0.2s; }
@keyframes dept-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dept__body > * { opacity: 1; transform: none; animation: none; }
}
