.open-hero {
  --open-paper: #f9f5e8;
  --open-muted: #d0d9ce;
  --open-accent: #f8b96c;
  --open-ink: #17241d;
  position: relative;
  isolation: isolate;
  color: var(--open-paper);
  background: radial-gradient(ellipse at 80% 32%, #314438, transparent 62%), #141e18;
  scroll-margin-top: 80px;
}

.open-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(26px, 4.8vw, 72px);
  padding-block: clamp(44px, 6vw, 90px) clamp(44px, 5vw, 75px);
}

.open-hero-copy { min-width: 0; padding-top: clamp(0px, 1.3vw, 17px); }

.open-hero h1 {
  margin: 0;
  color: var(--open-paper);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(3.25rem, 5.62vw, 6rem);
  font-weight: 400;
  letter-spacing: -.064em;
  line-height: .98;
}

.open-hero h1 em { color: var(--open-accent); font-weight: 400; }

.open-lead {
  max-width: 30rem;
  margin: 21px 0 27px;
  color: var(--open-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.58;
}

.open-hero [hidden] { display: none !important; }
.open-console { min-width: 0; max-width: 510px; }

.open-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 8px;
  min-height: 28px;
}

.open-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dee6d9;
  font-size: .77rem;
  font-weight: 700;
}

.open-mode::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a4cca0;
}

.open-source {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #cbd8cc;
  border-radius: 5px;
  color: #385647;
  font-size: .7rem;
  font-weight: 750;
}

.open-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 9px;
  border: 1px solid #d4d3bd;
  border-radius: 13px;
  background: #f8f5e9;
  color: var(--open-ink);
  box-shadow: 0 12px 34px #070f0a32;
}

.open-composer:focus-within { outline: 2px solid var(--open-accent); outline-offset: 4px; }

.open-composer textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 65px;
  padding: 8px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--open-ink);
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  outline: none;
}

