/* ============================================================
   NOVI MARINE · CUSTOM PROJECTS — v2
   Concept: the annotated build sheet. Capabilities are presented the
   way a yard presents a build: callout markers on a real delivered
   vessel (side elevation, like a technical drawing), not an abstract
   card grid. Imagery leads every section. Same site tokens throughout:
   navy #031d30/#051f30, cyan #00c6ff, Titillium Web + Inter, 1280px
   shell, registration-mark corners, square imagery (styleguide §5).
   ============================================================ */

:root {
  --nmcp-ink:    #031d30;
  --nmcp-navy:   #051f30;
  --nmcp-body:   #5a7080;
  --nmcp-muted:  #8fa5b5;
  --nmcp-line:   #e8edf2;
  --nmcp-accent: #0088cc;
  --nmcp-accent2:#00c6ff;
  --nmcp-band:   #f6f8fa;
  --nmcp-ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- shared: shell + eyebrow ---------- */
.nmcp-shell { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 48px; }

.nmcp-hero-cover .nm-eyebrow, .nmcp-hybrid .nm-eyebrow {
  display: inline-flex; align-items: center; color: var(--nmcp-accent2);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600;
  font-family: 'Titillium Web', sans-serif; margin: 0 0 18px;
}

/* Match the homepage eyebrow-to-title rhythm on selected non-application heroes. */
.page-id-169 .nmcp-hero-cover .nm-eyebrow,
.page-id-417 .nmcp-hero-cover .nm-eyebrow,
.page-id-78 .nmcp-hero-cover .nm-eyebrow,
.page-id-252 .nmcp-hero-cover .nm-eyebrow,
.page-id-115 .nmcp-hero-cover .nm-eyebrow,
.page-id-41 .nmcp-hero-cover .nm-eyebrow,
.page-id-204 .nmcp-hero-cover .nm-eyebrow,
.page-id-117 .nmcp-hero-cover .nm-eyebrow {
  margin-bottom: 16px !important;
}
.nmcp-white .nm-eyebrow, .nmcp-light .nm-eyebrow {
  display: inline-flex; align-items: center; color: var(--nmcp-accent);
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600;
  font-family: 'Titillium Web', sans-serif; margin: 0 0 18px;
}
.nmcp-hero-cover .nm-pulse-dot, .nmcp-hybrid .nm-pulse-dot,
.nmcp-white .nm-pulse-dot, .nmcp-light .nm-pulse-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  border-radius: 50%; background: var(--nmcp-accent2); position: relative;
}
.nmcp-hero-cover .nm-pulse-dot::after, .nmcp-hybrid .nm-pulse-dot::after,
.nmcp-white .nm-pulse-dot::after, .nmcp-light .nm-pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,198,255,0.6); animation: nmcp-pulse 1.8s infinite ease-out;
}
@keyframes nmcp-pulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(2.5); opacity: 0; } 100% { opacity: 0; } }

/* ---------- hero: full-bleed cover photo ---------- */
.nmcp-hero-cover {
  position: relative;
  min-height: 640px !important;
  display: flex; align-items: flex-end !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
  overflow: hidden;
}
.nmcp-hero-cover .wp-block-cover__image-background {
  object-fit: cover;
}
/* navy wash: strong left-to-right + bottom anchor so type always reads */
.nmcp-hero-cover .wp-block-cover__background {
  background:
    linear-gradient(0deg, rgba(3,20,35,0.92) 0%, rgba(3,20,35,0.25) 45%, rgba(3,20,35,0.35) 100%),
    linear-gradient(90deg, rgba(3,20,35,0.85) 0%, rgba(3,20,35,0.35) 55%, rgba(3,20,35,0.15) 100%) !important;
  opacity: 1 !important;
}
.nmcp-hero-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 170px 48px 64px;
}
.nmcp-hero-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(2.6rem, 5.5vw, 4rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.0 !important;
  letter-spacing: -0.015em;
  max-width: 720px;
  margin: 0 0 18px !important;
}
.nmcp-hero-deck {
  color: rgba(255,255,255,0.72) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  max-width: 560px;
  margin: 0 0 28px !important;
}
/* proof chips */
.nmcp-chiprow { display: flex !important; flex-wrap: wrap; gap: 10px; }
.nmcp-chip {
  display: inline-flex; align-items: center;
  padding: 8px 14px !important;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(3,20,35,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 11.5px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.10em;
  margin: 0 !important;
}
.nmcp-chip::before {
  content: "";
  display: inline-block; width: 6px; height: 6px; margin-right: 9px;
  background: var(--nmcp-accent2);
}

/* ---------- section scaffolding ---------- */
.nmcp-white {
  background: #ffffff;
  padding: 96px 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nmcp-light {
  background: var(--nmcp-band);
  padding: 96px 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
}
.nmcp-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: var(--nmcp-ink) !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}
.nmcp-white p:not(.nm-eyebrow):not(.nmcp-chip),
.nmcp-light p:not(.nm-eyebrow) {
  color: var(--nmcp-body);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.nmcp-lede { max-width: 700px; }

/* ============================================================
   MISSION-SPECIFIC — intro split + capability card grid
   Copy sits beside the delivered-build photo; below, the six custom
   areas as a 3×2 grid of instrument-panel cards: hairline border,
   square corners, a machined icon chip, and a cyan reveal on hover.
   ============================================================ */
.nmcp-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 72px;
  align-items: center;
}
.nmcp-intro-media { position: relative; }
.nmcp-intro-media figure, .nmcp-intro-media .wp-block-image { margin: 0 !important; }
.nmcp-intro-media img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  box-shadow: 0 40px 90px rgba(0,40,75,0.18);
}
.nmcp-intro-media figure::before {
  content: "";
  position: absolute; top: 14px; left: 14px;
  width: 22px; height: 22px;
  border-top: 1.5px solid rgba(255,255,255,0.9);
  border-left: 1.5px solid rgba(255,255,255,0.9);
  z-index: 1; pointer-events: none;
}
.nmcp-intro-media figure::after {
  content: "";
  position: absolute; bottom: 14px; right: 14px;
  width: 22px; height: 22px;
  border-bottom: 1.5px solid rgba(255,255,255,0.9);
  border-right: 1.5px solid rgba(255,255,255,0.9);
  z-index: 1; pointer-events: none;
}

