/* ==========================================================================
   Silver Sea — components
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- Section headings --------------------------------------------- */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 68px);
}

.section-heading > div > .eyebrow { margin-bottom: 20px; }

.section-heading > p,
.section-heading > div + p {
  max-width: 46ch;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.66;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ink .section-heading > p { color: var(--mist); border-top-color: var(--line-dark); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
}

.intro-grid > * { min-width: 0; }

.section-heading h2 + p { margin-top: 18px; }

.section-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ink .section-side { border-top-color: var(--line-dark); }

.section-side p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.cred-strip { display: flex; flex-wrap: wrap; gap: 8px; }

.cred-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}

.cred-strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
}

/* ---------- Page intro --------------------------------------------------- */
.page-intro-band {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 92px));
  padding-bottom: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(143, 201, 240, 0.1), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.page-intro { display: grid; gap: 18px; }

.page-intro h1 {
  font-size: clamp(2.3rem, 5.4vw, 5.2rem);
  max-width: 22ch;
}

.page-intro .lead { max-width: 58ch; }

.crumbs {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }

.crumbs a:hover { color: var(--sky-deep); }

/* ---------- Service hero ------------------------------------------------- */
.service-hero {
  position: relative;
  min-height: min(76svh, 720px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(38px, 5vw, 66px);
  color: var(--bg);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.service-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: -2;
  animation: hero-drift 30s var(--ease-soft) infinite alternate;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 30, 54, 0.95), rgba(10, 30, 54, 0.45) 55%, rgba(10, 30, 54, 0.3));
}

.service-hero .wrap { display: grid; gap: 20px; }

.service-hero .crumbs { color: rgba(255, 255, 255, 0.6); margin-bottom: 4px; }

.service-hero .eyebrow { color: var(--sky-pale); margin-bottom: 6px; }

.service-hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.6vw, 5.4rem);
  max-width: 20ch;
}

.service-hero h1 em { color: var(--sky-pale); }

.service-hero .wrap > p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.12rem);
}

.service-hero .button { align-self: start; justify-self: start; margin-top: 8px; }

/* ---------- Service cards ------------------------------------------------ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.pillar-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-3);
  aspect-ratio: 4 / 5;
}

.pillar-grid.two .card-media { aspect-ratio: 3 / 2; }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 54, 0.42), transparent 52%);
  opacity: 0.85;
  transition: opacity 0.5s;
}

.service-card:hover .card-media img { transform: scale(1.055); }

.service-card:hover .card-media::after { opacity: 0.35; }

.service-card > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.card-index {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-index::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sky);
}

.service-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 40ch;
}

.card-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.card-cta i {
  font-style: normal;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease);
}

.service-card:hover .card-cta i {
  background: var(--sky);
  border-color: var(--sky);
  transform: translate(2px, -2px);
}

.ink .service-card p { color: var(--mist); }

/* ---------- Scope / why grids -------------------------------------------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.scope-grid article {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px) clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background 0.5s var(--ease);
  position: relative;
}

.scope-grid article > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--sky-deep);
}

.scope-grid article h3 { font-size: clamp(1.15rem, 1.6vw, 1.42rem); }

.scope-grid article p { color: var(--body); font-size: 0.92rem; line-height: 1.6; }

.scope-grid article:hover { background: var(--white); }

.ink .scope-grid { background: var(--line-dark); border-color: var(--line-dark); }

.ink .scope-grid article { background: var(--navy); }

.ink .scope-grid article > span { color: var(--sky); }

.ink .scope-grid article p { color: var(--mist); }

.ink .scope-grid article:hover { background: var(--navy-2); }

/* ---------- Steps -------------------------------------------------------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  counter-reset: step;
}

.steps-row > div {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-row > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sky);
  transition: width 1s var(--ease);
}

.steps-row > div.in::before,
.js .steps-row > div.in::before { width: 34%; }

.step-number {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sky-deep);
  font-weight: 300;
}

.ink .steps-row > div { border-top-color: var(--line-dark); }

.ink .step-number { color: var(--sky); }

.ink .steps-row h3 { color: var(--white); }

.ink .steps-row p { color: var(--mist); }

.steps-row h3 { font-size: 1.3rem; }

.steps-row p { color: var(--body); font-size: 0.94rem; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 46px);
}

/* ---------- Catalog feature ---------------------------------------------- */
.catalog-feature {
  position: relative;
  background: var(--navy);
  color: var(--bg);
  overflow: hidden;
  padding-block: var(--section-y);
}

