.refinery-section {
  background: #f3f3ef;
}
.refinery-section > .center-heading {
  margin-bottom: 32px;
}
/* Native page flow: the scene owns a viewport without trapping scrolling. */
.refinery-runway {
  width: 100%;
}
.refinery-shell {
  overflow-anchor: none;
  background: #e9edeb;
  height: 100svh;
  min-height: 660px;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
}
.refinery-control-panel,
.refinery-dock {
  padding: 16px clamp(16px, 3vw, 48px);
}
.refinery-control-panel {
  padding-bottom: 8px;
}
.refinery-toolbar,
.refinery-brief,
.refinery-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.refinery-scenes,
.refinery-steps {
  display: flex;
  gap: 6px;
}
.refinery-scenes button,
.refinery-steps button,
[data-refinery-motion] {
  min-height: 44px;
  border: 1px solid transparent;
  padding: 10px 16px;
  background: transparent;
  color: #606970;
  font: 13px/1.3 var(--body);
  cursor: pointer;
}
/* Three generous choices, one continuous tab rail. */
.refinery-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  border-bottom: 1px solid #30383d30;
}
.refinery-scenes button {
  position: relative;
  border: 0;
  border-radius: 0;
  min-height: 56px;
  padding: 14px 12px;
  font: 400 clamp(15px, 1.8vw, 23px)/1.2 var(--display);
  letter-spacing: -0.025em;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.refinery-scenes button::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: #30383d;
  transform: scaleX(0);
  transition: transform 0.25s;
}
.refinery-scenes button:hover {
  background: #30383d08;
  color: #30383d;
}
.refinery-scenes button[aria-pressed='true'] {
  color: #30383d;
  background: #30383d08;
}
.refinery-scenes button[aria-pressed='true']::after {
  transform: scaleX(1);
}
.refinery-continue {
  font: 11px var(--mono);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.refinery-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 8px;
  color: #606970;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.04em;
}
.refinery-brief h3 {
  font: 400 clamp(20px, 2.3vw, 34px)/1.1 var(--display);
  letter-spacing: -0.035em;
}
.refinery-brief .button {
  flex: none;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 13px;
}
.refinery-stage {
  position: relative;
  min-height: 0;
  isolation: isolate;
  touch-action: pan-y;
  overflow: hidden;
}
.refinery-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y !important;
}
.refinery-loading {
  position: absolute;
  inset: 45% 20px auto;
  text-align: center;
  font: 14px var(--mono);
  color: #606970;
}
.refinery-region-label,
.refinery-environment {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: #606970;
  font: 10px/1.4 var(--mono);
}
.refinery-region-label {
  top: 16px;
  letter-spacing: 0.08em;
}
.refinery-label-west {
  left: 3vw;
}
.refinery-label-east {
  right: 3vw;
}
.refinery-environment {
  right: 3vw;
  bottom: 12px;
}
.refinery-stage[data-environment='data-centre'] {
  background: #dfe7ec;
}
.refinery-stage[data-environment='paper-mill'] {
  background: #e8ece1;
}
.refinery-dock {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  column-gap: 40px;
  row-gap: 14px;
  padding-top: 8px;
  border-top: 1px solid #30383d18;
}
.refinery-navigation {
  grid-column: 1 / -1;
}
.refinery-steps button {
  padding: 10px 18px;
  border-radius: 6px;
}
.refinery-steps button[aria-pressed='true'] {
  background: #30383d;
  color: #fafaf7;
}
[data-refinery-motion] {
  padding: 8px 0 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.refinery-caption > span {
  font: 400 clamp(20px, 1.7vw, 26px)/1.15 var(--display);
  letter-spacing: -0.03em;
}
.refinery-caption p {
  color: #606970;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  max-width: 640px;
}
.refinery-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-self: center;
}
.refinery-stats > div > span {
  display: block;
  font: 10px/1.4 var(--mono);
  color: #606970;
}
.refinery-stats strong {
  display: block;
  margin-top: 5px;
  font: 400 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.refinery-stats small {
  font: 12px var(--body);
  letter-spacing: 0;
  margin-left: 4px;
  color: #606970;
}
.refinery-details {
  padding: 20px 0;
  border-bottom: 1px solid #30383d25;
}
.refinery-details summary {
  font: 15px var(--body);
  cursor: pointer;
  padding: 12px 0;
}
.refinery-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.refinery-pin {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  border: 1px solid #30383d30;
  border-radius: 6px;
  background: transparent;
  color: #30383d;
  cursor: pointer;
  font: 13px var(--body);
}
.refinery-pin > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #30383d;
  color: #fafaf7;
  font: 10px var(--mono);
}
.refinery-pin b {
  font-weight: 400;
}
.refinery-pin i {
  font: 10px var(--mono);
  color: #606970;
}
.refinery-pin:hover,
.refinery-pin.is-selected {
  border-color: #30383d;
  background: #e9edeb;
}
.refinery-review {
  max-width: 680px;
  margin: 20px 0;
  padding: 24px;
  border: 1px solid #30383d25;
  border-radius: 8px;
}
.refinery-review[hidden],
[data-refinery-motion][hidden] {
  display: none;
}
.refinery-review > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.refinery-review .eyebrow {
  font-size: 10px;
  margin: 0;
}
.refinery-review [data-refinery-close] {
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  font: 24px var(--body);
  cursor: pointer;
}
.refinery-review h4 {
  font: 400 25px/1.15 var(--display);
  letter-spacing: -0.03em;
  margin: 10px 0;
}
.refinery-review p {
  font-size: 13px;
  line-height: 1.5;
  color: #606970;
}
.refinery-review-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 0;
  border-block: 1px solid #30383d20;
  font: 10px var(--mono);
  color: #606970;
}
.refinery-review-numbers strong {
  display: block;
  font: 24px/1.4 var(--display);
  color: #30383d;
  font-variant-numeric: tabular-nums;
}
.refinery-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.refinery-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cdd1d2;
  font: 10px var(--mono);
}
.refinery-comment p {
  margin: 0;
}
.refinery-comment b,
.refinery-comment small,
.refinery-comment p > span {
  display: block;
}
.refinery-comment b {
  color: #30383d;
  margin-bottom: 6px;
}
.refinery-comment small {
  font: 10px var(--mono);
  margin-top: 8px;
}
.refinery-approve {
  display: block;
  margin-top: 18px;
  min-height: 44px;
  padding: 12px 20px;
  background: #30383d;
  color: #fafaf7;
  border: 0;
  border-radius: 999px;
  font: 13px var(--body);
  cursor: pointer;
}
.refinery-review-status {
  display: block;
  margin-top: 12px;
  font: 10px/1.6 var(--mono);
  color: #606970;
}
.refinery-history {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  font: 10px/1.6 var(--mono);
  color: #606970;
}
.refinery-history > span {
  flex: none;
}
.refinery-history ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.refinery-history li {
  border: 1px solid #30383d25;
  border-radius: 4px;
  padding: 5px 10px;
}
.refinery-section button:disabled {
  opacity: 0.45;
  cursor: default;
}
.refinery-section :is(button, summary, a):focus-visible {
  outline: 2px solid #263f61;
  outline-offset: 4px;
}
.site-header.demo-in-view:not(:focus-within) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 600px) {
  .refinery-shell {
    overflow-anchor: none;
    min-height: 720px;
  }
  .refinery-control-panel,
  .refinery-dock {
    padding-inline: 14px;
  }
  .refinery-toolbar {
    gap: 6px;
  }
  .refinery-scenes button {
    min-height: 52px;
    font-size: 16px;
    padding: 12px 6px;
  }
  .refinery-continue {
    font-size: 9px;
  }
  .refinery-topline {
    font-size: 8px;
    margin-top: 10px;
  }
  .refinery-brief {
    gap: 12px;
  }
  .refinery-brief h3 {
    font-size: 21px;
  }
  .refinery-brief .button {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 105px;
  }
  .refinery-region-label {
    display: none;
  }
  .refinery-environment {
    right: 14px;
    font-size: 8px;
  }
  .refinery-dock {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding-bottom: 16px;
  }
  .refinery-navigation {
    gap: 4px;
  }
  .refinery-steps {
    gap: 2px;
  }
  .refinery-steps button {
    padding: 8px 9px;
    font-size: 11px;
  }
  [data-refinery-motion] {
    font-size: 10px;
    padding-left: 4px;
  }
  .refinery-caption p {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 5px;
  }
  .refinery-stats {
    gap: 8px;
  }
  .refinery-stats > div > span {
    font-size: 9px;
  }
  .refinery-stats strong {
    font-size: 25px;
  }
  .refinery-history {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .refinery-review {
    padding: 16px;
  }
  .refinery-review-numbers strong {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  .refinery-scenes button {
    font-size: 14px;
  }
  .refinery-steps button {
    font-size: 10px;
    padding: 8px 6px;
  }
  .refinery-brief h3 {
    font-size: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .refinery-section * {
    transition: none !important;
    animation: none !important;
  }
}
