/* Opura release ledger — public metadata, private artifacts. */

.releases-page {
  background:
    radial-gradient(circle at 78% 15%, oklch(73% 0.145 76 / 0.08), transparent 26rem),
    var(--ink);
}

.release-hero {
  min-height: min(900px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: stretch;
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--line-dark);
}

.release-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 42px);
  padding: clamp(96px, 12vw, 180px) var(--page-gutter);
}

.release-hero h1 {
  max-width: 10ch;
  font-size: clamp(58px, 7.8vw, 124px);
  font-weight: 600;
  letter-spacing: -0.066em;
  line-height: 0.88;
}

.release-hero h1 em {
  color: var(--amber);
  font-family: var(--serif);
  font-weight: 400;
}

.release-hero__lead {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.release-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.release-instrument {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  padding: clamp(40px, 5vw, 80px);
  border-left: 1px solid var(--line-dark);
  background: color-mix(in oklch, var(--ink-deep) 88%, transparent);
}

.release-instrument::before {
  position: absolute;
  inset: 28px;
  border: 1px solid var(--line-dark);
  content: "";
  pointer-events: none;
}

.release-instrument__dial {
  width: min(100%, 390px);
  margin: auto;
  color: var(--amber);
}

.release-instrument__dial svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.6;
}

.release-instrument__dial circle:nth-child(2),
.release-instrument__dial path {
  opacity: 0.38;
}

.release-instrument__dial .release-instrument__focus {
  fill: var(--amber);
  stroke: none;
}

.release-instrument__readout {
  position: relative;
  display: grid;
  gap: 4px;
  padding-bottom: clamp(36px, 6vh, 70px);
  text-align: center;
}

