/* ============================================================
   MDRM UTILITY SOLUTION — Inner-page styles (About / Contact /
   Gallery / Applications). Loaded after styles.css.
   ============================================================ */

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 44vw, 560px);
  display: flex; align-items: center; color: #fff;
  background: var(--teal-abyss);
  isolation: isolate;
}
.page-hero .ph-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .ph-media img,
.page-hero .ph-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero .ph-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(0,0,0,.54) 0%, rgba(0,0,0,.30) 42%, rgba(0,0,0,.10) 74%, rgba(0,0,0,.20) 100%),
    linear-gradient(to top, rgba(0,0,0,.30), transparent 55%);
}
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero .kick {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(140,198,63,.14); border: 1px solid rgba(140,198,63,.4);
  color: #cfeeae; font-family: var(--f-display); font-weight: 600;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .48rem 1rem; border-radius: 999px;
}
/* Inline <svg> without width/height inherits parent width; clamp them. */
.page-hero .kick svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--green); }
.crumbs svg { width: 14px; height: 14px; flex: 0 0 auto; }
.mv-card .ic svg { width: 28px; height: 28px; }
.hub-card .ic svg { width: 24px; height: 24px; }
.wwa-copy .pill-list .tick svg { width: 18px; height: 18px; }
.insta-cta .ic-wrap svg { width: 34px; height: 34px; }
.stat-strip svg, .app-row svg { max-width: 100%; }
.page-hero h1 {
  font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4rem);
  color: #fff; margin-top: 1.2rem; letter-spacing: -.03em; line-height: 1.02;
  text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 2px 26px rgba(0,0,0,.45);
}
.page-hero .sub {
  margin-top: 1.2rem; max-width: 60ch;
  color: rgba(255,255,255,.86); font-size: clamp(1rem,.96rem + .3vw,1.15rem);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  font-family: var(--f-display); font-size: .82rem;
  color: rgba(255,255,255,.75); margin-bottom: 1rem;
}
.crumbs a { color: var(--green); }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .8; }

