.updates-page { background: var(--color-canvas); color: var(--color-text); }
.updates-page .site-header { border-bottom: var(--component-rule); }
.updates-page .desktop-nav a[aria-current=page] { text-decoration: underline; text-decoration-color: var(--color-action); text-decoration-thickness: 2px; text-underline-offset: .45rem; }

.updates-hero { min-height: 68svh; padding: 7rem var(--page-gutter) 2rem; display: grid; grid-template-columns: .68fr 1.32fr; grid-template-rows: auto 1fr auto; gap: 2rem 7vw; position: relative; overflow: hidden; background-color: var(--color-action); background-image: linear-gradient(var(--foundation-rule-inverse) 1px, transparent 1px), linear-gradient(90deg, var(--foundation-rule-inverse) 1px, transparent 1px); background-size: 100% 25%, 25% 100%; color: var(--color-action-foreground); }
.updates-hero .section-label { color: inherit; }
.updates-hero h1 { grid-column: 1 / -1; align-self: center; margin: 0; font-size: clamp(5rem, 15vw, 15rem); line-height: .72; letter-spacing: -.09em; text-transform: uppercase; }
.updates-hero > p:last-child { grid-column: 2; max-width: 610px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.8rem); line-height: 1.25; letter-spacing: -.03em; }

.release-ledger { padding: 5rem var(--page-gutter) 8rem; }
.release-ledger-head { display: grid; grid-template-columns: .68fr 1.32fr; gap: 7vw; align-items: end; margin-bottom: 3rem; }
.release-ledger-head h2 { margin: 0; font-size: clamp(2.7rem, 6vw, 6.5rem); line-height: .9; letter-spacing: -.07em; }
.release-entry { display: grid; grid-template-columns: .5fr 1fr 1.5fr auto; min-height: 280px; border-top: var(--component-rule-strong); border-bottom: var(--component-rule-strong); color: inherit; text-decoration: none; }
.release-entry > * { padding: 1.5rem; border-right: var(--component-rule); }
.release-entry > *:first-child { padding-left: 0; }
.release-entry > *:last-child { padding-right: 0; border-right: 0; }
.release-entry-meta { display: flex; flex-direction: column; justify-content: space-between; font: 500 .62rem/1.5 var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.release-entry-version { display: flex; align-items: end; font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 900; line-height: .75; letter-spacing: -.09em; }
.release-entry-copy { display: flex; flex-direction: column; justify-content: space-between; }
.release-entry-copy h3 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 4.7rem); line-height: .94; letter-spacing: -.06em; }
.release-entry-copy p { max-width: 600px; margin: 2rem 0 0; color: var(--color-text-muted); line-height: 1.55; }
.release-entry-arrow { display: flex; align-items: center; font-size: 2rem; transition: color var(--foundation-motion-fast), transform var(--foundation-motion-fast); }
.release-entry:hover .release-entry-arrow, .release-entry:focus-visible .release-entry-arrow { color: var(--color-action); transform: translateX(.35rem); }

.release-hero { min-height: calc(100svh - 72px); padding: 5rem var(--page-gutter) 2rem; display: grid; grid-template-columns: .68fr 1.32fr; grid-template-rows: auto 1fr auto; gap: 2rem 7vw; border-bottom: var(--component-rule); position: relative; overflow: hidden; }
.release-hero::before { width: 52vw; aspect-ratio: 1; content: ""; position: absolute; z-index: -1; top: 8%; right: -14vw; border: 1px solid var(--foundation-cobalt-600); transform: rotate(45deg); }
.release-hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; font: 500 .62rem var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.release-hero h1 { grid-column: 1 / -1; align-self: center; max-width: 1250px; margin: 0; font-size: clamp(3.8rem, 10.5vw, 11rem); line-height: .82; letter-spacing: -.085em; }
.release-hero h1 span { display: block; color: var(--color-action); }
.release-hero-summary { grid-column: 2; max-width: 680px; margin: 0; font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.3; letter-spacing: -.035em; }