.release-instrument__readout span,
.release-instrument__readout small,
.release-instrument dl {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-instrument__readout span {
  color: var(--earth);
  font-size: 9px;
}

.release-instrument__readout strong {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.release-instrument__readout small {
  color: var(--amber);
  font-size: 9px;
}

.release-instrument dl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 8px;
}

.release-instrument dl div {
  display: grid;
  gap: 4px;
}

.release-instrument dt {
  color: var(--earth);
}

.release-instrument dd {
  color: var(--paper-dim);
}

.release-current {
  padding: var(--section-space) var(--page-gutter);
  background: var(--paper);
  color: var(--ink);
}

.release-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(48px, 10vw, 160px);
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.release-section-heading h2,
.release-history__intro h2,
.release-boundary h2 {
  max-width: 13ch;
  margin-top: 14px;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.058em;
  line-height: 0.94;
}

.release-section-heading > p,
.release-history__intro > p:not(.overline),
.release-boundary > div p {
  max-width: 58ch;
  color: var(--text-dark-dim);
  line-height: 1.75;
}

.release-scan {
  border-top: 1px solid var(--line-light);
}

.release-scan li {
  min-height: 112px;
  display: grid;
  grid-template-columns: 34px 56px minmax(130px, 1fr) minmax(190px, 1.3fr) minmax(90px, 0.55fr) minmax(90px, 0.55fr);
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  border-bottom: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-scan__number {
  color: var(--amber-dark);
}

.release-mark {
  width: 44px;
  color: var(--amber-dark);
}

.release-scan__incisa .release-mark {
  color: oklch(53% 0.16 28);
}

.release-mark svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.release-mark circle {
  opacity: 0.55;
  stroke-width: 0.5;
}

.release-scan li > div {
  display: grid;
  gap: 2px;
}

.release-scan li strong {
  font-family: var(--body);
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.release-scan li small,
.release-scan li > span:not(.release-mark):not(.release-scan__number):not(.release-scan__version) {
  color: var(--text-dark-dim);
}

.release-scan__version {
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.release-history {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 128px);
  padding: var(--section-space) var(--page-gutter);
  border-bottom: 1px solid var(--line-dark);
}

.release-history__intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  align-self: start;
  display: grid;
  gap: 24px;
}

.release-history__intro h2 {
  color: var(--paper);
}

.release-history__intro > p:not(.overline) {
  color: var(--text-dim);
}

.release-data-state {
  min-height: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: var(--earth) !important;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-data-state[data-state="live"] {
  color: var(--amber) !important;
}

.release-ledger {
  display: grid;
  gap: clamp(72px, 9vw, 128px);
}

.product-history {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.product-history > header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.product-history > header span,
.product-history > header small {
  color: var(--earth);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-history > header h3 {
  grid-row: 2;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.product-history > header small {
  grid-row: 2;
  align-self: center;
}

.product-history ol {
  counter-reset: release;
}

.release-entry {
  counter-increment: release;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1fr);
  gap: 18px clamp(32px, 6vw, 88px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
}

.release-entry__version {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.release-entry__version strong {
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.release-entry__version span {
  border: 1px solid var(--amber-dark);
  padding: 3px 7px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-entry dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-entry dl div {
  display: grid;
  gap: 3px;
}

.release-entry dt {
  color: var(--earth);
}

.release-entry dd {
  color: var(--paper-dim);
}

.release-entry > p {
  grid-column: 2;
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.release-entry--latest {
  position: relative;
}

.release-entry--latest::after {
  position: absolute;
  top: -1px;
  right: 0;
  width: 88px;
  height: 1px;
  content: "";
  background: var(--amber);
}

.product-history--incisa .release-entry--latest::after {
  background: oklch(62% 0.18 28);
}

.release-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(48px, 10vw, 160px);
  align-items: end;
  padding: var(--section-space) var(--page-gutter);
  background: var(--paper);
  color: var(--ink);
}

.release-boundary > .overline {
  grid-column: 1 / -1;
  margin-bottom: calc(clamp(48px, 8vw, 110px) * -1);
}

.release-boundary > div {
  display: grid;
  justify-items: start;
  gap: 32px;
}

@media (max-width: 1050px) {
  .release-hero {
    grid-template-columns: 1fr 0.72fr;
  }

  .release-instrument {
    padding-inline: 36px;
  }

  .release-scan li {
    grid-template-columns: 28px 48px minmax(110px, 1fr) minmax(170px, 1.2fr) minmax(88px, 0.55fr);
  }

  .release-scan li > span:last-child {
    display: none;
  }

  .release-history {
    grid-template-columns: 1fr;
  }

  .release-history__intro {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .release-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .release-hero__copy {
    min-height: 680px;
    padding-top: 120px;
  }

  .release-instrument {
    min-height: 520px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .release-section-heading,
  .release-boundary {
    grid-template-columns: 1fr;
  }

  .release-scan li {
    grid-template-columns: 28px 44px 1fr auto;
    gap: 10px 14px;
    padding: 22px 0;
  }

  .release-scan li > div {
    grid-column: 3;
  }

  .release-scan__version {
    grid-column: 4;
    grid-row: 1;
  }

  .release-scan li > span:nth-last-child(-n+2) {
    display: none;
  }

  .product-history > header {
    grid-template-columns: 1fr;
  }

  .product-history > header small {
    grid-row: auto;
  }

  .release-entry {
    grid-template-columns: 1fr;
  }

  .release-entry > p {
    grid-column: 1;
  }

  .release-entry dl {
    font-size: 7px;
  }

  .release-boundary > .overline {
    margin-bottom: -24px;
  }
}

@media (max-width: 480px) {
  .release-hero h1 {
    font-size: clamp(50px, 16vw, 72px);
  }

  .release-instrument {
    min-height: 460px;
    padding: 46px 28px;
  }

  .release-instrument::before {
    inset: 16px;
  }

  .release-instrument__readout strong {
    font-size: 58px;
  }

  .release-scan li {
    grid-template-columns: 24px 40px 1fr;
  }

  .release-scan__version {
    grid-column: 3;
    grid-row: 2;
  }

  .release-entry dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .release-instrument__dial {
    animation: release-focus 12s var(--ease-quiet) infinite alternate;
  }
}

@keyframes release-focus {
  from { transform: rotate(-1.5deg) scale(0.985); }
  to { transform: rotate(1.5deg) scale(1.015); }
}

html[data-motion="off"] .release-instrument__dial {
  animation: none;
}
