/* Oaths of Cinder section (marketing/website/README.md). Laid out like the site's Work In Progress section: copy and
   one picture side by side, then a card, over a softly blurred loop of the game with the game's own ember colour.
   Uses the page's tokens (--ink, --bone, --mute, --gold, --f-*, --gut) and its .wrap / .label / .btn / .lede / .player
   classes; everything else is scoped under .oc. */

.oc {
  --oc-ember: #ff7a2a;
  --oc-ember-hi: #ffb15e;
  --oc-coal: #120807;
  --oc-line: rgba(255, 122, 42, .26);
  position: relative;
  overflow: hidden;
  background: var(--oc-coal);
  border-block: 1px solid var(--oc-line);
  isolation: isolate;
}
/* The background: a loop of the game, blurred in the file (oaths-bg.mp4), under a scrim that keeps the copy readable
   and lets the picture show on the film's side. */
.oc-bg {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  z-index: -3;
  will-change: transform;
}
.oc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 8, 7, .94) 26%, rgba(18, 8, 7, .5) 72%, rgba(18, 8, 7, .72)),
    linear-gradient(180deg, rgba(18, 8, 7, .45), transparent 28%, transparent 72%, rgba(18, 8, 7, .55));
  pointer-events: none;
}
.oc-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.oc .label { color: var(--oc-ember-hi); }

.oc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.oc-title {
  font-size: clamp(34px, 4.4vw, 60px);
  margin-top: 18px;
  background: linear-gradient(100deg, #ffd9a0 0%, var(--oc-ember-hi) 30%, #fff1dc 48%, var(--oc-ember) 70%, #b8421a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: oc-sheen 8s ease-in-out infinite;
}
@keyframes oc-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.oc .lede { color: #c9b8a4; font-size: 18px; margin: 20px 0 26px; max-width: 54ch; }
.oc-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 122, 42, .08);
  border: 1px solid var(--oc-line);
  font-size: 14px;
  color: #f1dcc4;
}
.oc-facts b { color: var(--oc-ember-hi); font-family: var(--f-mono); }
.oc-facts i { width: 4px; height: 4px; border-radius: 50%; background: var(--oc-ember); opacity: .7; }
.oc .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.oc .btn.primary { background: linear-gradient(180deg, var(--oc-ember-hi), var(--oc-ember)); border-color: transparent; color: #1c0b04; box-shadow: 0 10px 40px rgba(255, 122, 42, .28); }
.oc .btn.primary:hover { box-shadow: 0 0 0 4px rgba(255, 122, 42, .22), 0 12px 40px rgba(255, 122, 42, .3); }

/* The film: the page's .player frame with an ember edge, the poster until someone asks for the trailer. */
.oc-film { border-color: var(--oc-line); box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 90px rgba(255, 122, 42, .12); }
.oc-video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.oc-big {
  position: absolute;
  inset: auto auto 18px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 177, 94, .45);
  background: rgba(18, 8, 7, .72);
  backdrop-filter: blur(8px);
  color: var(--bone);
  font: 600 15px var(--f-body);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.oc-big:hover { background: rgba(40, 16, 9, .85); border-color: var(--oc-ember-hi); transform: translateY(-1px); }
.oc-big b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--oc-ember-hi), var(--oc-ember));
  display: grid;
  place-items: center;
}
.oc-big b::before { content: ''; border-left: 12px solid #1c0b04; border-block: 8px solid transparent; margin-left: 3px; }
.oc-len { font: 600 12px var(--f-mono); color: var(--mute); }
.oc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .6);
  color: var(--bone);
  font: 600 13px var(--f-body);
  cursor: pointer;
}
.oc-film.is-playing .oc-big { display: none; }

/* The card under the row, the twin of the Work In Progress section's. */
.oc-card {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(255, 122, 42, .14), rgba(226, 177, 85, .05));
  border: 1px solid var(--oc-line);
  backdrop-filter: blur(6px);
}
.oc-card-name { font: 800 22px var(--f-display); white-space: nowrap; }
.oc-card-name span { color: var(--oc-ember-hi); }
.oc-card-tag { display: block; margin-bottom: 4px; font: 700 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--oc-ember-hi); }
.oc-card p { color: #c9b8a4; font-size: 15px; }
.oc-card-link {
  font: 700 11px var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oc-ember-hi);
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  padding: 10px 15px;
  white-space: nowrap;
}
.oc-card-link:hover { border-color: var(--oc-ember-hi); }

@media (max-width: 860px) {
  .oc-grid, .oc-card { grid-template-columns: 1fr; }
  .oc-card { gap: 12px; }
  .oc-card-link { justify-self: start; }
  .oc::after { background: linear-gradient(180deg, rgba(18, 8, 7, .9), rgba(18, 8, 7, .78) 55%, rgba(18, 8, 7, .6)); }
}
@media (max-width: 560px) {
  .oc-big { inset: auto auto 12px 12px; font-size: 14px; }
  .oc-big b { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-title { animation: none; }
}