/* the card grid */
.nmcp-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px !important;
  counter-reset: nmcp-card;
}
.nmcp-card {
  counter-increment: nmcp-card;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--nmcp-line);
  padding: 30px 28px 32px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s var(--nmcp-ease), transform 0.35s var(--nmcp-ease);
}
/* index number, quiet, top-right — panel labelling */
.nmcp-card::after {
  content: counter(nmcp-card, decimal-leading-zero);
  position: absolute; top: 22px; right: 24px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nmcp-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
/* cyan reveal: a hairline that draws across the top on hover */
.nmcp-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--nmcp-accent2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--nmcp-ease);
}
.nmcp-card:hover {
  border-color: rgba(0,136,204,0.45);
  box-shadow: 0 24px 50px rgba(0,40,75,0.12);
  transform: translateY(-4px);
}
.nmcp-card:hover::before { transform: scaleX(1); }
.nmcp-card:hover::after { color: var(--nmcp-accent); }
/* machined icon chip */
.nmcp-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--nmcp-line);
  color: var(--nmcp-accent);
  margin-bottom: 22px;
  transition: all 0.3s ease;
}
.nmcp-card__icon svg { width: 26px; height: 26px; display: block; }
.nmcp-card:hover .nmcp-card__icon {
  background: var(--nmcp-navy);
  border-color: var(--nmcp-navy);
  color: var(--nmcp-accent2);
}
.nmcp-card h3 {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.12rem !important; font-weight: 700 !important;
  color: var(--nmcp-ink) !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}