.open-composer textarea::placeholder { color: #59675d; opacity: 1; }

.open-send, .open-case-trigger, .open-action, .open-quiet {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.open-send, .open-case-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.25;
  transition: background-color .16s, border-color .16s;
}

.open-send {
  padding: 10px 13px;
  background: #233c2f;
  color: #fff8e8;
  font-size: .86rem;
}

.open-send:hover { background: #3c5a47; }
.open-send span { color: var(--open-accent); }

.open-action, .open-quiet {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f8d198;
  font-size: .79rem;
}

.open-quiet { padding: 3px 7px; }
.open-action { padding: 6px 9px; border: 1px solid #a88f6b; }
.open-action:hover, .open-quiet:hover { background: #a3895e30; }

.open-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.open-quick-actions:has(button:not([hidden])) { margin-top: 10px; }

.open-hero :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--open-accent);
  outline-offset: 3px;
}

.open-hero button:disabled { cursor: not-allowed; opacity: .62; }
.open-hero .open-send:disabled, .open-hero .open-action:disabled { cursor: wait; }

.open-privacy, .open-status {
  margin: 10px 0 0;
  color: var(--open-muted);
  font-size: .77rem;
  line-height: 1.5;
}

.open-privacy a { color: #f8d198; text-decoration: underline; text-underline-offset: 3px; }
.open-status:empty { margin-top: 0; }
.open-status[data-error="true"] { color: #ffc4a4; font-weight: 700; }

.open-scenario {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #829183;
  border-radius: 17px;
  background: #202e24;
  box-shadow: 0 25px 64px #050c0857;
}

.open-case-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(285px, 27vw, 420px);
  padding: clamp(17px, 2.5vw, 32px);
  overflow: hidden;
  background: #24372b;
}

.open-case-image, .open-case-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.open-case-image { object-fit: cover; object-position: 53% 50%; }

.open-case-shade {
  background:
    linear-gradient(0deg, #111c16 0%, #111c16c4 23%, #111c161a 65%),
    linear-gradient(115deg, #111c16d9 0%, #111c1655 43%, transparent 71%);
}

.open-case-heading { width: fit-content; max-width: 100%; }

.open-case-caption {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #dce4d271;
  border-radius: 5px;
  background: #17261ddb;
  color: #f8f7e9;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1.25;
}

.open-case-heading h2 {
  margin: 9px 0 0;
  color: #fff8ec;
  font-size: clamp(1.52rem, 2.85vw, 2.45rem);
  font-weight: 400;
  line-height: 1.12;
  text-shadow: 0 2px 12px #050c08;
}

.open-case-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.open-case-live { min-width: 0; }
.open-case-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--open-paper);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(4.2rem, 6.9vw, 7rem);
  font-weight: 400;
  letter-spacing: -.075em;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: .86;
}

.open-case-value span:last-child {
  font-size: .47em;
  letter-spacing: -.04em;
}

.open-case-amount {
  margin: 8px 0 0;
  color: #f2f3e9;
  font-size: clamp(.8rem, 1.28vw, .99rem);
  font-weight: 660;
}

.open-scenario[data-case-state="changed"] .open-case-value { color: var(--open-accent); }
.open-scenario[data-case-state="gap"] .open-case-value,
.open-scenario[data-case-state="gap"] .open-case-amount { color: #ffbd89; }

.open-case-trigger {
  max-width: 100%;
  padding: 10px 13px;
  background: var(--open-accent);
  color: #232115;
  font-size: .82rem;
  text-align: left;
}

.open-case-trigger:hover { background: #ffd59d; }
.open-case-trigger span:last-child { font-size: 1.15em; }

.open-case-sample,
.open-case-principles {
  margin: 0;
  color: #e5e9df;
  font-size: .82rem;
  line-height: 1.5;
}

.open-case-sample {
  padding: 11px 13px;
  border-top: 1px solid #748472;
}

.open-case-sample p { margin: 0; }
.open-case-sample p + p { margin-top: 4px; }
.open-case-principles { padding: 0 13px 11px; }

.open-case-effects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0;
  border-top: 1px solid #748472;
  background: #24342a;
}

.open-case-effects > div {
  min-width: 0;
  padding: 12px 13px 11px;
}

.open-case-effects > div + div { border-left: 1px solid #657669; }
.open-case-effects dt { color: #e5e9df; font-size: .76rem; line-height: 1.32; }
.open-case-effects dd {
  margin: 6px 0 0;
  color: #e9dec4;
  font-size: .83rem;
  font-weight: 750;
  line-height: 1.23;
}

.open-case-effects [data-effect="survey"] dd { color: #c1e9bd; }
.open-scenario[data-case-state="changed"] .open-case-effects > :not([data-effect="survey"]),
.open-scenario[data-case-state="gap"] .open-case-effects > :not([data-effect="survey"]) {
  background: #6d3c2c;
}

.open-scenario[data-case-state="changed"] .open-case-effects > :not([data-effect="survey"]) dd,
.open-scenario[data-case-state="gap"] .open-case-effects > :not([data-effect="survey"]) dd {
  color: #ffe1ba;
}

.open-case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 6px;
  padding: 0 6px;
  border-top: 1px solid #657669;
}

.open-case-link, .open-case-explore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 7px;
  color: #f9d29c;
  font-size: .73rem;
  font-weight: 740;
  text-decoration: none;
}

.open-case-explore {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #f5f4e7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.open-case-link:hover, .open-case-explore:hover { background: #5d4b31; }

.open-log {
  display: grid;
  gap: 11px;
  max-height: 258px;
  padding: 1px 7px 3px 0;
  margin-bottom: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7f9484 transparent;
}
.open-message {
  margin: 0;
  padding: 12px;
  border: 1px solid #d5dfd4;
  border-radius: 12px;
  background: #f9f7ef;
  color: #17241d;
  overflow-wrap: anywhere;
  font-size: .87rem;
  line-height: 1.5;
}
.open-message > :first-child { margin-top: 0; }
.open-message > :last-child { margin-bottom: 0; }
.open-message h3, .open-message p, .open-message dl { margin: 7px 0; }
.open-message h3 { font-size: 1rem; }
.open-message p { white-space: pre-wrap; }
.open-message-user { justify-self: end; width: min(92%, 440px); background: #e9f0e6; }
.open-message-user small { color: #496357; font-weight: 700; }
.open-message-results { display: grid; gap: 7px; }
.open-message-results > div {
  padding: 7px 8px;
  border-left: 3px solid #839a8c;
  border-radius: 4px;
  background: #f0f3ee;
}
.open-message-results > div[data-kind="revision"] { border-color: #ad7744; background: #fcf0e1; }
.open-message-results > div[data-kind="continuity"] { border-color: #51836a; }
.open-message dt { font-weight: 750; }
.open-message dd { margin: 0; }
.open-message dd + dd { margin-top: 4px; }
.open-message details { margin-top: 8px; }
.open-message details > summary { color: #2c5442; font-weight: 700; cursor: pointer; }
.open-impact dt { color: #345445; }
.open-impact dd { margin-bottom: 7px; }
.open-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1000px) {
  .open-hero-grid { gap: 24px; padding-block: 36px 44px; }
  .open-hero h1 { font-size: clamp(3.05rem, 6.3vw, 4.5rem); }
  .open-case-effects > div { padding-inline: 10px; }
}

@media (max-width: 740px) {
  .open-hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 35px; }
  .open-hero h1 { font-size: clamp(3rem, 11.6vw, 5.1rem); }
  .open-lead { margin: 13px 0 16px; font-size: 1rem; line-height: 1.46; }
  .open-console { max-width: none; }
  .open-composer { padding: 7px; gap: 6px; }
  .open-composer textarea { min-height: 53px; padding: 6px; }
  .open-send { padding-inline: 9px; }
  .open-case-frame { min-height: 230px; padding: 15px; }
  .open-case-value { font-size: clamp(3.8rem, 13vw, 5.75rem); }
  .open-case-bottom { gap: 11px; }
  .open-case-effects > div { padding: 9px 8px; }
  .open-case-effects dt, .open-case-effects dd { font-size: .72rem; }
}

@media (max-width: 365px) {
  .open-case-frame { padding: 12px; }
  .open-case-trigger { padding-inline: 9px; }
  .open-case-link { letter-spacing: .015em; }
}

.open-header .brand img { width: clamp(145px, 14.5vw, 195px); }

.open-case-location {
  display: block;
  margin-top: 6px;
  color: #fff8ec;
  font-size: .79rem;
  line-height: 1.25;
  text-shadow: 0 1px 5px #101810, 0 1px 12px #101810;
}

.open-territory {
  padding: clamp(42px, 7vw, 96px) 0;
  background: #f4efe2;
  color: #17241d;
}

.open-territory h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.open-territory-intro {
  max-width: 61ch;
  margin: 0 0 clamp(20px, 3vw, 36px);
  color: #37483d;
  line-height: 1.55;
}

.open-territory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.75vw, 36px);
}

.open-territory figure { margin: 0; }

.open-territory img,
.open-territory video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #202e24;
}

.open-territory img { object-fit: cover; object-position: 50% 56%; }
.open-territory video:focus-visible { outline: 2px solid #24523a; outline-offset: 4px; }

.open-territory figcaption {
  margin-top: 10px;
  color: #37483d;
  font-size: .92rem;
  line-height: 1.5;
}

@media (max-width: 740px) {
  .open-territory-grid { grid-template-columns: 1fr; }
}

.open-preview-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #f8d198;
  font-weight: 700;
  text-underline-offset: 4px;
}

.open-log { scroll-margin-top: 85px; }