.article-intro, .article-section, .article-outro { padding: 7rem var(--page-gutter); border-bottom: var(--component-rule); }
.article-intro { display: grid; grid-template-columns: .68fr 1.32fr; gap: 7vw; }
.article-prose { max-width: 800px; }
.article-prose .lead { margin-top: 0; font-size: clamp(1.7rem, 3.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.055em; }
.article-prose p:not(.lead) { max-width: 670px; font-size: 1.08rem; line-height: 1.72; }
.article-heading { display: grid; grid-template-columns: .68fr 1.32fr; gap: 7vw; align-items: end; margin-bottom: 3.5rem; }
.article-heading h2 { max-width: 960px; margin: 0; font-size: clamp(3rem, 7.4vw, 8rem); line-height: .86; letter-spacing: -.075em; }

.shift-table { border-top: var(--component-rule-strong); }
.shift-row { display: grid; grid-template-columns: .5fr 1fr 1fr; border-bottom: var(--component-rule-strong); }
.shift-row > * { min-width: 0; padding: 1.5rem; border-right: var(--component-rule); }
.shift-row > *:first-child { padding-left: 0; }
.shift-row > *:last-child { padding-right: 0; border-right: 0; }
.shift-label { font: 500 .62rem/1.5 var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.shift-cell span { display: block; margin-bottom: .8rem; color: var(--color-text-muted); font: 500 .58rem var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.shift-cell strong { display: block; font-size: clamp(1.35rem, 2.2vw, 2.25rem); line-height: 1.05; letter-spacing: -.045em; }
.shift-cell p { margin: .8rem 0 0; color: var(--color-text-muted); line-height: 1.55; }
.shift-cell.is-now { background: var(--color-surface); }
.shift-cell.is-now span { color: var(--color-action); }

.system-flow { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--component-rule-strong); }
.system-flow > div { min-height: 220px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: var(--component-rule-strong); }
.system-flow > div:last-child { border-right: 0; background: var(--color-action); color: var(--color-action-foreground); }
.system-flow span, .system-flow code { font: 500 .6rem var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.system-flow strong { font-size: clamp(2rem, 4vw, 4.5rem); line-height: .88; letter-spacing: -.065em; }

.comparison-stage { background: var(--color-inverse-surface); color: var(--color-inverse-text); }
.comparison-stage .section-label, .comparison-stage .comparison-note { color: rgba(255, 255, 255, .7); }
.northline-frames { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--foundation-rule-inverse); }
.northline-frame { min-width: 0; border-right: 1px solid var(--foundation-rule-inverse); }
.northline-frame:last-child { border-right: 0; }
.northline-frame header { min-height: 52px; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--foundation-rule-inverse); font: 500 .58rem var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.northline-frame header b { color: var(--foundation-acid-400); font-weight: 500; }
.northline-frame iframe { width: 100%; height: min(68vw, 680px); display: block; border: 0; background: white; }
.northline-frame a { min-height: 52px; padding: 0 1rem; display: flex; align-items: center; border-top: 1px solid var(--foundation-rule-inverse); color: inherit; font: 500 .6rem var(--font-metadata); letter-spacing: .04em; text-transform: uppercase; }
.comparison-note { max-width: 760px; margin: 1.5rem 0 0; line-height: 1.6; }

.evidence-grid { display: grid; grid-template-columns: .8fr 1.2fr; border-top: var(--component-rule-strong); border-bottom: var(--component-rule-strong); }
.evidence-number { min-height: 420px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: var(--component-rule-strong); background: var(--color-action); color: var(--color-action-foreground); }
.evidence-number span { font: 500 .6rem var(--font-metadata); letter-spacing: .05em; text-transform: uppercase; }
.evidence-number strong { font-size: clamp(7rem, 18vw, 17rem); line-height: .62; letter-spacing: -.1em; }
.evidence-copy { padding: 2rem; }
.evidence-copy h3 { max-width: 720px; margin: 0 0 2rem; font-size: clamp(2.2rem, 4.5vw, 5rem); line-height: .93; letter-spacing: -.06em; }
.evidence-copy p { max-width: 680px; line-height: 1.65; }
.source-links { margin: 2rem 0 0; padding: 0; list-style: none; border-top: var(--component-rule); }
.source-links a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: var(--component-rule); color: inherit; font: 500 .62rem var(--font-metadata); text-transform: uppercase; }

.article-outro { display: grid; grid-template-columns: .68fr 1.32fr; gap: 7vw; background: var(--color-inverse-surface); color: var(--color-inverse-text); }
.article-outro h2 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 7.5rem); line-height: .88; letter-spacing: -.075em; }
.article-outro p { max-width: 650px; margin: 2rem 0; color: rgba(255, 255, 255, .72); line-height: 1.6; }
.article-outro .button { width: fit-content; }

