:root {
  color-scheme: light;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --brand-blue: #2563eb;
  --brand-blue-strong: #1d4ed8;
  --brand-blue-deep: #1e40af;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-strong), var(--brand-blue-deep));
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --card-border: rgba(203, 213, 225, 0.82);
  --control-border: rgba(148, 163, 184, 0.22);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.07);
  --radius-control: 10px;
  --radius-card: 10px;
  --radius-panel: 12px;
  font-family: "Manrope", "Inter", "Segoe UI Variable", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #dbe5ef;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.09), transparent 28rem),
    radial-gradient(circle at 94% 82%, rgba(217, 119, 6, 0.06), transparent 27rem),
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, #f5f8fb 0%, #edf2f7 48%, #e7edf5 100%);
  background-size: 100% 100%, 100% 100%, 26px 26px, 26px 26px, 100% 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header,
.main-content {
  width: min(1440px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-identity,
.site-actions,
.archive-status,
.return-link {
  display: inline-flex;
  align-items: center;
}

.site-identity {
  min-width: 0;
  gap: 9px;
}

.thinfilm-hub-wordmark {
  display: inline-block;
  background: var(--brand-gradient);
  background-clip: text;
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  white-space: nowrap;
  transform: scaleX(0.98);
  transform-origin: left center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.identity-separator {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.identity-section {
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-actions {
  justify-content: flex-end;
  gap: 19px;
}

.archive-status {
  gap: 7px;
  color: #15803d;
  font-size: 0.64rem;
  font-weight: 750;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.09);
}

.return-link {
  gap: 6px;
  color: #475569;
  font-size: 0.66rem;
  font-weight: 750;
  transition: color 150ms ease;
}

.return-link svg {
  width: 14px;
  height: 14px;
}

.return-link:hover {
  color: #2563eb;
}

.site-identity:focus-visible,
.return-link:focus-visible,
button:focus-visible {
  outline: none;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.main-content {
  padding: 20px 0 0;
}

.hero,
.rewind-workspace,
.principles {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.hero {
  min-height: 164px;
  padding: clamp(24px, 2.7vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9)),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 36%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -130px;
  right: 23%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(37, 99, 235, 0.065);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(37, 99, 235, 0.022),
    0 0 0 64px rgba(37, 99, 235, 0.018);
  pointer-events: none;
}

.hero-copy,
.hero-readout {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-eyebrow,
.release-kicker {
  margin: 0;
  color: #2563eb;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 7px 0 7px;
  color: #0f172a;
  font-size: clamp(2.25rem, 3.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.052em;
}

.hero h1 span {
  background: var(--brand-gradient);
  background-clip: text;
  color: var(--brand-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  max-width: 660px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  line-height: 1.55;
}

.hero-readout {
  min-width: 390px;
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.74);
}

.readout-item {
  min-width: 0;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(203, 213, 225, 0.72);
}

.readout-item:last-child {
  border-right: 0;
}

.readout-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.readout-copy strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readout-copy small {
  color: #64748b;
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1.25;
}

.rewind-workspace {
  margin-top: 14px;
  padding: 11px;
}

.workspace-header {
  min-height: 46px;
  padding: 0 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
}

.workspace-title,
.workspace-actions {
  display: flex;
  align-items: center;
}

.workspace-title > span {
  min-width: 0;
  display: grid;
}

.workspace-title small {
  color: #64748b;
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-title strong {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
}

.workspace-actions {
  justify-content: flex-end;
  gap: 6px;
}

.keyboard-hint {
  margin-right: 4px;
  color: #94a3b8;
  font-size: 0.56rem;
  font-weight: 650;
}

kbd {
  min-width: 20px;
  height: 20px;
  margin-right: 3px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 5px;
  color: #64748b;
  background: #f8fafc;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.16);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
}

.nav-button,
.open-button,
.retry-button {
  border: 1px solid var(--control-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, translate 150ms ease;
}

.nav-button {
  min-height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #475569;
  background: #fff;
  font-size: 0.63rem;
}

.nav-button svg {
  width: 14px;
  height: 14px;
}

.nav-button:hover:not(:disabled),
.open-button:hover:not(:disabled),
.retry-button:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 38%, #cbd5e1);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  translate: 0 -1px;
}

.nav-button--primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.nav-button--primary:hover:not(:disabled) {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 82%, #0f172a);
  background: color-mix(in srgb, var(--accent) 90%, #0f172a);
}

.nav-button:disabled,
.open-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.timeline-shell {
  margin: 9px 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.92));
}

.timeline-guide {
  padding: 0 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.5rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-track {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(105px, 1fr);
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
  scrollbar-width: thin;
}

.timeline-track::-webkit-scrollbar {
  height: 4px;
}

.timeline-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
}

.timeline-stop {
  position: relative;
  min-width: 105px;
  min-height: 62px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 8px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, translate 150ms ease;
}

.timeline-stop::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--milestone-accent, #2563eb);
  opacity: 0.3;
}

.timeline-stop:hover {
  border-color: color-mix(in srgb, var(--milestone-accent, #2563eb) 32%, #cbd5e1);
  background: #fff;
  translate: 0 -1px;
}

.timeline-stop.is-selected {
  color: color-mix(in srgb, var(--milestone-accent, #2563eb) 78%, #0f172a);
  border-color: color-mix(in srgb, var(--milestone-accent, #2563eb) 42%, #cbd5e1);
  background: color-mix(in srgb, var(--milestone-accent, #2563eb) 7%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--milestone-accent, #2563eb) 7%, transparent);
}

.timeline-number {
  grid-column: 1;
  grid-row: 1;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: color-mix(in srgb, var(--milestone-accent, #2563eb) 80%, #334155);
  background: color-mix(in srgb, var(--milestone-accent, #2563eb) 9%, #fff);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  font-weight: 600;
}

.timeline-date {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: #94a3b8;
  font-size: 0.47rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.timeline-node {
  grid-column: 1;
  grid-row: 2;
  width: 6px;
  height: 6px;
  margin: 5px auto 0;
  border-radius: 999px;
  background: var(--milestone-accent, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--milestone-accent, #2563eb) 10%, transparent);
}

.timeline-node span {
  display: none;
}

.timeline-title {
  grid-column: 2;
  grid-row: 2;
  min-height: 26px;
  align-self: center;
  color: #334155;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-stop.is-selected .timeline-title {
  color: #0f172a;
}

.console-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(245px, 0.48fr) minmax(620px, 1.72fr);
  gap: 9px;
  align-items: stretch;
}

.release-card,
.viewport-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 9px;
  background: #fff;
}

.release-card {
  padding: clamp(16px, 1.5vw, 21px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.release-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.release-sequence,
.availability-badge {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-sequence {
  color: #64748b;
}

.availability-badge {
  min-height: 21px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
}

.availability-badge span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #94a3b8;
}

.availability-badge[data-state="checking"] {
  color: #a16207;
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(255, 251, 235, 0.9);
}

.availability-badge[data-state="checking"] span {
  background: #d97706;
  animation: pulse 1.1s ease-in-out infinite;
}

.availability-badge[data-state="online"] {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.2);
  background: rgba(240, 253, 244, 0.92);
}

.availability-badge[data-state="online"] span {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.09);
}

.availability-badge[data-state="offline"] {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.9);
}

.availability-badge[data-state="offline"] span {
  background: #dc2626;
}

.release-heading {
  position: relative;
  padding-left: 11px;
}

.release-heading::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 2px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.release-kicker {
  font-size: 0.55rem;
}

.release-card h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 1.7vw, 1.82rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

.release-summary {
  margin: 14px 0 0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.55;
}

.release-meta {
  margin: 15px 0;
  display: grid;
  gap: 5px;
}

.release-meta div {
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  border-radius: 7px;
  background: #f8fafc;
}

.release-meta dt {
  color: #94a3b8;
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.release-meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.59rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-meta code {
  color: color-mix(in srgb, var(--accent) 80%, #334155);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.53rem;
}

.release-section h3 {
  margin: 0 0 7px;
  color: #64748b;
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feature-list span {
  min-height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, #cbd5e1);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 68%, #475569);
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  font-size: 0.52rem;
  font-weight: 700;
}

.release-card blockquote {
  margin: 15px 0;
  padding: 8px 0 8px 10px;
  border-left: 1px solid var(--accent);
  color: #64748b;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 550;
  line-height: 1.5;
}

.demo-notice {
  min-height: 45px;
  margin-top: auto;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(240, 253, 250, 0.72);
}

.demo-status {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.09);
}

.demo-notice > span:last-child {
  display: grid;
  color: #64748b;
  font-size: 0.52rem;
  font-weight: 650;
  line-height: 1.35;
}

.demo-notice strong {
  color: #0f766e;
  font-size: 0.56rem;
  font-weight: 800;
}

.viewport-card {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.browser-bar {
  min-height: 42px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.74);
  background: #f8fafc;
}

.browser-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browser-indicator {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.address-bar {
  min-width: 0;
  height: 28px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 7px;
  color: #64748b;
  background: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-lock {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #16a34a;
}

.preview-toggle {
  height: 29px;
  padding: 2px;
  display: inline-flex;
  align-items: stretch;
  gap: 1px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  background: #e9eef5;
}

.preview-toggle-button {
  min-height: 23px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  color: #64748b;
  background: transparent;
  box-shadow: none;
  font-size: 0.52rem;
  font-weight: 800;
}

.preview-toggle-button:hover {
  color: #334155;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.62);
  transform: none;
}

.preview-toggle-button.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.open-button {
  min-height: 29px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  background: #fff;
  font-size: 0.56rem;
}

.open-button svg {
  width: 13px;
  height: 13px;
}

.viewport {
  position: relative;
  min-height: 548px;
  display: grid;
  flex: 1;
  overflow: hidden;
  background:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    #edf2f7;
  background-size: 26px 26px;
}

.viewport-placeholder,
.viewport-loader {
  grid-area: 1 / 1;
  min-height: 548px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.time-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #cbd5e1);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.orbit--outer {
  inset: 0;
  animation: orbit 8s linear infinite;
}

.orbit--inner {
  inset: 19px;
  animation: orbit 5s linear infinite reverse;
}

.orbit-core {
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--accent-soft);
}

.placeholder-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.viewport-placeholder h3 {
  max-width: 500px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.viewport-placeholder > p:not(.placeholder-label) {
  max-width: 480px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.5;
}

.retry-button {
  min-height: 32px;
  margin-top: 15px;
  padding: 0 10px;
  color: #475569;
  background: #fff;
  font-size: 0.61rem;
}

.viewport-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(37, 99, 235, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: orbit 0.8s linear infinite;
}

.viewport-loader p {
  margin: 11px 0 0;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 750;
}

.frame-stage {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 548px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
  background: #edf2f7;
}

#version-frame {
  width: 100%;
  height: 100%;
  min-height: 548px;
  flex: 1 1 auto;
  border: 0;
  background: #edf2f7;
}

.viewport-card[data-preview-mode="mobile"] .viewport,
.viewport-card[data-preview-mode="mobile"] .frame-stage {
  min-height: 748px;
}

.viewport-card[data-preview-mode="mobile"] .frame-stage {
  padding: 14px;
  align-items: flex-start;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    #e8eef5;
  background-size: 22px 22px;
}

.viewport-card[data-preview-mode="mobile"] #version-frame {
  width: 390px;
  max-width: 100%;
  height: 720px;
  min-height: 720px;
  flex: 0 0 auto;
  border: 1px solid rgba(100, 116, 139, 0.26);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

[hidden] {
  display: none !important;
}

.principles {
  margin-top: 14px;
  padding: clamp(19px, 2.4vw, 30px);
}

.principles-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.principles-heading h2 {
  max-width: 650px;
  margin: 5px 0 0;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.principles-heading > p {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 550;
  line-height: 1.5;
}

.principle-grid {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.principle-grid article {
  min-height: 88px;
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 9px;
  background: #fff;
}

.principle-index {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  font-weight: 600;
}

.is-blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.is-amber {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

.is-teal {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.principle-grid h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 800;
}

.principle-grid p {
  margin: 0;
  color: #64748b;
  font-size: 0.59rem;
  font-weight: 550;
  line-height: 1.45;
}

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  font-size: 0.57rem;
  font-weight: 650;
}

footer strong {
  color: #64748b;
}

.noscript {
  position: fixed;
  z-index: 99;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: #991b1b;
  background: #fef2f2;
  text-align: center;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.38; }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .hero-readout {
    min-width: 0;
  }

  .console-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-readout {
    width: 100%;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .release-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .release-card-topline,
  .release-heading,
  .release-summary {
    grid-column: 1 / -1;
  }

  .release-meta,
  .release-card blockquote {
    grid-column: 1;
  }

  .release-section,
  .demo-notice {
    grid-column: 2;
  }

  .release-section {
    margin-top: 15px;
  }

  .demo-notice {
    margin-top: 15px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .main-content {
    width: calc(100% - 20px);
  }

  .site-header {
    min-height: 58px;
  }

  .thinfilm-hub-wordmark {
    font-size: 16px;
  }

  .identity-section {
    font-size: 0.6rem;
  }

  .archive-status {
    display: none;
  }

  .return-link {
    font-size: 0;
  }

  .return-link svg {
    width: 16px;
    height: 16px;
  }

  .main-content {
    padding-top: 10px;
  }

  .hero {
    min-height: 0;
    padding: 20px 18px;
    gap: 17px;
  }

  .hero::before {
    right: -140px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero-intro {
    font-size: 0.75rem;
  }

  .hero-readout {
    min-height: 61px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .readout-item {
    padding: 9px;
  }

  .readout-copy strong {
    font-size: 0.76rem;
  }

  .readout-copy small {
    font-size: 0.46rem;
  }

  .rewind-workspace {
    margin-top: 9px;
    padding: 8px;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 2px 2px 8px;
    gap: 9px;
  }

  .workspace-actions {
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .timeline-guide {
    display: none;
  }

  .timeline-shell {
    margin: 7px 0;
    padding: 6px;
  }

  .timeline-track {
    grid-auto-columns: 110px;
  }

  .release-card {
    padding: 15px;
    display: block;
  }

  .release-card-topline {
    margin-bottom: 17px;
  }

  .release-section,
  .demo-notice {
    margin-top: 0;
  }

  .browser-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .browser-brand {
    display: none;
  }

  .open-button span {
    display: none;
  }

  .open-button {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .viewport-card,
  .viewport,
  .viewport-placeholder,
  .viewport-loader,
  .frame-stage,
  #version-frame {
    min-height: 510px;
  }

  .principles {
    margin-top: 9px;
    padding: 19px 16px;
  }

  .principles-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    margin-top: 15px;
  }

  .principle-grid article {
    min-height: 0;
  }

  footer {
    min-height: 62px;
    padding: 0 3px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }
}

@media (max-width: 380px) {
  .identity-separator {
    display: none;
  }

  .identity-section {
    padding-left: 8px;
    border-left: 1px solid #cbd5e1;
  }

  .availability-badge {
    padding: 0 6px;
    font-size: 0.47rem;
  }

  .viewport-card,
  .viewport,
  .viewport-placeholder,
  .viewport-loader,
  .frame-stage,
  #version-frame {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
