/* ==========================================================================
   M/S. Sayef & Brothers — stylesheet
   Palette: navy #0B253A · gold #E9A426 · off-white #F6F7F8 · ink #20262D
   ========================================================================== */

:root {
  --navy: #0B253A;
  --navy-deep: #071A2B;
  --gold: #E9A426;
  --blue: #2C6EA8;
  --blue-light: #3FA9DC;
  --off-white: #F6F7F8;
  --ink: #20262D;
  --ink-soft: #4A5661;
  --muted: #6B7885;
  --muted-light: #8A96A2;
  --line: #E2E6EA;
  --line-soft: #EDF0F3;
  --on-navy: #A9C2D6;
  --on-navy-dim: #6E8AA2;
  --font-body: "Hind Siliguri", system-ui, -apple-system, sans-serif;
  --font-display: Archivo, "Hind Siliguri", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 104px 0; }
.section--white { background: #fff; }
.section--grey { background: var(--off-white); border-top: 1px solid var(--line); }
.section--navy { background: var(--navy); }

/* --- shared type ------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--gold { color: var(--gold); }

.h2 {
  margin: 18px 0 0;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.h2--light { color: #fff; }
.lede {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 32px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #fff; color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn--ghost {
  border-color: #C6D2DC; background: #fff; color: var(--navy);
  font-size: 15.5px; padding: 16px 30px;
}
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--sm { font-size: 15px; padding: 14px 24px; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn--submit {
  background: var(--navy); color: #fff; border: none;
  font-weight: 700; font-size: 16px; padding: 18px;
}
.btn--submit:hover { background: var(--gold); color: var(--navy); }
.link-more { font-size: 14.5px; font-weight: 700; color: var(--blue); }

/* --- filter pills ------------------------------------------------------ */
.pill {
  font-size: 14px; font-weight: 600; padding: 11px 18px;
  border: 1px solid #D5DDE4; background: #fff; color: var(--ink-soft);
  cursor: pointer; white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.pill:hover { border-color: #A9B7C3; }
.pill.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- utility bar ------------------------------------------------------- */
.utility { background: var(--navy); color: var(--on-navy); font-size: 13px; letter-spacing: 0.02em; }
.utility__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 9px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.utility__claim { display: flex; align-items: center; gap: 10px; }
.utility__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.utility__meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.utility__meta span, .utility__meta > a:not(.utility__cta) { font-family: var(--font-mono); color: inherit; }
.utility__cta {
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: 13px; padding: 6px 14px; white-space: nowrap;
}
.utility__cta:hover { background: #fff; color: var(--navy); }

/* --- header ------------------------------------------------------------ */
.header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 1px 0 rgba(11,37,58,0.04);
}
.header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 8px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 88px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__mark {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background-image: url("../images/logo.jpg");
  background-size: 235%; background-position: 48% 45%; background-repeat: no-repeat;
}
.brand__name {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 19px; letter-spacing: 0.01em; color: var(--navy);
  line-height: 1.1; white-space: nowrap;
}
.brand__role {
  display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 10px; font-size: 14px; font-weight: 600;
  color: var(--ink); border-radius: 4px; white-space: nowrap;
}
.nav__link:hover { background: var(--off-white); color: var(--navy); }
.nav__link.is-current { background: var(--off-white); color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }
.nav__caret { font-size: 9px; color: #7C8894; transform: translateY(-1px); }
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 24px 48px -12px rgba(11,37,58,0.22);
  padding: 10px; display: none; flex-direction: column;
}
.nav__item.is-open .nav__menu { display: flex; }
.nav__menu a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: 4px; color: var(--ink);
}
.nav__menu a:hover { background: var(--off-white); color: var(--navy); }
.nav__code {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--blue); min-width: 58px;
}
.nav__label { font-size: 14px; font-weight: 500; }

/* --- hero -------------------------------------------------------------- */
.hero {
  position: relative; background: var(--navy); min-height: 640px;
  display: flex; align-items: stretch; overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 900ms ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, rgba(11,37,58,0.95) 0%, rgba(11,37,58,0.88) 46%, rgba(11,37,58,0.52) 100%);
}
.hero__dots {
  position: absolute; right: var(--pad); bottom: 28px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
}
.hero__dot {
  width: 10px; height: 10px; border-radius: 5px; border: none; padding: 0;
  background: rgba(255,255,255,0.38); cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}
