/* Editorial depth from the three bars of the INEF mark.
   Decorative layers remain static; content and controls are always above them. */
.hero {
  background: #0c1d2c;
}
.hero::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 44%, rgb(65 126 139 / 30%), transparent 62%),
    linear-gradient(90deg, rgb(68 115 130 / 8%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(68 115 130 / 7%) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 77%);
}
.hero::after {
  z-index: -1;
  inset: 24px 0 0;
  width: auto;
  height: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 780' fill='none'%3E%3Cg stroke='%23b67d40' stroke-opacity='.38' stroke-width='1'%3E%3Cpath d='M1340 46h22m-11-11v22M1340 660h22m-11-11v22M74 660h22m-11-11v22'/%3E%3Cpath d='M1056 92h244M1088 113h212M1120 134h180'/%3E%3C/g%3E%3Cg stroke='%23589bab' stroke-opacity='.18'%3E%3Cpath d='M700 684h630M732 704h598M764 724h566M1328 170v460'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.hero .tech-lines { opacity: .25; }
.hero-preview {
  background: linear-gradient(145deg, #173448, #102737);
  border-color: #456375;
  box-shadow: 0 22px 60px rgb(0 0 0 / 15%), inset 0 0 0 5px rgb(255 255 255 / 1.4%);
}
.hero-preview::before {
  width: 45px;
  height: 2px;
  background: var(--bronze);
  box-shadow: 52px 0 0 rgb(182 125 64 / 68%), 104px 0 0 rgb(182 125 64 / 34%);
}
.hero-preview::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  right: 10px;
  bottom: 10px;
  border-right: 1px solid #5b7b8b;
  border-bottom: 1px solid #5b7b8b;
  pointer-events: none;
}
.preview-route .dot { border-radius: 4px; }

/* Alternating paper surfaces give the long page an editorial rhythm. */
.section.alt {
  background-color: #fff;
  background-image: linear-gradient(90deg, transparent calc(100% - 1px), rgb(41 86 107 / 3.5%) 1px);
  background-size: max(260px, 25vw) 100%;
}
.page-hero {
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(110deg, #fff 55%, #eef4f7);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 56%;
  background:
    linear-gradient(0deg, transparent 0 28%, rgb(182 125 64 / 8%) 28% calc(28% + 1px), transparent calc(28% + 1px) 46%, rgb(182 125 64 / 8%) 46% calc(46% + 1px), transparent calc(46% + 1px) 64%, rgb(182 125 64 / 8%) 64% calc(64% + 1px), transparent calc(64% + 1px)),
    linear-gradient(90deg, rgb(41 86 107 / 4%) 1px, transparent 1px);
  background-size: auto, 72px 100%;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.cta-wide {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #0c1d2c 35%, #153748);
}
.cta-wide::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--brand-bars);
  background-size: auto 80%;
  background-position: right 28px center;
  background-repeat: no-repeat;
  opacity: .13;
  pointer-events: none;
}

/* Physical editorial scenes extend the identity beyond abstract decoration. */
.brand-figure {
  margin: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7e2e9;
  border-radius: 12px;
  background: #eef3f5;
}
.brand-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1);
  transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}
.brand-figure > picture { display: block; overflow: hidden; }
.brand-figure-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 17px;
  border-top: 1px solid #d7e2e9;
  background: #f5f8fa;
  color: #496475;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}
.brand-figure-caption::before {
  content: "";
  flex: none;
  width: 14px;
  height: 18.585px;
  margin-top: 1px;
  background: var(--bronze);
  mask: var(--brand-bars) center / contain no-repeat;
}
.media-copy { min-width: 0; }
.media-copy > :last-child { margin-bottom: 0; }
.focus-card.media-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 0;
  padding: 0;
  align-items: center;
  background: linear-gradient(125deg, #0c1d2c, #143244);
}
.media-focus > .media-copy { padding: clamp(28px, 3.6vw, 46px); }
.media-focus .actions { margin-top: 26px; }
.media-focus > .brand-figure {
  width: auto;
  margin: 22px 22px 22px 0;
  align-self: center;
  border-color: #3b596a;
  background: #153244;
}
.media-focus .brand-figure-caption {
  background: #153244;
  color: #c0d2dd;
  border-color: #3b596a;
}
.media-focus .btn { max-width: 100%; }
.choice-card.media-choice {
  padding: 0;
  overflow: hidden;
}
.split:has(> .media-choice) { align-items: center; }
.media-choice > .brand-figure {
  border: 0;
  border-radius: 0;
  flex: none;
}
.media-choice > .media-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}
.media-choice .media-copy > .btn { margin-top: 9px; }
.media-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.media-intro > .media-copy { display: grid; gap: 18px; }
.media-intro .info-panel { margin: 0; }

/* Native details keep the contracting journey usable without custom controls. */
.steps.process-explorer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.process-explorer > .step {
  padding: 0;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.process-explorer > .step::before { content: none; }
.process-explorer > .step:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: 21px;
  left: 43px;
  right: -18px;
  width: auto;
  height: 1px;
  background: #cbdbe4;
  pointer-events: none;
}
.process-explorer details {
  position: relative;
  border: 0;
  border-bottom: 2px solid #d6e2e9;
  transition: border-color 180ms ease;
}
.process-explorer details[open] { border-bottom-color: var(--bronze); }
.process-explorer summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 23px;
  grid-template-rows: 43px auto;
  gap: 20px 10px;
  padding: 0 5px 22px 0;
  min-height: 187px;
  border-radius: 4px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.process-explorer summary::-webkit-details-marker { display: none; }