.catalog-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 85% 5%, rgba(143, 201, 240, 0.14), transparent 62%),
    radial-gradient(60% 70% at 0% 100%, rgba(16, 43, 76, 0.85), transparent 70%);
  pointer-events: none;
}

.catalog-feature > .wrap { position: relative; }

.catalog-feature h2 em,
.corridor h2 em {
  color: var(--sky);
}

.catalog-feature .eyebrow,
.corridor .eyebrow { color: var(--sky-pale); }

.catalog-feature .lead,
.corridor .lead { color: rgba(255, 255, 255, 0.78); }

.catalog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 26px 0 4px;
}

.catalog-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 217, 234, 0.7);
}

.catalog-stats strong {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.supply-teaser {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}

.supply-teaser a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.supply-teaser a > span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--sky);
  letter-spacing: 0.1em;
}

.supply-teaser a h3 {
  font-size: 1.2rem;
  color: var(--white);
  font-family: var(--display);
}

.supply-teaser a small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 217, 234, 0.6);
}

.supply-teaser a b {
  font-weight: 400;
  font-family: var(--mono);
  color: var(--sky);
  transition: transform 0.4s var(--ease);
}

.supply-teaser a:hover { background: rgba(255, 255, 255, 0.045); padding-left: 14px; }

.supply-teaser a:hover b { transform: translate(3px, -3px); }

/* ---------- Product marquee ---------------------------------------------- */
.product-marquee {
  display: flex;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 56px);
  animation-duration: 64s;
}

.product-marquee.reverse { animation-direction: reverse; animation-duration: 78s; }

.product-marquee > div { gap: 14px; }

.product-marquee a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: border-color 0.4s, background 0.4s;
}

.product-marquee a:hover { border-color: var(--sky); background: rgba(143, 201, 240, 0.08); }

.product-marquee img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.product-marquee a span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--bg);
}

.product-marquee a small {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.product-marquee:hover { animation-play-state: paused; }

/* ---------- Corridor / map ----------------------------------------------- */
.corridor {
  position: relative;
  background: var(--navy-2);
  color: var(--bg);
  overflow: hidden;
  padding-block: var(--section-y);
}

.corridor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent 78%);
  pointer-events: none;
}

.corridor > .wrap { position: relative; }

.corridor figure { margin: 0; }

.corridor-map {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.corridor-map .coast { fill: none; stroke: rgba(201, 217, 234, 0.42); stroke-width: 1.2; }

.corridor-map .lane {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.4;
  stroke-dasharray: 7 9;
  opacity: 0.85;
  animation: dash 14s linear infinite;
}

.corridor-map .sea {
  fill: rgba(201, 217, 234, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
}

.corridor-map .land {
  fill: rgba(201, 217, 234, 0.1);
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 8px;
}

.corridor-map .city {
  fill: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
}

.corridor-map .dot { fill: var(--sky); }

.corridor-map .pulse {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3.4s var(--ease-soft) infinite;
}

.corridor figcaption { margin-top: 14px; }

.office-list {
  display: flex;
  flex-direction: column;
  margin: 26px 0 30px;
  border-top: 1px solid var(--line-dark);
}

.office-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9rem;
}

.office-list strong { font-family: var(--display); font-size: 1.2rem; font-weight: 400; color: var(--white); }

.office-list span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 217, 234, 0.55);
}

.office-list a { font-family: var(--mono); font-size: 0.74rem; color: var(--sky-pale); }

/* ---------- Offices & facts ---------------------------------------------- */
.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}

.office-grid article {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
}

.office-grid article .eyebrow { margin-bottom: 2px; font-size: 0.58rem; }

.office-grid h3 { font-size: 1.7rem; }

.office-grid address { color: var(--body); font-size: 0.9rem; line-height: 1.55; margin-bottom: 8px; }

.office-grid a { font-family: var(--mono); font-size: 0.74rem; color: var(--sky-deep); }

.office-grid a:hover { text-decoration: underline; }