.hero__dot.is-active { width: 28px; background: var(--gold); }
.hero__inner {
  position: relative; z-index: 4; max-width: var(--wrap); margin: 0 auto;
  padding: 96px var(--pad) 0; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__copy { max-width: 860px; }
.hero__tag {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(233,164,38,0.45); background: rgba(233,164,38,0.1);
  padding: 9px 16px; margin-bottom: 30px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.hero__kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #6FA8CE;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0; font-size: 74px; line-height: 1.08; font-weight: 700;
  color: #fff; letter-spacing: -0.01em; text-wrap: balance;
}
.hero__sub {
  margin: 26px 0 0; font-size: 20px; line-height: 1.65;
  color: #B9CCDC; max-width: 620px; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.stats {
  margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat { padding: 30px 28px 34px; border-right: 1px solid rgba(255,255,255,0.14); }
.stat__value {
  font-family: var(--font-display); font-weight: 800; font-size: 46px;
  line-height: 1; color: var(--gold);
}
.stat__label { margin-top: 10px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--on-navy); }
.stat__bn { margin-top: 3px; font-size: 13.5px; color: var(--on-navy-dim); }

/* --- about ------------------------------------------------------------- */
.about {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 80px; align-items: start;
}
.about h2 {
  margin: 18px 0 0; font-size: 42px; line-height: 1.2;
  font-weight: 700; color: var(--navy); letter-spacing: -0.01em;
}
.about p { margin: 24px 0 0; font-size: 17.5px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.about p + p { margin-top: 18px; }
.about__aside { display: flex; flex-direction: column; gap: 24px; }
.about__photo {
  aspect-ratio: 4 / 3; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.grid-hairline {
  margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.pillar { background: #fff; padding: 22px 24px; }
.pillar__no { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold); }
.pillar__en { margin-top: 8px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); }
.pillar__bn { margin-top: 4px; font-size: 14px; color: var(--muted); }

.enlist { background: var(--navy); padding: 34px 32px; }
.enlist__eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.enlist__title {
  margin-top: 14px; font-family: var(--font-display); font-size: 26px;
  font-weight: 700; color: #fff; line-height: 1.3;
}
.enlist__body { margin-top: 10px; font-size: 15.5px; color: var(--on-navy); line-height: 1.7; }
.enlist a { display: inline-block; margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--gold); }
.enlist a:hover { color: #fff; }

/* --- departments ------------------------------------------------------- */
.dept-grid {
  margin-top: 52px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.dept-card {
  background: #fff; border: 1px solid var(--line); padding: 28px 26px 24px;
  display: flex; flex-direction: column; color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.dept-card:hover {
  transform: translateY(-4px); border-color: #C6D2DC; color: var(--ink);
  box-shadow: 0 22px 40px -20px rgba(11,37,58,0.28);
}
.dept-card__mark {
  width: 72px; height: 72px; border: 1px solid var(--line);
  background: var(--off-white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.02em; color: var(--blue);
}
.dept-card__en {
  margin-top: 22px; font-family: var(--font-display); font-size: 17px;
  font-weight: 700; line-height: 1.32; color: var(--navy); min-height: 66px;
}
.dept-card__bn { font-size: 14.5px; line-height: 1.5; color: var(--muted); min-height: 44px; }
.dept-card__counts {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 22px;
}
.count__n { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.count__n--gold { color: var(--gold); }
.count__k { margin-top: 4px; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-light); }
.dept-card__more { margin-top: 20px; font-size: 14.5px; font-weight: 700; color: var(--blue); }

/* --- services ---------------------------------------------------------- */
.service-grid {
  margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.service { background: #fff; padding: 36px 32px 40px; transition: background 140ms ease; }
.service:hover { background: var(--off-white); }
.service__no { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold); }
.service__en { margin-top: 16px; font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); }
.service__bn { margin-top: 8px; font-size: 16px; color: var(--ink-soft); line-height: 1.7; }

/* --- project cards ----------------------------------------------------- */
.card-grid-3 { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.project-card:hover {
  transform: translateY(-4px); color: var(--ink);
  box-shadow: 0 22px 40px -20px rgba(11,37,58,0.28);
}
.project-card__media {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--line-soft); overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge-dept {
  position: absolute; top: 0; left: 0; background: var(--navy); color: #fff;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; padding: 7px 12px;
}
.badge-dept--gold { background: var(--gold); color: var(--navy); }
.project-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-card__name {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  line-height: 1.35; color: var(--navy); min-height: 52px;
}
.project-card__loc { margin-top: 10px; font-size: 15px; color: var(--muted); }
.project-card__foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 11px;
  border: 1px solid;
}
.status--done { border-color: #BFE0C8; background: #EEF7F0; color: #1D6B33; }
.status--wip { border-color: #F4DDAE; background: #FDF6E8; color: #8A5F0C; }
.center-row { margin-top: 40px; display: flex; justify-content: center; }

/* --- ongoing ----------------------------------------------------------- */
.ongoing-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.ongoing-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--line-soft); overflow: hidden; }
.ongoing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ongoing-card__body { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.ongoing-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.ongoing-card__loc { margin-top: 8px; font-size: 15px; color: var(--muted); }
.progress__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.progress__label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-light); }
.progress__pct { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--navy); }
.progress__track { height: 8px; background: var(--line-soft); }
.progress__bar { height: 100%; background: var(--gold); }
.meta-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.meta__k { color: var(--muted-light); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.meta__v { margin-top: 3px; color: var(--ink); font-weight: 600; }

/* --- equipment (homepage preview) -------------------------------------- */
.card-grid-4 { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.equip-mini {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.equip-mini:hover { border-color: #C6D2DC; color: var(--ink); box-shadow: 0 18px 34px -20px rgba(11,37,58,0.26); }
.equip-mini__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.equip-mini__media img { width: 100%; height: 100%; object-fit: cover; }
.equip-mini__body { padding: 22px 22px 24px; }
.equip-mini__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }
.equip-mini__spec { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.equip-mini__spec strong { color: var(--ink); font-weight: 600; }

.rental-band {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 26px 30px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.rental-band__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.rental-band__body { margin-top: 5px; font-size: 16px; color: var(--ink-soft); }
.rental-band__body span, .rental-band__body a { font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); }

/* --- why choose us ----------------------------------------------------- */
.why { position: relative; overflow: hidden; padding: 108px 0; background: var(--navy); }
.why__texture {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 14px);
}
.why__inner { position: relative; }
.why__grid {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.13);
}
.trust { background: var(--navy); padding: 34px 30px 38px; }
.trust__no { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold); }
.trust__en { margin-top: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.trust__bn { margin-top: 8px; font-size: 15.5px; color: var(--on-navy); line-height: 1.7; }

/* --- certificates ------------------------------------------------------ */
.cert-card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.cert-card__media {
  aspect-ratio: 1 / 1.28; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--off-white);
  background-image: repeating-linear-gradient(135deg, rgba(11,37,58,0.05) 0, rgba(11,37,58,0.05) 2px, transparent 2px, transparent 11px);
  display: flex; align-items: center; justify-content: center;
}
.cert-card__media img { width: 100%; height: 100%; object-fit: cover; }
.slot-note {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-light); text-align: center; padding: 8px;
}
.cert-card__body { padding: 20px 20px 22px; }
.cert-card__abbr { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--navy); }
.cert-card__kind { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.cert-card__valid { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-light); }
.cert-card__body a { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 700; }

/* --- gallery ----------------------------------------------------------- */
.gallery-grid {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 178px; gap: 16px;
}
.tile {
  position: relative; border: none; padding: 18px; cursor: pointer;
  overflow: hidden; display: flex; align-items: flex-end;
  background: #DFE5EA;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,37,58,0.72), rgba(11,37,58,0) 58%);
}
.tile__label { position: relative; font-size: 15px; font-weight: 600; color: #fff; text-align: left; }
.tile--wide { grid-column: span 2; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile.is-hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(7,26,43,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 60px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox__inner { max-width: 1000px; width: 100%; }
.lightbox__frame {
  aspect-ratio: 16 / 10; background: #123049;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__meta {
  margin-top: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lightbox__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.lightbox__sub { margin-top: 4px; font-size: 14.5px; color: var(--on-navy); }
.lightbox__hint { font-size: 14px; color: var(--on-navy-dim); }

/* --- team -------------------------------------------------------------- */
.person__photo {
  aspect-ratio: 1 / 1.15; border: 1px solid var(--line);
  position: relative; overflow: hidden; background: var(--off-white);
  background-image: repeating-linear-gradient(135deg, rgba(11,37,58,0.05) 0, rgba(11,37,58,0.05) 2px, transparent 2px, transparent 11px);
  display: flex; align-items: center; justify-content: center;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { margin-top: 18px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.person__role { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* --- contact ----------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; }
.contact h2 { margin: 18px 0 0; font-size: 42px; line-height: 1.2; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.contact__lede { margin: 20px 0 0; font-size: 17.5px; line-height: 1.75; color: var(--on-navy); max-width: 460px; }
.contact__rows {
  margin-top: 40px; display: flex; flex-direction: column; gap: 1px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.13);
}
.contact__row { background: var(--navy); padding: 20px 24px; }
.contact__k { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-dim); }
.contact__v { margin-top: 6px; font-size: 16.5px; color: #fff; font-weight: 600; }
.contact__v a { color: inherit; }

.form-card { background: #fff; padding: 40px; }
.form-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); }
.form-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--line); background: var(--off-white);
  padding: 14px 15px; font-family: inherit; font-size: 15.5px;
  color: var(--ink); outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; }

/* --- footer ------------------------------------------------------------ */
.footer { background: var(--navy-deep); padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__mark {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background-color: #fff;
  background-image: url("../images/logo.jpg");
  background-size: 235%; background-position: 48% 45%; background-repeat: no-repeat;
}
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; line-height: 1.2; }
.footer__role {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-light); margin-top: 3px;
}
.footer__about { margin: 22px 0 0; font-size: 15.5px; line-height: 1.75; color: #A9C2D6; max-width: 340px; }
.footer__col-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.footer__links { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 15px; color: #BFD2E1; }
.footer__links a:hover { color: #fff; }
.footer__bar {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0 30px; display: grid; align-items: center;
  grid-template-columns: 1fr auto auto; gap: 20px 36px;
  font-size: 14px; color: var(--on-navy-dim);
}
.footer__legal { font-family: var(--font-mono); font-size: 12.5px; }
.credit { white-space: nowrap; text-align: right; }
.credit a { color: var(--blue-light); font-weight: 700; }
.credit a:hover, .credit a:focus-visible { color: #fff; }

/* ==========================================================================
   Equipment page
   ========================================================================== */
.page-hero { position: relative; background: var(--navy); padding: 72px 0 76px; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(11,37,58,0.95) 0%, rgba(11,37,58,0.9) 48%, rgba(11,37,58,0.6) 100%);
}
.page-hero__inner { position: relative; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--on-navy-dim); }
.crumb a { color: var(--on-navy-dim); }
.crumb a:hover { color: var(--gold); }
.page-hero h1 {
  margin: 20px 0 0; font-size: 56px; line-height: 1.12;
  font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.page-hero__lede { margin: 22px 0 0; font-size: 19px; line-height: 1.7; color: #B9CCDC; max-width: 660px; text-wrap: pretty; }
.strip {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.13);
}
.strip__cell { background: var(--navy); padding: 20px 22px; }
.strip__en { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: #fff; }
.strip__bn { margin-top: 4px; font-size: 14px; color: #8FA9BF; }

.filterbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 104px; z-index: 40; }
.filterbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.switch__track {
  width: 46px; height: 26px; border-radius: 13px; border: none; padding: 3px;
  display: flex; justify-content: flex-start; background: #D5DDE4;
  cursor: pointer; transition: background 160ms ease;
}
.switch__track.is-on { justify-content: flex-end; background: #2F9E56; }
.switch__knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,37,58,0.3); }
.switch__label { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.list-count { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.legend { display: flex; gap: 20px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: block; }
.dot--free { background: #2F9E56; }
.dot--busy { background: var(--gold); }

.equip-card {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.equip-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(11,37,58,0.28); }
.equip-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--line-soft); overflow: hidden; }
.equip-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge-rent {
  position: absolute; top: 0; right: 0; background: #2F9E56; color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; padding: 7px 12px;
}
.equip-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.equip-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.equip-card__brand { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.avail-lines { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.avail-lines div { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); }
.avail-lines strong { font-weight: 700; }
.equip-card__foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.linkbtn { background: none; border: none; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--blue); cursor: pointer; }
.linkbtn:hover { color: var(--gold); }
.rentbtn {
  font-size: 13.5px; font-weight: 700; padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--gold); background: var(--gold); color: var(--navy);
}
.rentbtn--muted { border-color: #D5DDE4; background: #fff; color: var(--muted); }

.cta-band {
  background: var(--navy); padding: 72px 0;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.cta-band h2 { margin: 16px 0 0; font-size: 34px; line-height: 1.25; font-weight: 700; color: #fff; }
.cta-band p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--on-navy); max-width: 620px; }

/* equipment detail */
.detail { background: #fff; border-bottom: 1px solid var(--line); padding: 40px 0 56px; }
.detail__cols { margin-top: 32px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.detail__gallery { display: flex; flex-direction: column; gap: 14px; }
.detail__main { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; }
.detail__main img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.detail__thumb {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: var(--off-white);
  background-image: repeating-linear-gradient(135deg, rgba(11,37,58,0.05) 0, rgba(11,37,58,0.05) 2px, transparent 2px, transparent 10px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-dept {
  background: var(--navy); color: #fff; font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.09em; padding: 6px 11px;
}
.detail h1 { margin: 20px 0 0; font-size: 42px; line-height: 1.15; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.detail__intro { margin: 16px 0 0; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.spec-table { margin-top: 32px; border: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line-soft); }
.spec-row:last-child { border-bottom: none; }
.spec-row__k {
  padding: 15px 20px; background: var(--off-white); font-size: 14px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted);
}
.spec-row__v { padding: 15px 20px; font-size: 16px; color: var(--ink); font-weight: 500; }
.detail__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.info-cols { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); padding: 34px 32px 36px; }
.info-card__title { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--navy); }
.rate-list { margin-top: 20px; display: flex; flex-direction: column; }
.rate-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.rate-row:last-child { border-bottom: none; }
.rate-row span:first-child { font-size: 16px; color: var(--ink-soft); }
.rate-row span:last-child { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--navy); }
.note { margin-top: 22px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.term-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.term { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.term__mark { width: 7px; height: 7px; background: var(--gold); display: block; margin-top: 8px; }
.term__k { font-size: 16px; font-weight: 600; color: var(--navy); }
.term__v { font-size: 16px; color: var(--ink-soft); }
.unit-grid {
  margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.unit { background: #fff; padding: 22px 24px; }
.unit__id { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-light); letter-spacing: 0.06em; }
.unit__status { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.unit__note { margin-top: 6px; font-size: 14px; color: var(--muted); }

.is-hidden { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .dept-grid, .card-grid-4, .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3, .service-grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bar { grid-template-columns: 1fr 1fr; }
  .credit { grid-column: 1 / -1; text-align: left; }
  .about, .contact, .detail__cols, .info-cols { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size 56px; font-size: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tile--big, .tile--wide { grid-column: span 2; }
  .tile--big { grid-row: span 1; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .section { padding: 68px 0; }
  .hero { min-height: 0; }
  .hero__inner { padding: 64px var(--pad) 0; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 17px; }
  .stats { margin-top: 56px; }
  .h2, .page-hero h1 { font-size: 32px; }
  .about h2, .contact h2, .detail h1 { font-size: 30px; }
  .dept-grid, .card-grid-3, .card-grid-4, .service-grid,
  .why__grid, .unit-grid, .strip, .grid-hairline, .form-grid,
  .footer__grid, .meta-2, .gallery-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 52px; }
  .footer__grid { gap: 36px; }
  .footer__bar { grid-template-columns: 1fr; gap: 12px; margin-top: 42px; padding: 22px 0 26px; }
  .footer__bar > span, .credit { width: 100%; text-align: left; white-space: normal; }
  .tile--big, .tile--wide { grid-column: span 1; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row__k { border-bottom: 1px solid var(--line-soft); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .filterbar { position: static; }
  .form-card { padding: 26px 22px; }
  .lightbox { padding: 20px; }
  .nav { display: none; }
  .nav.is-open { display: flex; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.is-open .nav__link { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); }
  .nav__menu { position: static; min-width: 0; box-shadow: none; }
  .navtoggle { display: flex; }
}

/* --- department listing and detail pages ------------------------------ */
.nav__link.is-active { color: var(--blue); background: #F0F5F9; }
.dept-page-hero { padding: 84px 0 90px; color: #fff; background: linear-gradient(115deg, rgba(7,26,43,.97), rgba(11,37,58,.82)), url("../images/bridge-sunset.jpg") center/cover; }
.dept-page-hero h1 { margin: 16px 0 14px; max-width: 760px; font: 800 clamp(40px,6vw,68px)/1.05 var(--font-display); letter-spacing: -.035em; }
.dept-page-hero p { max-width: 680px; margin: 0; color: var(--on-navy); font-size: 19px; line-height: 1.7; }
.dept-list-head { align-items: end; margin-bottom: 42px; }
.dept-list-head .lede { max-width: 510px; margin: 0; }
.department-page-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.department-page-card { display: flex; flex-direction: column; min-width: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(11,37,58,.05); transition: transform .2s ease, box-shadow .2s ease; }
.department-page-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 16px 38px rgba(11,37,58,.12); }
.department-page-card__media { position: relative; height: 190px; overflow: hidden; background: var(--navy); }
.department-page-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.department-page-card:hover img { transform: scale(1.04); }
.department-page-card__number { position: absolute; right: 14px; bottom: 10px; font: 700 34px var(--font-mono); color: rgba(255,255,255,.76); }
.department-page-card__body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.department-page-card__code { font: 600 12px var(--font-mono); letter-spacing: .14em; color: var(--blue); }
.department-page-card h3 { min-height: 50px; margin: 11px 0 7px; font: 700 18px/1.35 var(--font-display); color: var(--navy); }
.department-page-card p { margin: 10px 0 20px; line-height: 1.5; color: var(--muted); }
.department-page-card__bn { min-height: 24px; margin: 0 !important; color: var(--ink-soft) !important; }
.department-page-card .dept-card__more { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line-soft); }
.dept-cta { padding: 58px 0; background: var(--navy); }
.dept-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.dept-cta h2 { margin: 11px 0 0; color: #fff; font: 700 clamp(27px,4vw,40px) var(--font-display); }

.department-detail-hero { padding: 64px 0 54px; background: #fff; }
.department-detail-hero__grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 70px; }
.department-detail-hero__copy { min-width: 0; }
.detail-breadcrumb { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.department-detail-hero h1 { margin: 16px 0 20px; color: var(--navy-deep); font: 800 clamp(38px,5vw,64px)/1.04 var(--font-display); letter-spacing: -.045em; }
.detail-location { color: var(--ink-soft); font-size: 17px; }
.detail-rule { width: 42px; height: 2px; margin: 17px 0 26px; background: var(--navy); }
.department-detail-hero__copy > p { max-width: 650px; color: var(--ink-soft); font-size: 18px; line-height: 1.72; }
.department-detail-hero__media { position: relative; height: 420px; overflow: hidden; border-radius: 6px; box-shadow: 0 18px 45px rgba(11,37,58,.15); }
.department-detail-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.department-detail-hero__media span { position: absolute; left: 20px; bottom: 20px; padding: 9px 15px; color: #fff; background: var(--navy); font: 600 13px var(--font-mono); letter-spacing: .12em; }
.department-info { padding: 52px 0 68px; }
.department-info h2, .department-description h2, .department-gallery h2, .related-departments h2 { margin: 0 0 22px; color: var(--navy-deep); font: 700 27px var(--font-display); }
.department-info__layout { display: grid; grid-template-columns: 1.75fr .75fr; gap: 54px; align-items: center; }
.department-facts { margin: 0; border-top: 1px solid var(--line); }
.department-facts > div { display: grid; grid-template-columns: minmax(230px,.8fr) 1.2fr; gap: 20px; padding: 17px 10px; border-bottom: 1px solid var(--line); }
.department-facts dt { display: grid; grid-template-columns: 28px 1fr; color: var(--blue); font-weight: 700; }
.department-facts dt span { color: var(--navy); }
.department-facts dd { margin: 0; color: var(--ink-soft); }
.department-info blockquote { margin: 0; padding: 34px 36px; background: #F7F9FB; border-radius: 5px; }
.department-info blockquote span { color: #B8C7D4; font: 700 72px/1 Georgia,serif; }
.department-info blockquote p { margin: -15px 0 0; color: var(--navy); font: italic 500 21px/1.55 var(--font-body); }
.department-description { padding: 40px 0 62px; background: #fff; }
.department-description p { max-width: 850px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.department-gallery { padding: 64px 0 76px; background: var(--off-white); }
.department-gallery__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.department-gallery__item { margin: 0; }
.department-gallery__item img { width: 100%; height: 190px; object-fit: cover; border-radius: 4px; }
.department-gallery__item figcaption { padding-top: 10px; color: var(--ink-soft); font-size: 14px; }
.related-departments { padding: 68px 0 86px; background: #fff; }
.related-departments__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.related-dept { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; }
.related-dept:hover { color: var(--ink); border-color: #B8C7D4; box-shadow: 0 8px 22px rgba(11,37,58,.07); }
.related-dept img { width: 120px; height: 104px; object-fit: cover; border-radius: 3px; }
.related-dept div { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.related-dept span { color: var(--blue); font: 600 11px var(--font-mono); letter-spacing: .1em; }
.related-dept strong { margin: 6px 0; color: var(--navy); font: 600 14px/1.3 var(--font-display); }
.related-dept small { color: var(--muted); }

@media (max-width: 1100px) {
  .department-page-grid { grid-template-columns: repeat(2,1fr); }
  .department-detail-hero__grid { gap: 38px; }
  .department-info__layout { grid-template-columns: 1fr; }
  .related-departments__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dept-page-hero { padding: 58px 0 64px; }
  .department-page-grid, .department-detail-hero__grid, .department-gallery__grid, .related-departments__grid { grid-template-columns: 1fr; }
  .dept-cta .wrap { align-items: flex-start; flex-direction: column; }
  .department-detail-hero { padding-top: 38px; }
  .department-detail-hero__media { height: 290px; }
  .department-facts > div { grid-template-columns: 1fr; gap: 7px; }
  .department-gallery__item img { height: 230px; }
  .related-dept { grid-template-columns: 100px 1fr; }
  .related-dept img { width: 100px; }
}

.navtoggle {
  display: none; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: none;
  font-size: 14px; font-weight: 700; padding: 12px 16px; cursor: pointer;
}

/* --- standalone gallery page ----------------------------------------- */
.gallery-page-hero { padding: 82px 0 88px; color: #fff; background: linear-gradient(110deg,rgba(7,26,43,.96),rgba(11,37,58,.72)),url("../images/team-group.jpg") center 42%/cover; }
.gallery-page-hero h1 { margin: 14px 0 12px; font: 800 clamp(42px,6vw,68px)/1.05 var(--font-display); letter-spacing: -.035em; }
.gallery-page-hero p { margin: 0; color: var(--on-navy); font-size: 19px; }
.gallery-page-head { margin-bottom: 38px; }
.gallery-page-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.gallery-page-card { position: relative; min-width: 0; height: 310px; padding: 0; overflow: hidden; text-align: left; background: var(--navy); border: 0; border-radius: 5px; cursor: pointer; box-shadow: 0 8px 25px rgba(11,37,58,.08); }
.gallery-page-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-page-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(7,26,43,.9)); }
.gallery-page-card > span { position: absolute; z-index: 1; right: 22px; bottom: 20px; left: 22px; display: flex; flex-direction: column; color: #fff; }
.gallery-page-card strong { font: 700 19px var(--font-display); }
.gallery-page-card small { margin-top: 5px; color: #C8D7E3; font-size: 13px; }
.gallery-page-card:hover img { transform: scale(1.045); }
.gallery-page-card.is-hidden { display: none; }
@media (max-width: 980px) { .gallery-page-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .gallery-page-hero { padding: 58px 0 64px; } .gallery-page-grid { grid-template-columns: 1fr; } .gallery-page-card { height: 270px; } }

/* --- polished mobile site header ------------------------------------- */
@media (max-width: 720px) {
  .utility { border-bottom: 1px solid rgba(255,255,255,.1); }
  .utility__inner {
    padding: 12px var(--pad); gap: 11px;
    align-items: stretch; flex-direction: column;
  }
  .utility__claim { align-items: flex-start; font-size: 12.5px; line-height: 1.5; }
  .utility__dot { margin-top: 6px; flex: none; }
  .utility__meta { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .utility__meta > a:not(.utility__cta) {
    width: fit-content; max-width: 100%; font-size: 12px;
    overflow-wrap: anywhere;
  }
  .utility__cta {
    width: fit-content; margin-top: 3px; padding: 8px 13px;
    border-radius: 3px;
  }

  .header { box-shadow: 0 7px 24px rgba(7,26,43,.09); }
  .header__inner {
    min-height: 76px; padding: 9px var(--pad); gap: 10px 12px;
    flex-wrap: wrap;
  }
  .brand { min-width: 0; flex: 1 1 auto; gap: 9px; }
  .brand > span:last-child { min-width: 0; }
  .brand__mark { width: 48px; height: 48px; }
  .brand__name { font-size: clamp(13px, 3.7vw, 16px); white-space: normal; }
  .brand__role {
    max-width: 235px; font-size: 9.5px; line-height: 1.35;
    letter-spacing: .055em; white-space: normal;
  }
  .navtoggle {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    min-width: 68px; padding: 10px 12px; border-radius: 4px;
    background: var(--navy); color: #fff;
    box-shadow: 0 4px 12px rgba(7,26,43,.16);
  }
  .navtoggle::before { content: "☰"; font-size: 17px; line-height: 1; }
  .nav {
    display: none; flex: 0 0 calc(100% + (var(--pad) * 2));
    width: calc(100% + (var(--pad) * 2)); margin: 0 calc(var(--pad) * -1) -9px;
    padding: 8px var(--pad) 14px; background: #fff;
    border-top: 1px solid var(--line); max-height: calc(100vh - 170px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .nav.is-open .nav__item { width: 100%; }
  .nav.is-open .nav__link {
    width: 100%; justify-content: space-between; padding: 13px 10px;
    border-bottom: 1px solid var(--line-soft); border-radius: 0;
  }
  .nav__menu {
    position: static; width: 100%; min-width: 0; padding: 5px 5px 9px;
    border-width: 0 0 1px; box-shadow: none; background: var(--off-white);
  }
  .nav__menu a { padding: 10px; }
  .nav__label { min-width: 0; font-size: 13px; }
}

@media (max-width: 390px) {
  :root { --pad: 15px; }
  .brand__mark { width: 43px; height: 43px; }
  .brand__name { font-size: 12.5px; }
  .brand__role { max-width: 190px; font-size: 8.5px; }
  .navtoggle { min-width: 60px; padding: 9px 10px; font-size: 12px; }
}