/* ---------- Who We Are (overlapping images) ---------- */
.wwa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.wwa-media { position: relative; aspect-ratio: 1.02 / 1; }
.wwa-media .big {
  position: absolute; inset: 0 12% 12% 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg);
  background: var(--steel);
}
.wwa-media .big img { width: 100%; height: 100%; object-fit: cover; }
.wwa-media .small {
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1;
  border-radius: var(--r-lg); overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 24px 60px rgba(6,52,59,.28);
  background: var(--steel);
}
.wwa-media .small img { width: 100%; height: 100%; object-fit: cover; }
.wwa-media .badge {
  position: absolute; top: 12px; left: -18px; z-index: 2;
  background: var(--green); color: var(--teal-deep);
  font-family: var(--f-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(140,198,63,.32);
}
.wwa-copy .pill-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin: 1.8rem 0; }
.wwa-copy .pill-list .item { display: flex; gap: .8rem; align-items: flex-start; }
.wwa-copy .pill-list .tick {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
  background: var(--green-12); display: grid; place-items: center;
}
.wwa-copy .pill-list .tick svg { width: 18px; height: 18px; color: var(--green-deep); }
.wwa-copy .pill-list b { display: block; font-family: var(--f-display); font-weight: 600; }
.wwa-copy .pill-list span { color: var(--grey); font-size: .9rem; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: linear-gradient(120deg, #0E5D69 0%, #0A4550 55%, #073A44 100%);
  color: #fff;
}
.stat-strip .grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; padding-block: clamp(2.4rem, 3.6vw, 3.2rem);
}
.stat-strip .cell { padding: 0 1.4rem; position: relative; }
.stat-strip .cell + .cell::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 1px; background: rgba(255,255,255,.16);
}
.stat-strip .num {
  font-family: var(--f-num); font-weight: 600; font-size: clamp(2rem,3.4vw,2.7rem);
  letter-spacing: -.03em; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-strip .num em { font-style: normal; color: #A8DB63; }
.stat-strip .lbl { color: rgba(255,255,255,.7); font-size: .82rem; margin-top: .5rem; letter-spacing: .04em; }

/* ---------- Mission / Vision cards ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem,2.4vw,2rem); }
.mv-card {
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  padding: clamp(1.6rem,2.6vw,2.2rem); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mv-card.mission { background: linear-gradient(160deg, #FFFDF3, #FFF6DA); }
.mv-card.vision  { background: linear-gradient(160deg, #EEFBEE, #D6F1DD); }
.mv-card .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--card); display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.mv-card .ic svg { width: 28px; height: 28px; color: var(--teal); }
.mv-card h3 { font-size: 1.4rem; }
.mv-card p { color: var(--graphite); margin-top: .7rem; }
.mv-card ul { margin-top: 1rem; display: grid; gap: .55rem; }
.mv-card ul li { display: flex; align-items: flex-start; gap: .6rem; color: var(--graphite); font-size: .95rem; }
.mv-card ul li::before {
  content: ""; flex: 0 0 auto; margin-top: .55rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep);
}

/* ---------- Instagram CTA ---------- */
.insta-cta {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 55%, #FEDA75 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.insta-cta .wrap { padding-block: clamp(3rem,5vw,4.2rem); position: relative; z-index: 2; }
.insta-cta::before {
  content: ""; position: absolute; inset: -30%; z-index: 1; opacity: .28;
  background: radial-gradient(circle at 30% 20%, #fff 0, transparent 40%),
              radial-gradient(circle at 80% 80%, #fff 0, transparent 45%);
}
.insta-cta .ic-wrap { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(6px); margin-bottom: 1.3rem; }
.insta-cta .ic-wrap svg { width: 34px; height: 34px; color: #fff; }
.insta-cta h2 { color: #fff; font-size: clamp(1.9rem,3vw,2.8rem); text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.insta-cta p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 1rem auto 0; text-shadow: 0 1px 12px rgba(0,0,0,.24); }
.insta-cta .btn { margin-top: 1.7rem; background: #fff; color: #C13584; font-size: 1rem; padding: 1rem 1.9rem; }
.insta-cta .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0,0,0,.22); }
.insta-cta .handle { display: block; font-family: var(--f-display); font-size: .9rem; opacity: .9; margin-top: 1rem; }

/* ---------- Contact page ---------- */
.contact-hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.6rem; }
.hub-card {
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: 1.4rem 1.3rem; background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: linear-gradient(160deg, #fff, var(--porcelain)); }
.hub-card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--green-12); display: grid; place-items: center; margin-bottom: 1rem; }
.hub-card .ic svg { width: 24px; height: 24px; color: var(--green-deep); }
.hub-card .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-family: var(--f-display); font-weight: 600; }
.hub-card b { display: block; margin-top: .3rem; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.hub-card a, .hub-card span { color: var(--graphite); font-size: .92rem; display: block; margin-top: .15rem; }
.hub-card a:hover { color: var(--teal); }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.gallery-tabs button {
  font-family: var(--f-display); font-weight: 600; font-size: .86rem;
  padding: .55rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--graphite); background: #fff;
  transition: all var(--dur) var(--ease);
}
.gallery-tabs button:hover { border-color: var(--teal); color: var(--teal); }
.gallery-tabs button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.masonry { column-count: 3; column-gap: 1rem; }
.masonry .m-item {
  break-inside: avoid; margin-bottom: 1rem;
  border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.masonry .m-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.masonry .m-item img, .masonry .m-item video { width: 100%; height: auto; display: block; }
.masonry .m-item.hide { display: none; }
.masonry .m-item .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(6,52,59,.72); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  padding: .22rem .6rem; font-family: var(--f-display); font-weight: 600;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
}
.masonry .m-item .video-wrap { position: relative; }
.masonry .m-item .play-btn {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.12));
  transition: background var(--dur) var(--ease);
}
.masonry .m-item:hover .play-btn { background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.22)); }
.masonry .m-item .play-btn span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.24); border: 2px solid rgba(255,255,255,.72);
  display: grid; place-items: center; color: #fff;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.masonry .m-item:hover .play-btn span { transform: scale(1.08); background: rgba(255,255,255,.34); }
