/* ============================================================================
   values-story.css — Values page, eugeny.com
   ----------------------------------------------------------------------------
   Implements the approved Values proposal on top of the Common Ground system:
     1  illustrated hero with the sign-off motto above the plate
     2  values ledger: intro column beside four badge columns with hairlines
     3  pale blue band holding the three separated layers
     4  mission: copy beside a full bleed plate, cream plaque and edge list
     5  belief: typographic band, coral rule, sign-off
     6  denim close with the existing statement and model crosslink
   Flat colour only, one coral accent, no gradients. Scoped to body.ip-sovereignty.
   ========================================================================== */

body.ip-sovereignty {
  --vs-display: var(--ch-display, "Fraunces", "Iowan Old Style", Georgia, serif);
  --vs-ink: var(--ch-ink, #1b2f5c);
  --vs-body: var(--ch-body, #3d4a63);
  --vs-ivory: var(--ch-ivory-2, #fdf9ee);
  --vs-line: var(--ch-line, rgba(35, 55, 90, .18));
  --vs-line-2: var(--ch-line-2, rgba(35, 55, 90, .12));
  --vs-coral: var(--ch-orange, #e3572b);
  --vs-gutter: var(--ch-gutter, clamp(20px, 5vw, 88px));
  --vs-edge: var(--ch-edge, clamp(20px, 6vw, 112px));
}

/* ----------------------------------------------------------------------------
   1. Hero: copy beside the illustrated desk, motto above the plate
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-hero {
  display: grid;
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  align-items: stretch;
  gap: 0;
}

body.ip-sovereignty .vs-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 2.4vw, 34px) clamp(34px, 4.4vw, 60px) var(--vs-edge);
  min-width: 0;
}

body.ip-sovereignty .vs-hero-copy h1 {
  margin-top: clamp(12px, 1.4vw, 18px);
  max-width: 15ch;
}

body.ip-sovereignty .vs-hero-copy .ip-lede {
  margin-top: clamp(16px, 1.8vw, 24px);
  max-width: 34ch;
}

body.ip-sovereignty .vs-hero-plate {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: clamp(360px, 40vw, 540px);
  background: #e8e4d2;
}

body.ip-sovereignty .vs-hero-plate > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}

/* The proposal's sign-off, set above the plate on the right. */
body.ip-sovereignty .vs-motto {
  position: absolute;
  top: clamp(16px, 2.4vw, 30px);
  right: clamp(18px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  max-width: 16ch;
  margin: 0;
  padding: 10px 12px;
  background: #fffdf6;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--vs-ink);
}

body.ip-sovereignty .vs-motto .ch-ic {
  width: 30px;
  height: 10px;
  color: var(--vs-coral);
  filter: none;
}

/* ----------------------------------------------------------------------------
   2. Values ledger
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-values {
  padding-top: clamp(34px, 4vw, 58px);
  padding-bottom: clamp(38px, 4.6vw, 68px);
}

body.ip-sovereignty .vs-values-grid {
  display: grid;
  grid-template-columns: minmax(0, .27fr) minmax(0, .73fr);
  gap: clamp(22px, 3.4vw, 54px);
  align-items: start;
}

body.ip-sovereignty .vs-values-intro h2 {
  margin-top: 10px;
  font-family: var(--vs-display);
  font-size: clamp(1.95rem, 3.3vw, 2.85rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--vs-ink);
  max-width: 12ch;
}

body.ip-sovereignty .vs-lede {
  margin-top: clamp(14px, 1.7vw, 22px);
  font-size: .98rem;
  line-height: 1.62;
  color: var(--vs-body);
  max-width: 30ch;
}

body.ip-sovereignty .vs-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: clamp(26px, 2.9vw, 40px);
}

body.ip-sovereignty .vs-cell {
  min-width: 0;
  padding-inline: clamp(12px, 1.5vw, 20px);
  border-left: 1px solid var(--vs-line);
}

body.ip-sovereignty .vs-cell:nth-child(4n + 1) {
  border-left: 0;
  padding-left: 0;
}

body.ip-sovereignty .vs-cell:nth-child(4n) { padding-right: 0; }

body.ip-sovereignty .vs-cell:nth-child(7) { grid-column: span 2; }

body.ip-sovereignty .vs-badge {
  display: grid;
  place-items: center;
  width: clamp(46px, 4.2vw, 58px);
  height: clamp(46px, 4.2vw, 58px);
  margin-bottom: clamp(11px, 1.4vw, 15px);
  border-radius: 50%;
  background: #dbe7f3;
  color: #2b3f60;
}

body.ip-sovereignty .vs-badge--blush { background: #f8ddd1; color: #a4411f; }

body.ip-sovereignty .vs-badge .ch-ic {
  width: clamp(21px, 1.9vw, 26px);
  height: clamp(21px, 1.9vw, 26px);
  stroke-width: 1.5;
}

body.ip-sovereignty .vs-cell h3 {
  font-family: var(--vs-display);
  font-size: clamp(1.08rem, 1.34vw, 1.24rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.008em;
  color: var(--vs-ink);
  max-width: 12ch;
}

body.ip-sovereignty .vs-cell .vs-claim {
  margin-top: 7px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2f4568;
}

body.ip-sovereignty .vs-cell p {
  margin-top: 7px;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--vs-body);
}

body.ip-sovereignty .vs-cell p + p { margin-top: .55em; }

body.ip-sovereignty .vs-cell a {
  color: var(--vs-ink);
  text-underline-offset: .2em;
}

body.ip-sovereignty .vs-cell a:hover { color: #9a3b1e; }

/* ----------------------------------------------------------------------------
   3. Three layers on the pale blue band
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-band {
  background: var(--ch-band, #e7eef6);
  padding: clamp(32px, 3.8vw, 56px) 0;
}

body.ip-sovereignty .vs-band-grid {
  display: grid;
  grid-template-columns: minmax(0, .3fr) minmax(0, .7fr);
  gap: clamp(22px, 3.4vw, 54px);
  align-items: start;
}

body.ip-sovereignty .vs-band-intro h2 {
  margin-top: 10px;
  font-family: var(--vs-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -.013em;
  color: var(--vs-ink);
  max-width: 16ch;
}

body.ip-sovereignty .vs-band-intro .vs-stand {
  margin-top: 12px;
  font-size: .95rem;
  line-height: 1.6;
  color: #22364e;
  max-width: 34ch;
}

body.ip-sovereignty .vs-layers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

body.ip-sovereignty .vs-layer {
  min-width: 0;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--vs-ivory);
  border: 1px solid rgba(35, 55, 90, .1);
  border-radius: 12px;
}

body.ip-sovereignty .vs-badge--flat {
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  background: none;
  border-radius: 0;
  color: #2b3f60;
}

body.ip-sovereignty .vs-badge--flat .ch-ic { width: 22px; height: 22px; stroke-width: 1.6; }

body.ip-sovereignty .vs-layer h3 {
  font-family: var(--vs-display);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.008em;
  color: #1b2f5c;
}

body.ip-sovereignty .vs-layer p {
  margin-top: 6px;
  font-size: .86rem;
  line-height: 1.52;
  color: #22364e;
}

/* ----------------------------------------------------------------------------
   4. Mission: copy beside the full bleed plate
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-mission {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
  align-items: stretch;
  background: #f4efe0;
}

body.ip-sovereignty .vs-mission-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.4vw, 64px) clamp(22px, 2.6vw, 38px) clamp(34px, 4.4vw, 64px) var(--vs-edge);
  min-width: 0;
}

body.ip-sovereignty .vs-mission-copy h2 {
  margin-top: 10px;
  font-family: var(--vs-display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--vs-ink);
  max-width: 14ch;
}

body.ip-sovereignty .vs-mission-copy > p:not(.ch-kicker) {
  margin-top: clamp(14px, 1.7vw, 20px);
  font-size: clamp(.98rem, 1vw, 1.04rem);
  line-height: 1.62;
  color: var(--vs-body);
  max-width: 34ch;
}

body.ip-sovereignty .vs-mission-plate {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: clamp(360px, 40vw, 520px);
  background: #e3e0cd;
}

body.ip-sovereignty .vs-mission-plate > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
}

/* The cream sign from the proposal. */
body.ip-sovereignty .vs-plaque {
  position: absolute;
  left: clamp(16px, 2.2vw, 30px);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 9.5rem;
  padding: 16px 16px 14px;
  background: #f6f0dd;
  border: 1px solid rgba(35, 55, 90, .28);
  text-align: center;
}

body.ip-sovereignty .vs-plaque span {
  font-family: var(--vs-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.004em;
  color: #2b3f60;
}

body.ip-sovereignty .vs-plaque .ch-ic {
  width: 20px;
  height: 20px;
  color: #2f5d8a;
}

/* The proposal's edge list, small caps down the right of the plate. */
body.ip-sovereignty .vs-edge-list {
  position: absolute;
  top: clamp(18px, 2.6vw, 32px);
  right: clamp(14px, 2vw, 26px);
  margin: 0;
  padding: 10px 12px;
  background: #fffdf6;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.9;
  text-transform: uppercase;
  text-align: right;
  color: var(--vs-ink);
}

body.ip-sovereignty .vs-edge-list::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 10px 0 0 auto;
  background: var(--vs-coral);
}

/* ----------------------------------------------------------------------------
   5. Belief
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-belief {
  padding: clamp(38px, 4.6vw, 68px) 0;
  background: #f8f3e4;
}

body.ip-sovereignty .vs-belief-inner { max-width: 62ch; }

body.ip-sovereignty .vs-belief-inner h2 {
  margin-top: 10px;
  font-family: var(--vs-display);
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--vs-ink);
  max-width: 20ch;
}

body.ip-sovereignty .vs-belief-inner > p:not(.ch-kicker) {
  margin-top: clamp(13px, 1.6vw, 18px);
  font-size: clamp(.98rem, 1vw, 1.05rem);
  line-height: 1.62;
  color: var(--vs-body);
  max-width: 46ch;
}

body.ip-sovereignty .vs-signoff {
  margin-top: clamp(18px, 2.2vw, 26px);
  max-width: none;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #2f4568;
}

body.ip-sovereignty .vs-signoff::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-bottom: 11px;
  background: var(--vs-coral);
}

/* ----------------------------------------------------------------------------
   6. Denim close
   ------------------------------------------------------------------------- */
body.ip-sovereignty .vs-close {
  background: var(--vs-ink);
  padding: clamp(38px, 4.6vw, 66px) 0;
}

body.ip-sovereignty .vs-close-inner { max-width: 60ch; }

body.ip-sovereignty .vs-close .ch-kicker { color: #c6d4e6; margin-bottom: 12px; }

body.ip-sovereignty .vs-close-statement {
  font-family: var(--vs-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: #fbf6e9;
  max-width: 24ch;
}

body.ip-sovereignty .vs-close-statement .ch-dot { color: #f2ab8e; }

body.ip-sovereignty .vs-close-copy {
  margin-top: 13px;
  font-size: clamp(.96rem, 1vw, 1.04rem);
  line-height: 1.6;
  color: #dde3ea;
  max-width: 44ch;
}

body.ip-sovereignty .vs-close .ch-link {
  margin-top: clamp(18px, 2vw, 24px);
  color: #f7f2e4;
  border-bottom-color: rgba(247, 242, 228, .45);
}

body.ip-sovereignty .vs-close .ch-link .ch-ic { color: #f2ab8e; }

body.ip-sovereignty .vs-close .ch-link:hover {
  color: #fdf8ea;
  border-bottom-color: #fdf8ea;
}

/* ----------------------------------------------------------------------------
   7. Responsive, 360 to 1440
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  body.ip-sovereignty .vs-values-grid,
  body.ip-sovereignty .vs-band-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body.ip-sovereignty .vs-values-intro h2,
  body.ip-sovereignty .vs-lede,
  body.ip-sovereignty .vs-band-intro h2 { max-width: 24ch; }

  body.ip-sovereignty .vs-lede,
  body.ip-sovereignty .vs-band-intro .vs-stand { max-width: 56ch; }
}

@media (max-width: 900px) {
  body.ip-sovereignty .vs-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ip-sovereignty .vs-hero-copy {
    padding: 26px var(--vs-gutter) 24px;
  }

  body.ip-sovereignty .vs-hero-copy .ip-lede { max-width: 54ch; }

  body.ip-sovereignty .vs-hero-plate {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  body.ip-sovereignty .vs-hero-plate > img { object-position: 58% 38%; }

  body.ip-sovereignty .vs-motto {
    top: 14px;
    right: 16px;
    font-size: .6rem;
    max-width: 15ch;
  }

  body.ip-sovereignty .vs-mission {
    grid-template-columns: minmax(0, 1fr);
  }

  body.ip-sovereignty .vs-mission-copy {
    order: 1;
    padding: 30px var(--vs-gutter) 26px;
  }

  body.ip-sovereignty .vs-mission-copy > p:not(.ch-kicker) { max-width: 54ch; }

  body.ip-sovereignty .vs-mission-plate {
    order: 2;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 780px) {
  body.ip-sovereignty .vs-layers { grid-template-columns: minmax(0, 1fr); }
  body.ip-sovereignty .vs-layer p { max-width: none; }
}

@media (max-width: 640px) {
  body.ip-sovereignty .vs-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  body.ip-sovereignty .vs-cell:nth-child(4n + 1) {
    border-left: 1px solid var(--vs-line);
    padding-left: clamp(12px, 1.5vw, 20px);
  }

  body.ip-sovereignty .vs-cell:nth-child(2n + 1) {
    border-left: 0;
    padding-left: 0;
  }

  body.ip-sovereignty .vs-cell:nth-child(4n) { padding-right: clamp(12px, 1.5vw, 20px); }
  body.ip-sovereignty .vs-cell:nth-child(2n) { padding-right: 0; }

  body.ip-sovereignty .vs-cell:nth-child(7) { grid-column: span 2; }
  body.ip-sovereignty .vs-cell h3 { max-width: 16ch; }
}

@media (max-width: 460px) {
  body.ip-sovereignty .vs-principles {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  body.ip-sovereignty .vs-cell:nth-child(n) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 18px;
    border-top: 1px solid var(--vs-line);
  }

  body.ip-sovereignty .vs-cell:nth-child(1) { border-top: 0; padding-top: 0; }
  body.ip-sovereignty .vs-cell:nth-child(7) { grid-column: auto; }

  body.ip-sovereignty .vs-plaque {
    left: 12px;
    top: auto;
    bottom: 12px;
    translate: none;
    max-width: 8.2rem;
    padding: 12px 12px 10px;
  }
  body.ip-sovereignty .vs-plaque span { font-size: .9rem; }

  body.ip-sovereignty .vs-edge-list { display: none; }

  body.ip-sovereignty .vs-motto { font-size: .75rem; max-width: 16ch; }
  body.ip-sovereignty .vs-signoff { font-size: .66rem; letter-spacing: .12em; }
}