.og-card-page { width: 1200px; height: 630px; margin: 0; overflow: hidden; background: var(--color-action); color: var(--color-action-foreground); }
.og-card { width: 100%; height: 100%; padding: 64px 72px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; position: relative; background-image: linear-gradient(var(--foundation-rule-inverse) 1px, transparent 1px), linear-gradient(90deg, var(--foundation-rule-inverse) 1px, transparent 1px); background-size: 100% 25%, 25% 100%; }
.og-card .wordmark, .og-card-meta { font: 500 16px var(--font-metadata); letter-spacing: .08em; text-transform: uppercase; }
.og-card h1 { grid-column: 1 / -1; align-self: center; max-width: 980px; margin: 0; font-size: 112px; line-height: .78; letter-spacing: -.085em; }
.og-card h1 span { display: block; color: var(--foundation-acid-400); }
.og-card-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 500 16px var(--font-metadata); letter-spacing: .04em; text-transform: uppercase; }

.thai-updates .updates-hero h1,
.thai-updates .release-hero h1,
.thai-updates .release-entry-copy h3,
.thai-updates .article-heading h2,
.thai-updates .evidence-copy h3,
.thai-updates .article-outro h2 { line-height: 1.03; letter-spacing: -.055em; }
.thai-updates .updates-hero > p:last-child,
.thai-updates .release-hero-summary,
.thai-updates .article-prose p,
.thai-updates .shift-cell p,
.thai-updates .comparison-note,
.thai-updates .evidence-copy p,
.thai-updates .article-outro p { line-height: 1.75; }
.thai-updates .shift-label { overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .updates-hero, .release-hero { min-height: 620px; padding: 5rem 1rem 1.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .updates-hero h1, .updates-hero > p:last-child, .release-hero h1, .release-hero-summary { grid-column: 1; }
  .updates-hero h1 { font-size: clamp(4rem, 22vw, 8rem); }
  .release-hero h1 { font-size: clamp(3.8rem, 18vw, 7rem); }
  .release-ledger, .article-intro, .article-section, .article-outro { padding: 5rem 1rem; }
  .release-ledger-head, .article-intro, .article-heading, .article-outro { grid-template-columns: 1fr; gap: 2rem; }
  .release-entry { grid-template-columns: 1fr; }
  .release-entry > *, .release-entry > *:first-child, .release-entry > *:last-child { padding: 1.25rem 0; border-right: 0; border-bottom: var(--component-rule); }
  .release-entry > *:last-child { border-bottom: 0; }
  .release-entry-meta { flex-direction: row; }
  .release-entry-arrow { min-height: 64px; }
  .shift-row { grid-template-columns: 1fr; }
  .shift-row > *, .shift-row > *:first-child, .shift-row > *:last-child { padding: 1.25rem 0; border-right: 0; border-bottom: var(--component-rule); }
  .shift-row > *:last-child { border-bottom: 0; }
  .shift-cell.is-now { margin-inline: -1rem; padding-inline: 1rem; }
  .system-flow, .northline-frames, .evidence-grid { grid-template-columns: 1fr; }
  .system-flow > div, .northline-frame, .evidence-number { border-right: 0; border-bottom: var(--component-rule-strong); }
  .system-flow > div:last-child, .northline-frame:last-child { border-bottom: 0; }
  .northline-frame iframe { height: 640px; }
  .evidence-number { min-height: 320px; }
}

@media (max-width: 480px) {
  .release-hero-meta { align-items: start; flex-direction: column; }
  .northline-frame iframe { height: 540px; }
}

@media (prefers-reduced-motion: reduce) { .release-entry-arrow { transition: none; } }
@media (forced-colors: active) { .shift-cell.is-now, .updates-hero, .system-flow > div:last-child, .evidence-number, .article-outro { background: Canvas; color: CanvasText; } }
