.ip-section {
  background: radial-gradient(ellipse at 77% 47%, rgba(75, 190, 193, .10), transparent 37%);
}

.ip-layout {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .78fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.ip-copy { min-width: 0; }
.ip-copy .eyebrow { max-width: 650px; margin-bottom: 20px; }
.ip-copy h2 {
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  margin-bottom: 20px;
}
.ip-lede {
  max-width: 680px;
  color: #c4d6dc;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}
.ip-facts {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.ip-facts > div {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ip-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.ip-facts span, .ip-document figcaption span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.ip-facts strong {
  display: block;
  color: var(--text);
  font-size: clamp(.82rem, 1vw, .98rem);
  line-height: 1.4;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.ip-facts i { color: var(--cyan); font-style: normal; }
.ip-facts > .ip-page-count {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 11px;
}
.ip-facts > .ip-page-count span { margin: 0; }
.ip-facts > .ip-page-count strong { color: var(--mint); font-size: .9rem; text-align: right; }
.ip-note {
  max-width: 690px;
  margin: 17px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: #91a7ac;
}
.ip-document {
  margin: 0;
  width: 100%;
  justify-self: center;
}
.ip-document-frame {
  position: relative;
  max-height: min(64vh, 780px);
  padding: 9px;
  border: 1px solid rgba(98, 215, 211, .48);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(98, 215, 211, .10), rgba(7, 17, 19, .8));
  box-shadow: 0 0 42px rgba(98, 215, 211, .10), 0 18px 55px rgba(0, 0, 0, .32);
}
.ip-document img {
  display: block;
  width: 100%;
  height: min(62vh, 760px);
  object-fit: contain;
  object-position: center;
  background: #e8e5dc;
}
.ip-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}
.ip-zoom-trigger:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.ip-zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #eafafa;
  border: 1px solid rgba(98, 215, 211, .45);
  border-radius: 3px;
  background: rgba(4, 17, 21, .84);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  pointer-events: none;
}
.ip-zoom-hint svg { width: 15px; height: 15px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; }
.ip-lightbox {
  position: fixed;
  width: min(94vw, 1440px);
  max-width: none;
  height: min(96dvh, 1100px);
  max-height: none;
  margin: auto;
  padding: 24px 28px 15px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(98, 215, 211, .58);
  border-radius: 5px;
  background: linear-gradient(150deg, #0b1b20, #03090c 72%);
  box-shadow: 0 0 55px rgba(69, 217, 215, .14);
}
.ip-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ip-lightbox::backdrop { background: rgba(1, 7, 10, .94); backdrop-filter: blur(8px); }
.ip-lightbox > img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(96dvh - 82px); object-fit: contain; background: #e8e5dc; }
.ip-lightbox > p { max-width: 100%; margin: 10px 0 0; color: #a9bdc7; font-size: 10px; line-height: 1.4; letter-spacing: .06em; text-align: center; }
.ip-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--mint);
  border: 1px solid rgba(98, 215, 211, .5);
  border-radius: 50%;
  background: rgba(3, 12, 15, .9);
  font: 300 27px/1 var(--sans);
  cursor: pointer;
}
.ip-lightbox-close:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.ip-document figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.ip-document figcaption span { flex: 0 0 auto; margin: 0; }
.ip-document figcaption b { font-weight: 500; text-align: right; }
.ip-section footer { z-index: 1; }

/* Keep the zoom affordance beside the certificate, never over its contents. */
.ip-document > .ip-zoom-hint {
  position: static;
  width: fit-content;
  margin: 10px 0 0 auto;
  padding: 7px 9px;
  pointer-events: none;
}
#intellectual-property.is-active .ip-document-frame {
  animation: ip-document-fade .65s ease-out both;
}
@keyframes ip-document-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #intellectual-property.is-active .ip-document-frame { animation: none; }
}

@media (max-height: 820px) and (min-width: 801px) {
  .ip-layout { gap: 4vw; grid-template-columns: minmax(0, 1.18fr) minmax(270px, .7fr); }
  .ip-copy h2 { font-size: clamp(2.8rem, 5vw, 4.9rem); margin-bottom: 14px; }
  .ip-copy .eyebrow { margin-bottom: 14px; }
  .ip-lede { font-size: .96rem; }
  .ip-facts { margin-top: 16px; }
  .ip-facts > div { padding: 10px 0; }
  .ip-note { margin-top: 12px; }
  .ip-document-frame { max-height: 61vh; }
  .ip-document img { height: 59vh; }
}

@media (max-width: 800px) {
  .ip-section { min-height: 100vh; height: auto; max-height: none; overflow: visible; padding-bottom: 82px; }
  .ip-layout { display: block; }
  .ip-copy .eyebrow { max-width: 100%; line-height: 1.6; }
  .ip-copy h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .ip-lede { font-size: 1rem; }
  .ip-facts { grid-template-columns: 1fr; margin-top: 22px; }
  .ip-facts > div, .ip-facts > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .ip-facts > div:last-child { border-bottom: 0; }
  .ip-document { margin-top: 30px; }
  .ip-document-frame { max-height: none; padding: 6px; }
  .ip-document img { height: auto; max-height: 72vh; }
  .ip-document figcaption { display: block; }
  .ip-document figcaption b { display: block; margin-top: 5px; text-align: left; }
  .ip-document > .ip-zoom-hint { margin-top: 8px; margin-right: 2px; padding: 7px 8px; font-size: 8px; }
  .ip-lightbox { width: 100vw; height: 100dvh; padding: 56px 10px 14px; border: 0; border-radius: 0; }
  .ip-lightbox > img { max-width: 100%; max-height: calc(100dvh - 96px); }
  .ip-lightbox-close { top: 9px; right: 10px; }
  .ip-section footer { position: relative; left: auto; right: auto; bottom: auto; margin-top: 28px; }
}