.masonry .m-item .play-btn svg { width: 26px; height: 26px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(4,20,24,.94); display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox .lb-media { max-width: 92vw; max-height: 86vh; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox .lb-media img, .lightbox .lb-media video { max-width: 92vw; max-height: 86vh; display: block; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox button:hover { background: rgba(255,255,255,.24); }

/* ---------- Applications (4 per row on desktop, stacked media/body) ---------- */
.app-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }
.app-row {
  display: flex; flex-direction: column;
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.app-row:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.app-row .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.app-row .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.app-row:hover .media img { transform: scale(1.06); }
.app-row .body { padding: 1.15rem 1.15rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.app-row .idx {
  display: inline-block; font-family: var(--f-display); font-weight: 700;
  color: var(--green-deep); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .5rem;
}
.app-row h3 { font-size: 1.08rem; }
.app-row p { color: var(--grey); margin-top: .55rem; font-size: .88rem; }
.app-row ul { margin-top: .8rem; display: grid; gap: .38rem; }
.app-row ul li { color: var(--graphite); font-size: .84rem; display: flex; align-items: flex-start; gap: .45rem; }
.app-row ul li::before {
  content: ""; flex: 0 0 auto; margin-top: .55rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}

/* ---------- Products listing (products.html) ---------- */
/* Distinct background for the whole products section, set via a body-scoped
   class so nothing else on the page is affected. */
.prods-section { background: linear-gradient(180deg, #EAF3FA 0%, #DDEAF3 100%); }

.prod-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 2.2vw, 1.9rem); }

/* Bold coloured outline (deep teal) around every product card, with a
   glowing hover ring and a subtle lift. */
.prod-list-card {
  --outline: #0C5A66;
  display: flex; flex-direction: column; position: relative;
  border: 3px solid var(--outline); border-radius: var(--r-lg);
  background: #FFFFFF; overflow: hidden;
  box-shadow: 0 6px 18px rgba(6,52,59,.08);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  cursor: pointer;
}
.prod-list-card:hover {
  transform: translateY(-8px);
  border-color: var(--green-deep);
  box-shadow: 0 22px 44px rgba(6,52,59,.20);
}

/* Uniform image slot: every card gets exactly the same square area, images
   sit contained inside with generous white padding so no product looks bigger
   than the next. */
.pl-media {
  display: block; overflow: hidden; position: relative;
  background: #FFFFFF; border-bottom: 3px solid var(--outline);
}
.pl-media img {
  width: 100%; height: auto; display: block; padding: 1.6rem;
  transition: transform 700ms var(--ease);
}
.prod-list-card:hover .pl-media img { transform: scale(1.06); }

/* Description panel with its own richer ground so the two halves read as
   two distinct zones — image on white, copy on a soft mist. */
.pl-body {
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
  background: linear-gradient(180deg, #F1F7FB 0%, #E5EEF4 100%);
}
.pl-body h3 { font-size: 1.15rem; }
.pl-body h3 a { color: inherit; transition: color var(--dur) var(--ease); }
.pl-body h3 a:hover { color: var(--teal); }
.pl-body p { color: var(--graphite); font-size: .92rem; margin: .6rem 0 1.3rem; flex: 1; }
.pl-body .btn { align-self: flex-start; }

/* ---------- Product detail hero ---------- */
/* Distinct hero band + bold outlined image well. */
.prod-hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(150deg, #EAF3FA 0%, #DDEAF3 55%, #D3E3E4 100%);
}
.prod-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.prod-hero-media {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  border: 3px solid #0C5A66; background: #FFFFFF; padding: 1.6rem;
  display: grid; place-items: center;
  box-shadow: 0 22px 44px rgba(6,52,59,.20);
}
.prod-hero-media img { width: 100%; height: 100%; object-fit: contain; }
.prod-hero-copy .crumbs { color: var(--grey); margin-bottom: 1rem; }
.prod-hero-copy .crumbs a { color: var(--teal); }
.prod-hero-copy h1 { font-size: clamp(1.9rem, 1rem + 3.6vw, 3.2rem); margin: .8rem 0 1.2rem; letter-spacing: -.03em; }
.prod-hero-copy .lede { color: var(--graphite); font-size: 1.03rem; line-height: 1.65; }
.prod-bullets { margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; }
.prod-bullets li { display: flex; align-items: flex-start; gap: .5rem; color: var(--graphite); font-size: .93rem; }
.prod-bullets li::before {
  content: ""; flex: 0 0 auto; margin-top: .5rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep);
}
.prod-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.prod-cta.small .btn { padding: .65rem 1.1rem; font-size: .85rem; }
.prod-cta .btn svg { width: 18px; height: 18px; }
.prod-cta .btn:hover svg { transform: none; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 24px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1DAE55; transform: translateY(-3px); box-shadow: 0 18px 32px rgba(37,211,102,.36); }

/* ---------- Technical details: 3 coloured cards ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.tech-card {
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.5vw, 2rem);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tech-card.tech-a { background: linear-gradient(160deg, #E9F6EB, #B8E4C4); }
.tech-card.tech-b { background: linear-gradient(160deg, #FFF3E0, #FFCE8B); }
.tech-card.tech-c { background: linear-gradient(160deg, #E4EEFB, #A9C6EE); }
.tech-card .ic {
  width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.72);
  display: grid; place-items: center; margin-bottom: 1.15rem; box-shadow: var(--shadow-sm);
}
.tech-card .ic svg { width: 28px; height: 28px; color: var(--teal-deep); }
.tech-card h3 { font-size: 1.22rem; color: var(--ink); }
.tech-card p { color: var(--graphite); margin-top: .8rem; font-size: .96rem; }

/* ---------- Model cards ---------- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.model-card {
  display: flex; flex-direction: column;
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.model-media { position: relative; aspect-ratio: 4/3; background: #F1F5F6; overflow: hidden; }
.model-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; transition: transform 700ms var(--ease); }
.model-card:hover .model-media img { transform: scale(1.05); }
.model-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--teal-deep); color: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 8px;
}
.model-body { padding: 1.2rem 1.2rem 1.35rem; }
.model-body h4 { font-size: 1.08rem; }
.model-body h4 .tier { color: var(--green-deep); font-weight: 500; font-style: italic; font-family: var(--f-script); font-size: 1.1em; }
.model-body p { color: var(--grey); font-size: .89rem; margin: .6rem 0 1rem; }

/* ---------- Similar products ---------- */
.sim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.4rem); }
.sim-card {
  display: flex; flex-direction: column;
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sim-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sim-media { display: block; aspect-ratio: 4/3; background: #F1F5F6; overflow: hidden; }
.sim-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform 700ms var(--ease); }
.sim-card:hover .sim-media img { transform: scale(1.05); }
.sim-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.sim-body h4 { font-size: 1rem; }
.sim-body h4 a { color: inherit; transition: color var(--dur) var(--ease); }
.sim-body h4 a:hover { color: var(--teal); }
.sim-body p { color: var(--grey); font-size: .82rem; margin: .5rem 0 .8rem; flex: 1; }

/* ---------- Product order (spec sheet + form) ---------- */
.prod-order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.4rem, 2.6vw, 2.2rem); align-items: start; }
.spec-card {
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  background: var(--card); padding: clamp(1.5rem, 2.8vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.spec-card h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-top: .4rem; }
.spec-list { margin: 1.3rem 0 1.6rem; display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--grey); font-size: .9rem; }
.spec-row .v { color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .app-list { grid-template-columns: repeat(3, 1fr); }
  .prod-list-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wwa-grid { grid-template-columns: 1fr; }
  .stat-strip .grid { grid-template-columns: repeat(2,1fr); row-gap: 1.6rem; }
  .stat-strip .cell:nth-child(2n+1)::before { display: none; }
  .stat-strip .cell:nth-child(n+3) { padding-top: 1.4rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-hub { grid-template-columns: 1fr 1fr; }
  .app-list { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .prod-hero-grid, .prod-order-grid { grid-template-columns: 1fr; }
  .tech-grid, .model-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-hub { grid-template-columns: 1fr; }
  .wwa-copy .pill-list { grid-template-columns: 1fr; }
  .masonry { column-count: 1; }
  .app-list { grid-template-columns: 1fr; }
  .prod-list-grid { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .prod-bullets { grid-template-columns: 1fr; }
}

/* ============================================================
   DIRECTOR CONTACT DETAILS (About)
   The card is full width, so the detail rows can run as a proper
   label/value table instead of stacking into a narrow ribbon.
   ============================================================ */
.dir-contact {
  margin: 1.3rem 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid rgba(26,34,38,.12);
  display: grid; gap: .55rem;
}
.dc-row { display: grid; grid-template-columns: 1fr; gap: .1rem; align-items: start; }
@media (min-width: 560px) {
  .dc-row { grid-template-columns: 168px minmax(0, 1fr); gap: 1rem; }
}
.dc-row dt {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey-soft); line-height: 1.6;
}
.dc-row dt .ic {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.75); color: var(--teal-mid);
}
.dc-row dt .ic svg { width: 14px; height: 14px; }
.dc-row dd {
  margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink);
  font-weight: 500; overflow-wrap: anywhere;
}
.dc-row dd a { color: var(--teal); font-weight: 600; }
.dc-row dd a:hover { color: var(--orange); text-decoration: underline; }

/* ============================================================
   CERTIFICATES (About)
   ============================================================ */
/* start, not stretch: the shorter card ends where its content ends instead
   of trailing empty space under the download button. */
.cert-grid {
  display: grid; gap: clamp(1.3rem, 2.6vw, 2rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-card {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* The two certificates are different shapes (4:3 and 16:9), so a fixed
   frame plus contain keeps both preview panels the same height. */
.cert-media {
  border-radius: 0; background: var(--mist);
  aspect-ratio: 16 / 11; display: grid; place-items: center;
  padding: clamp(.7rem, 1.8vw, 1.2rem);
}
.cert-media img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.cert-body { padding: clamp(1.3rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.cert-tag {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  background: var(--teal-10); color: var(--teal-mid);
  border: 1px solid var(--teal-18); border-radius: 999px;
  font-family: var(--f-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .85rem;
}
.cert-tag.tag-green { background: var(--green-12); color: var(--green-deep); border-color: var(--green-30); }
.cert-tag svg { width: 14px; height: 14px; flex: 0 0 auto; }
.cert-body h3 { font-size: var(--h3); color: var(--ink); margin-top: .8rem; letter-spacing: var(--tr-tight); }
.cert-body > p { color: var(--grey); margin-top: .7rem; font-size: .95rem; line-height: 1.62; }
.cert-meta { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; }
.cert-meta li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .8rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft);
}
.cert-meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-meta b {
  font-family: var(--f-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--grey-soft);
}
.cert-meta span { font-size: .92rem; color: var(--ink); line-height: 1.5; }
.cert-body .btn { margin-top: auto; align-self: flex-start; }
.cert-body .btn { margin-top: 1.5rem; }

/* ============================================================
   HEAD OFFICE + REGISTRATIONS (About)
   Registrations sit in one dense list rather than three sparse
   cards, so neither column ends up mostly whitespace.
   ============================================================ */
/* start, not stretch: neither column is padded out to match the other,
   so no card ends in a block of empty space. */
.office-grid {
  display: grid; gap: clamp(1.2rem, 2.4vw, 1.8rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) { .office-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.office-card, .reg-card {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  background: #fff; padding: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.office-card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; background: var(--teal); color: #fff;
}
.office-card .ic svg { width: 22px; height: 22px; }
.office-lbl, .reg-lbl {
  display: block;
  font-family: var(--f-display); font-weight: 600;
  font-size: .69rem; letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase; color: var(--teal);
}
.office-card .office-lbl { margin-top: .9rem; }
.office-card h3, .reg-card h3 {
  font-size: var(--h3); color: var(--ink); margin-top: .3rem; letter-spacing: var(--tr-tight);
}
.office-card address {
  font-style: normal; color: var(--grey);
  margin-top: .7rem; line-height: 1.7; font-size: .95rem;
}
.office-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.office-links a {
  display: inline-flex; align-items: center; gap: .42rem;
  background: var(--tint); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: .44rem .85rem;
  font-size: .86rem; font-weight: 600; color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.office-links a:hover { background: var(--teal); color: #fff; border-color: transparent; }
.office-links a svg { width: 14px; height: 14px; flex: 0 0 auto; }

.reg-card .reg-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.reg-list li {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .7rem .85rem; border-radius: var(--r-sm);
  background: var(--mist);
}
.reg-list .ic {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: var(--green); color: #fff;
}
.reg-list .ic svg { width: 18px; height: 18px; }
.reg-list .reg-val {
  display: block; margin-top: .1rem;
  font-family: var(--f-num); font-size: 1.02rem; font-weight: 700;
  color: var(--ink); letter-spacing: .01em; overflow-wrap: anywhere;
}
.reg-list .reg-note { display: block; margin-top: .12rem; font-size: .82rem; color: var(--grey); line-height: 1.5; }


.office-facts { list-style: none; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: .7rem; }
.office-facts li { display: flex; align-items: center; gap: .8rem; }
.office-facts .ic {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center; background: var(--tint); color: var(--teal-mid);
}
.office-facts .ic svg { width: 16px; height: 16px; }
.office-facts b { display: block; font-family: var(--f-display); font-size: .94rem; color: var(--ink); margin-top: .06rem; }

/* ============================================================
   CATALOGUE PAGE
   ============================================================ */
.cat-toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: .9rem;
}
.cat-toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; justify-content: space-between; }
.cat-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: .6rem;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 1rem;
}
.cat-search input {
  flex: 1; border: 0; background: none; outline: none;
  font-family: var(--f-body); font-size: .95rem; color: var(--ink); min-width: 0;
}
.cat-search svg { width: 17px; height: 17px; color: var(--grey-soft); flex: 0 0 auto; }
.cat-tools { display: flex; flex-wrap: wrap; gap: .55rem; }
.cat-count { font-size: .86rem; color: var(--grey); align-self: center; white-space: nowrap; }

.cat-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.cat-index a {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .85rem; font-size: .85rem; font-weight: 600; color: var(--graphite);
  background: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat-index a:hover { background: var(--teal); color: #fff; border-color: transparent; }
.cat-index a .n { font-family: var(--f-num); color: var(--grey-soft); font-size: .78rem; }
.cat-index a:hover .n { color: rgba(255,255,255,.7); }

.cat-entries { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); margin-top: clamp(1.8rem, 3.4vw, 2.8rem); }
.cat-entry {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.cat-entry-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem;
  padding: 1.1rem clamp(1.2rem, 2.4vw, 1.9rem);
  background: var(--teal-deep); color: #fff;
}
.cat-entry-num { font-family: var(--f-num); font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--green); }
.cat-entry-head h3 { font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem); color: #fff; letter-spacing: var(--tr-tight); }
.cat-entry-head .cat-entry-link { margin-left: auto; font-size: .84rem; color: rgba(255,255,255,.78); font-weight: 600; }
.cat-entry-head .cat-entry-link:hover { color: var(--green); }
.cat-entry-body {
  display: grid; gap: clamp(1.2rem, 2.6vw, 2.2rem);
  grid-template-columns: 1fr; padding: clamp(1.3rem, 2.6vw, 2rem);
}
@media (min-width: 860px) { .cat-entry-body { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); } }
.cat-entry-media {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--mist); overflow: hidden; align-self: start;
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: .8rem;
}
.cat-entry-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-entry-lede { color: var(--grey); line-height: var(--lh-body); font-size: .97rem; }
.cat-cols { display: grid; gap: 1.4rem; margin-top: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cat-cols { grid-template-columns: 1fr 1fr; } }
.cat-col h4 {
  font-family: var(--f-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft);
}
.cat-feats { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .42rem; }
.cat-feats li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--graphite); line-height: 1.5; }
.cat-feats li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.cat-specs { display: grid; gap: .38rem; margin-top: .75rem; }
.cat-specs .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: .7rem;
  font-size: .89rem; padding-bottom: .38rem; border-bottom: 1px solid var(--line-soft);
}
.cat-specs .row:last-child { border-bottom: 0; }
.cat-specs .k { color: var(--grey-soft); font-weight: 600; }
.cat-specs .v { color: var(--ink); font-weight: 500; }
.cat-entry-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.cat-cover {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--teal-deep), var(--teal-abyss));
  color: #fff; padding: clamp(1.6rem, 3.4vw, 2.8rem);
  display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 820px) { .cat-cover { grid-template-columns: minmax(0, 1fr) auto; } }
.cat-cover h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: var(--tr-tight); }
.cat-cover p { color: rgba(255,255,255,.8); margin-top: .7rem; max-width: 60ch; line-height: 1.65; }
.cat-cover .cover-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.cat-cover .cover-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.cat-cover .cover-facts div b { display: block; font-family: var(--f-num); font-size: 1.6rem; color: var(--green); line-height: 1; }
.cat-cover .cover-facts div span { display: block; margin-top: .28rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.cat-empty { text-align: center; color: var(--grey); padding: 3rem 0; display: none; }
.cat-empty.show { display: block; }

@media print {
  .topbar, .header, .mobile-menu, .social-rail, .catalog-rail, .progress,
  .footer, .cat-toolbar, .page-hero, .cat-index, .cat-entry-cta,
  .zoom-lb, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 0 !important; background: #fff !important; }
  .cat-entry { break-inside: avoid; page-break-inside: avoid; box-shadow: none; border: 1px solid #ccc; margin-bottom: 14px; }
  .cat-entry-head { background: #06343B !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cat-cover { break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