.process-explorer summary::marker { content: ""; }
.process-number {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: 43px;
  height: 43px;
  border: 1px solid #a9c2d1;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.process-title {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}
.process-title strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 9px;
}
.process-label {
  display: block;
  color: #526877;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
}
.process-toggle {
  display: grid;
  place-items: center;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: 23px;
  height: 23px;
  background: var(--bg);
  color: #52758a;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
  transition: transform 200ms ease, color 200ms ease;
}
.process-explorer details[open] .process-number {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.process-explorer details[open] .process-toggle { transform: rotate(45deg); color: #8b5b2c; }
.process-body { padding: 0 5px 22px 0; }
.process-explorer details[open] .process-body { animation: process-reveal 280ms ease-out; }
@keyframes process-reveal {
  from { opacity: .35; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.process-body > p {
  margin: 0;
  padding: 14px 15px;
  background: #fff;
  border-left: 2px solid #dfb58a;
  color: #3f5b6c;
  font-size: 11px;
  line-height: 1.9;
}
.process-explorer + .process-note { margin-top: 25px; }

@media (hover: hover) and (pointer: fine) {
  .brand-figure:hover .brand-image,
  .media-focus:focus-within .brand-image,
  .media-choice:focus-within .brand-image { transform: scale(1.025); }
  .process-explorer summary:hover .process-number { border-color: var(--primary); background: #dfeaf0; color: var(--primary); }
  .process-explorer details[open] summary:hover .process-number { background: var(--primary-dark); color: white; }
}

@media (max-width: 1000px) {
  .media-focus > .media-copy { padding: 29px; }
  .media-focus > .brand-figure { margin: 18px 18px 18px 0; }
  .media-intro { gap: 22px; }
  .steps.process-explorer { gap: 13px; }
  .process-explorer > .step:not(:last-child)::after { right: -13px; }
  .process-title strong { font-size: 13px; }
  .process-explorer summary { gap: 17px 5px; min-height: 190px; }
}

@media (max-width: 900px) {
  .hero::before { mask-image: linear-gradient(135deg, transparent 10%, #000 90%); }
  .hero::after { opacity: .6; background-position: right center; background-size: auto 100%; }
  .steps.process-explorer { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .process-explorer > .step:not(:last-child)::after { top: 64px; bottom: -21px; left: 21px; right: auto; height: auto; width: 1px; }
  .process-explorer details { border-bottom-width: 1px; }
  .process-explorer summary {
    grid-template-columns: 43px minmax(0, 1fr) 25px;
    grid-template-rows: auto;
    align-items: start;
    gap: 17px;
    min-height: 0;
    padding: 21px 0;
  }
  .process-title { grid-column: 2; grid-row: 1; align-self: center; }
  .process-title strong { font-size: 14px; margin-bottom: 5px; }
  .process-label { font-size: 12px; }
  .process-toggle { align-self: start; margin-top: 9px; }
  .process-body { padding: 0 0 22px 60px; }
  .process-body > p { font-size: 12px; padding: 13px 16px; }
}

@media (max-width: 760px) {
  .focus-card.media-focus { grid-template-columns: 1fr; }
  .media-focus > .media-copy { padding: 31px 28px; }
  .media-focus > .brand-figure { margin: 0 24px 24px; }
  .media-choice > .media-copy { padding: 28px; }
  .media-intro { grid-template-columns: 1fr; gap: 24px; }
  .media-intro > .brand-figure { max-width: 580px; }
}

@media (max-width: 640px) {
  .hero::before { background-size: auto, 64px 64px, 64px 64px; }
  .hero::after { inset-block-start: 8px; opacity: .45; }
  .hero-preview::before { left: 22px; width: 31px; box-shadow: 39px 0 0 rgb(182 125 64 / 68%), 78px 0 0 rgb(182 125 64 / 34%); }
  .section.alt { background-image: none; }
  .page-hero::before { inset-inline-start: 65%; opacity: .6; }
  .brand-figure-caption { font-size: 13px; padding: 12px 14px; }
  .media-focus > .media-copy { padding: 28px 26px; }
  .media-focus > .brand-figure { margin-inline: 20px; margin-bottom: 20px; }
  .media-focus .actions { margin-top: 23px; }
  .process-explorer summary { gap: 13px; }
  .process-body { padding-left: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .process-explorer details[open] .process-body { animation: none; }
  .brand-image, .process-number, .process-toggle, .process-explorer details { transition: none !important; }
  .brand-figure:hover .brand-image,
  .media-focus:focus-within .brand-image,
  .media-choice:focus-within .brand-image { transform: none; }
}

@media print {
  .hero::before, .hero::after, .page-hero::before, .cta-wide::before { display: none; }
  .section.alt, .page-hero, .cta-wide, .focus-card.media-focus { background: white; }
  .brand-figure { break-inside: avoid; }
  .brand-figure-caption, .media-focus .brand-figure-caption { color: #222; background: white; }
  .process-explorer details { break-inside: avoid; }
  .process-explorer details > .process-body { display: block !important; }
}