.facts {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.facts dd { font-size: 0.96rem; line-height: 1.55; }

.facts a { color: var(--sky-deep); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--sky-deep);
  flex: none;
  transition: transform 0.45s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:hover { color: var(--sky-deep); }

.faq details > p {
  padding: 0 40px 22px 0;
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.68;
  max-width: 70ch;
}

.ink .faq { border-top-color: var(--line-dark); }

.ink .faq details { border-bottom-color: var(--line-dark); }

.ink .faq summary { color: var(--bg); }

.ink .faq details > p { color: var(--mist); }

/* ---------- Credentials --------------------------------------------------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.credential-grid article {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  transition: background 0.4s;
}

.credential-grid article:hover { background: var(--white); }

.credential-grid h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credential-grid p { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.credential-grid article::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sky);
  margin-bottom: 6px;
}

/* ---------- Chips / directory --------------------------------------------- */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 44px;
}

.chip-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.chip-nav a small { font-family: var(--mono); font-size: 0.58rem; color: var(--muted); }

.chip-nav a:hover { background: var(--navy); color: var(--bg); border-color: var(--navy); }

.chip-nav a:hover small { color: var(--sky); }

.impa-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.impa-directory > a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.35s, transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.impa-directory > a:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.section-card-photo {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 8px;
}

.section-card-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--ease); }

.impa-directory > a:hover .section-card-photo img { transform: scale(1.05); }

.section-card-copy { display: flex; flex-direction: column; gap: 3px; }

.section-card-code {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--sky-deep);
}

.section-card-copy h3 { font-size: 1.02rem; line-height: 1.2; }

.section-card-copy small { font-size: 0.74rem; color: var(--muted); }

.section-card-copy b { display: none; }

.dept { padding-block: clamp(30px, 4vw, 56px); border-top: 1px solid var(--line); }

.dept > .section-heading { display: block; margin-bottom: 26px; }

.dept > .section-heading h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

.dept > .section-heading p { border: 0; padding-top: 8px; max-width: 62ch; }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.dept-card {
  background: var(--bg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dept-card h3 { font-size: 1.24rem; }

.dept-card h3 a:hover { color: var(--sky-deep); }

.dept-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

.dept-card ul { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }

.dept-card li a {
  font-size: 0.8rem;
  color: var(--body);
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
}

.dept-card li a::before { content: "—"; color: var(--sky); font-size: 0.7rem; }

.dept-card li a:hover { color: var(--sky-deep); }

/* ---------- Catalog tools / results --------------------------------------- */
.catalog-tools {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -30px rgba(10, 30, 54, 0.5);
}

.catalog-tools label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.catalog-tools input[type="search"],
.catalog-tools select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.catalog-tools .button { height: 44px; min-height: 44px; }

.catalog-results {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.catalog-result {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 90px auto;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s, padding-left 0.35s;
}

.catalog-result:hover { background: rgba(255, 255, 255, 0.7); padding-left: 10px; }

.catalog-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sky-deep);
}

.catalog-result h3 { font-size: 1rem; font-family: var(--sans); font-weight: 500; line-height: 1.35; }

.catalog-result p { font-size: 0.72rem; color: var(--muted); }

.catalog-result .unit {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-result .text-link { font-size: 0.74rem; }

.catalog-result summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.catalog-result details p {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--body);
}

.catalog-result .button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.button:disabled {
  pointer-events: none;
  opacity: 0.6;
}

.catalog-result.is-unavailable h3 { color: var(--muted); }

.unavailable-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.pagination .button { min-height: 38px; padding: 0 16px; font-size: 0.78rem; }

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.product-tile a { display: flex; flex-direction: column; gap: 10px; }

.product-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 10px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
}

.product-tile a:hover .product-photo img { transform: scale(1.06); }

.product-tile h3 { font-size: 0.92rem; font-family: var(--sans); font-weight: 500; line-height: 1.35; }

.product-tile .micro { font-size: 0.54rem; }

.section-pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Image break --------------------------------------------------- */
.image-break {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.image-break::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #14365c;
  mix-blend-mode: color;
  opacity: 0.36;
  pointer-events: none;
}

.image-break img {
  width: 100%;
  height: clamp(300px, 52vw, 640px);
  object-fit: cover;
  opacity: 0.92;
}