.nmcp-card p {
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ---------- workshop: copy + full-width triptych ---------- */
.nmcp-duo {
  display: grid !important;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 52px;
}
/* the eyebrow sits above the heading in the left column; without an offset
   the copy column starts higher than the H2 and reads misaligned. Pad the
   copy down so its first line sits level with the heading's first line. */
.nmcp-duo-copy { padding-top: 46px; }
.nmcp-duo p { margin: 0 0 14px !important; }
.nmcp-triptych {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.nmcp-triptych figure, .nmcp-triptych .wp-block-image { margin: 0 !important; position: relative; }
.nmcp-triptych img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  box-shadow: 0 30px 70px rgba(0,40,75,0.14);
}
/* registration corner on each frame */
.nmcp-triptych figure::before {
  content: "";
  position: absolute; top: 12px; left: 12px;
  width: 18px; height: 18px;
  border-top: 1.5px solid rgba(255,255,255,0.9);
  border-left: 1.5px solid rgba(255,255,255,0.9);
  z-index: 1; pointer-events: none;
}
/* editable caption styled as a station label chip */
.nmcp-triptych figcaption {
  position: absolute; left: 0; bottom: 0;
  margin: 0 !important;
  padding: 9px 14px;
  background: rgba(3,20,35,0.88);
  color: #ffffff !important;
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.nmcp-triptych figcaption::before {
  content: "";
  display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  background: var(--nmcp-accent2);
}

/* ---------- process: ruled columns, like a build schedule ---------- */
.nmcp-steps {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 52px;
  counter-reset: nmcp-step;
}
.nmcp-step {
  counter-increment: nmcp-step;
  border-left: 1px solid var(--nmcp-line);
  padding: 6px 28px 10px 24px;
  transition: border-color 0.3s ease;
}
.nmcp-step::before {
  content: counter(nmcp-step, decimal-leading-zero);
  display: block;
  font-family: 'Titillium Web', sans-serif;
  font-size: 2rem; font-weight: 800;
  line-height: 1;
  color: var(--nmcp-accent2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.nmcp-step:hover { border-left-color: var(--nmcp-accent2); }
.nmcp-step h3 {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.02rem !important; font-weight: 700 !important;
  color: var(--nmcp-ink) !important;
  margin: 0 0 8px !important;
}
.nmcp-step p { font-size: 0.9rem !important; line-height: 1.6 !important; margin: 0 !important; }

/* ---------- hybrid feature band (navy) ---------- */
.nmcp-hybrid {
  background: var(--nmcp-navy);
  color: #ffffff;
  padding: 100px 0 104px !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw;
  position: relative; overflow: hidden;
}
.nmcp-hybrid::before {
  content: "";
  position: absolute; top: -160px; right: -120px;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,136,204,0.18), transparent 68%);
  pointer-events: none;
}
.nmcp-hybrid-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 500px) 1fr;
  gap: 72px;
  align-items: start;
}
.nmcp-hybrid-title {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}
.nmcp-hybrid p:not(.nm-eyebrow) {
  color: rgba(255,255,255,0.62);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 16px;
}
.nmcp-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin: 34px 0 0 !important;
}
.nmcp-stat { padding: 20px 18px 22px; }
.nmcp-stat + .nmcp-stat { border-left: 1px solid rgba(255,255,255,0.14); }
.nmcp-stat h3 {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 1.5rem !important; font-weight: 800 !important;
  color: var(--nmcp-accent2) !important;
  margin: 0 0 4px !important;
  font-variant-numeric: tabular-nums;
}
.nmcp-stat p {
  font-size: 0.82rem !important;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: 'Titillium Web', sans-serif;
  color: rgba(255,255,255,0.5) !important;
  margin: 0 !important;
}
.nmcp-hybrid-media { display: flex; flex-direction: column; gap: 20px; }
.nmcp-hybrid-media figure, .nmcp-hybrid-media .wp-block-image { margin: 0 !important; }
.nmcp-hybrid-media img {
  width: 100%; height: auto; display: block;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.nmcp-hybrid-lead { position: relative; }
.nmcp-hybrid-lead::before {
  content: "";
  position: absolute; top: 12px; left: 12px;
  width: 20px; height: 20px;
  border-top: 1.5px solid rgba(0,198,255,0.85);
  border-left: 1.5px solid rgba(0,198,255,0.85);
  z-index: 1; pointer-events: none;
}
.nmcp-hybrid-pair {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nmcp-hybrid-pair img { aspect-ratio: 3 / 2; object-fit: cover; }
.nmcp-case {
  margin-top: 34px !important;
  padding: 24px 26px;
  border-left: 2px solid var(--nmcp-accent2);
  background: rgba(255,255,255,0.04);
}
.nmcp-case h3 {
  font-family: 'Titillium Web', sans-serif !important;
  font-size: 12px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--nmcp-accent2) !important;
  margin: 0 0 10px !important;
}
.nmcp-case p { font-size: 0.95rem !important; margin: 0 !important; color: rgba(255,255,255,0.72) !important; }

/* ---------- closing: project enquiry form ----------
   Mirrors the contact page layout exactly (same card, same form styling
   from contact.css), with the Direct-contact card on the LEFT. */
.nmcp-form-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: start;
}

/* select: same material as .nm-field inputs (contact.css) + chevron */
.nmcp-select {
  width: 100%;
  padding: 13px 42px 13px 16px;
  border: 1px solid var(--nmcp-line);
  border-radius: 10px;
  background-color: #f8fafc;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--nmcp-ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%235a7080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}
.nmcp-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--nmcp-accent);
  box-shadow: 0 0 0 3px rgba(0,136,204,0.12);
}

/* on small screens the card follows the form instead of leading the page */

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nmcp-intro { grid-template-columns: 1fr; gap: 40px; }
  .nmcp-cards { grid-template-columns: repeat(2, 1fr); }
  .nmcp-form-grid { grid-template-columns: 1fr; gap: 44px; }
  .nmcp-duo { grid-template-columns: 1fr; gap: 28px; }
  .nmcp-duo-copy { padding-top: 0; }
  .nmcp-steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .nmcp-hybrid-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .nmcp-shell { padding-left: 24px; padding-right: 24px; }
  .nmcp-hero-cover { min-height: 560px !important; }
  .nmcp-hero-cover .wp-block-cover__inner-container { padding: 150px 24px 48px; }
  .nmcp-intro-media img { aspect-ratio: 16 / 10; }
  .nmcp-cards { grid-template-columns: 1fr; gap: 18px; }
  .nmcp-triptych { grid-template-columns: 1fr; }
  .nmcp-triptych img { aspect-ratio: 16 / 10; }
  .nmcp-steps { grid-template-columns: 1fr; row-gap: 36px; }
  .nmcp-step { padding: 0 0 0 24px; }
  .nmcp-step::before { font-size: 1.6rem; margin-bottom: 10px; }
  .nmcp-stats { grid-template-columns: 1fr; }
  .nmcp-stat + .nmcp-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); }
  .nmcp-hybrid-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-pulse-dot::after { animation: none !important; }
  .nmcp-card, .nmcp-card::before, .nmcp-card::after, .nmcp-card__icon { transition: none !important; }
  .nmcp-card:hover { transform: none; }
}