.image-break figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 60px var(--gutter) 26px;
  background: linear-gradient(to top, rgba(10, 30, 54, 0.92), transparent);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.image-break figcaption.wrap { width: 100%; margin: 0; max-width: none; }

/* ---------- Editorial image ---------------------------------------------- */
.editorial-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
}

.editorial-image img { width: 100%; height: 100%; object-fit: cover; }

.editorial-image.cool::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #14365c;
  mix-blend-mode: color;
  opacity: 0.42;
  pointer-events: none;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 38px);
}

.scenario {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.scenario::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30%;
  height: 1px;
  background: var(--sky);
  transition: width 0.7s var(--ease);
}

.scenario:hover::before { width: 100%; }

.scenario-meta {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.scenario h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }

.scenario p { color: var(--body); font-size: 0.9rem; }

.scenario ul { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }

.scenario li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.scenario li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--sky);
}

/* ---------- Requirement list --------------------------------------------- */
.requirement-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.requirement-list li {
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.94rem;
  color: var(--body);
}

.requirement-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--sky);
  rotate: 45deg;
}

.ink .requirement-list { border-top-color: var(--line-dark); }

.ink .requirement-list li { border-bottom-color: var(--line-dark); color: var(--mist); }

/* ---------- Forms --------------------------------------------------------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.form-panel h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.form-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-panel textarea { resize: vertical; min-height: 110px; }

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 111, 168, 0.15);
}

.form-panel .check {
  display: block;
  position: relative;
  padding-left: 30px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
  line-height: 1.55;
}

.form-panel .check input {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sky-deep);
}

.form-panel .check a { color: var(--sky-deep); text-decoration: underline; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 0.86rem; line-height: 1.5; min-height: 0; }

.form-status.success { color: #256b4a; }

.form-status.error { color: #a3352a; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}

.form-actions .button { min-height: 46px; }

.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.service-options-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-options label {
  position: relative;
  display: flex;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--navy);
  min-width: 0;
}

.service-options input {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 1px !important;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.service-options span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.service-options span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-options input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--bg);
}

.service-options input:checked + span::before {
  border-color: var(--sky);
  box-shadow: inset 0 0 0 3px var(--sky);
}

.service-options input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

fieldset[data-step] { animation: step-in 0.45s var(--ease) both; }

legend {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  padding: 0;
  margin-bottom: 4px;
}

legend:focus { outline: none; }

fieldset > p { color: var(--body); font-size: 0.9rem; }

.item-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 80px 90px 34px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.item-row label { font-size: 0.54rem; }

.item-row input,
.item-row select { padding: 9px 10px; font-size: 0.86rem; }

.remove-item {
  width: 34px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}

.remove-item:hover { background: #a3352a; color: var(--white); border-color: #a3352a; }

.review-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.review-row strong {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding-top: 2px;
}

.section.rfq-layout {
  padding-top: clamp(30px, 4vw, 56px);
}

.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}

.rfq-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }

.steps { display: flex; flex-direction: column; border-left: 1px solid var(--line); }

.steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0 12px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}

.steps li span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; }

.steps li[aria-current="step"] { color: var(--navy); font-weight: 500; }

.steps li[aria-current="step"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sky);
}

.section.contact-layout {
  padding-top: clamp(30px, 4vw, 56px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-info h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }

.contact-info > p { color: var(--body); font-size: 0.92rem; }

.contact-large {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-large:hover { color: var(--sky-deep); border-color: var(--sky); }

/* ---------- Ports --------------------------------------------------------- */
.port-browser {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.port-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.port-sidebar > label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.port-sidebar input[type="search"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.filters button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  color: var(--body);
  transition: all 0.3s;
}

.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--bg); }

.port-list { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; margin-top: 4px; }

.port-list button {
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 0.84rem;
  color: var(--body);
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}

.port-list button:hover { background: var(--bg-2); padding-left: 16px; }

.port-list button[aria-pressed="true"] { color: var(--sky-deep); font-weight: 600; background: rgba(143, 201, 240, 0.1); }

.map-column { display: flex; flex-direction: column; gap: 14px; }

#ports-map {
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-3);
  filter: saturate(0.72) contrast(1.02);
}

.leaflet-container { font-family: var(--sans) !important; }

.port-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--bg);
}

.port-detail h3 { color: var(--white); font-size: 1.6rem; }

.port-detail p { color: var(--mist); font-size: 0.82rem; }

.port-detail .eyebrow { color: var(--sky-pale); margin-bottom: 6px; font-size: 0.54rem; }

.port-marker {
  background: var(--sky);
  border: 1px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(143, 201, 240, 0.25);
}

.port-marker.selected { background: var(--navy); border-color: var(--sky); }

/* ---------- Team ---------------------------------------------------------- */
.leadership { margin-bottom: clamp(34px, 4vw, 54px); }

.leadership .team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  background: var(--navy);
  color: var(--bg);
  border-radius: var(--radius-lg);
}

.leadership .person-monogram {
  width: 92px;
  height: 92px;
  font-size: 2rem;
  background: rgba(143, 201, 240, 0.14);
  color: var(--sky-pale);
  border-color: rgba(143, 201, 240, 0.4);
}

.leadership .team-card h3 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

.leadership .team-card p { color: var(--mist); }

.leadership .eyebrow { color: var(--sky-pale); }

.leadership .team-card a { color: var(--sky-pale); }

.team-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 26px;
}

.team-heading span { flex: 1; height: 1px; background: var(--line); }

.team-heading h2 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 400;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.35s, transform 0.4s var(--ease);
}

.team-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.person-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 1rem;
  color: var(--sky-deep);
  flex: none;
}

.team-card > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.team-card .eyebrow { margin: 0 0 2px; font-size: 0.52rem; letter-spacing: 0.14em; }

.team-card .eyebrow::before { display: none; }

.team-card h3 { font-size: 1.14rem; }

.team-card p { font-size: 0.78rem; color: var(--muted); }

.team-card a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--sky-deep);
  overflow-wrap: anywhere;
}

.team-card a:hover { text-decoration: underline; }

/* ---------- Prose --------------------------------------------------------- */
.prose { max-width: 74ch; display: flex; flex-direction: column; gap: 18px; }

.prose h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-top: 16px; }

.prose h3 { font-size: 1.16rem; margin-top: 10px; }

.prose p,
.prose li { color: var(--body); font-size: 0.96rem; line-height: 1.7; }

.prose ul,
.prose ol { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; list-style: disc; }

.prose a { color: var(--sky-deep); text-decoration: underline; }

/* ---------- Misc ---------------------------------------------------------- */
.review-banner { text-transform: uppercase; }

.card-index,
.section-card-code { font-variant-numeric: tabular-nums; }

@keyframes dash { to { stroke-dashoffset: -160; } }

@keyframes ping {
  0% { transform: scale(0.7); opacity: 1; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Certifications Gallery & Modal ------------------------------- */
.cert-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 4px 16px -8px rgba(10, 30, 54, 0.08);
  margin-bottom: 32px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.cert-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -16px rgba(10, 30, 54, 0.16);
}

.cert-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  padding: 16px;
}

.cert-card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(10, 30, 54, 0.12);
  border-radius: 2px;
  transition: transform 0.5s var(--ease);
}

.cert-card:hover .cert-card-media img {
  transform: scale(1.03);
}

.cert-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 54, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.cert-card-media:hover .cert-zoom-hint {
  opacity: 1;
}

.cert-card-body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cert-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cert-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--navy);
}

.cert-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

.cert-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  color: var(--navy);
  line-height: 1.3;
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.cert-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body);
}

.cert-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
}

.cert-details summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.cert-details summary:hover {
  color: var(--navy);
}

.cert-details[open] summary::after {
  content: "—";
}

.cert-details:not([open]) summary::after {
  content: "+";
}

.cert-extra-info {
  padding: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.cert-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Modal / Lightbox */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}

.cert-modal[hidden] {
  display: none !important;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 54, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cert-modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: step-in 0.3s var(--ease) both;
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.cert-modal-header h3 {
  font-size: 1.15rem;
  color: var(--navy);
}

.cert-modal-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
}

.cert-modal-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cert-modal-close:hover {
  background: var(--navy);
  color: var(--white);
}

.cert-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
}

.cert-modal-body img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(10, 30, 54, 0.15);
  border-radius: 2px;
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

