@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Light"),
    local("Faktum-Light"),
    url("./assets/fonts/Faktum-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Regular"),
    local("Faktum-Regular"),
    url("./assets/fonts/Faktum-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum Medium"),
    local("Faktum-Medium"),
    url("./assets/fonts/Faktum-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Faktum";
  src:
    local("Faktum SemiBold"),
    local("Faktum-SemiBold"),
    url("./assets/fonts/Faktum-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand: #d5a730;
  --brand-strong: #b48816;
  --brand-soft: #ead18a;
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --shell: #f5f3ee;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-soft: rgba(248, 246, 240, 0.86);
  --surface-dark: #050505;
  --surface-dark-2: #1a1a1a;
  --line: rgba(17, 17, 17, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --ok: #85d7b4;
  --warning: #f1d38a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius-xl: 0;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Faktum", "Public Sans", "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 167, 48, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #faf9f5 0%, #efebe1 100%);
}

img,
video {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(380px, 60%);
  gap: 0;
}

.data-panel {
  order: 1;
}

.video-panel {
  order: 2;
}

.panel-surface {
  min-height: 100vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.panel-surface-dark {
  position: relative;
  padding: 30px 30px 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(213, 167, 48, 0.22), transparent 24%),
    radial-gradient(circle at 84% 72%, rgba(213, 167, 48, 0.1), transparent 24%),
    linear-gradient(135deg, #050505 0%, #111111 52%, #1a1a1a 100%);
  color: #fff8f6;
}

.panel-surface-light {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(213, 167, 48, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.98));
  border-left: 1px solid rgba(213, 167, 48, 0.16);
}

.panel-header,
.data-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 24px;
}

.brand-logo {
  width: clamp(150px, 12vw, 188px);
  height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(213, 167, 48, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(133, 215, 180, 0.16);
}

.video-stage {
  position: relative;
  min-height: calc(100vh - 132px);
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #050505;
}

.melt-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080808;
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.44) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.48) 0%, rgba(5, 5, 5, 0) 46%);
  pointer-events: none;
}

.video-overlay,
.video-note,
.video-timer {
  position: absolute;
  z-index: 1;
}

.video-overlay {
  left: 34px;
  bottom: 34px;
  max-width: 34rem;
}

.video-note {
  right: 24px;
  top: 24px;
  max-width: 18rem;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.5);
  color: rgba(255, 248, 246, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
  backdrop-filter: blur(14px);
}

.video-timer {
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.5);
  color: rgba(255, 248, 246, 0.92);
  backdrop-filter: blur(14px);
}

.video-timer-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 248, 246, 0.68);
}

.video-timer-value {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 246, 0.68);
}

.eyebrow-light {
  color: var(--brand-strong);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}

h3 {
  font-size: 1.34rem;
}

.video-copy {
  color: rgba(255, 248, 246, 0.84);
  font-size: 1rem;
  line-height: 1.55;
}

.video-label {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(213, 167, 48, 0.12);
  color: rgba(255, 248, 246, 0.92);
  font-size: 0.92rem;
}

.meta-block {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.meta-label,
.section-label,
.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-label,
.section-label {
  color: var(--ink-soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.metric-card,
.detail-card {
  border-radius: var(--radius-lg);
}

.metric-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.96));
  border: 1px solid rgba(213, 167, 48, 0.18);
}

.metric-card-primary {
  background:
    linear-gradient(135deg, rgba(213, 167, 48, 0.18), rgba(255, 255, 255, 0.92)),
    var(--surface-soft);
}

.metric-value {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-trend {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.detail-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.96));
  border: 1px solid rgba(213, 167, 48, 0.18);
}

.detail-card-dark {
  background:
    radial-gradient(circle at top left, rgba(213, 167, 48, 0.2), transparent 26%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff8f6;
}

.detail-card-dark .section-label {
  color: rgba(255, 248, 246, 0.64);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.bars-stack {
  display: grid;
  gap: 16px;
}

.temp-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(35, 31, 32, 0.08);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-soft) 100%);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.event-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 246, 0.86);
}

.event-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.event-time {
  color: var(--warning);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .detail-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .panel-surface {
    min-height: auto;
  }

  .video-stage {
    min-height: 58vh;
  }
}

@media (max-width: 720px) {
  .page-shell {
    min-height: auto;
  }

  .panel-surface-dark,
  .panel-surface-light {
    padding: 18px;
  }

  .panel-header,
  .data-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-stage {
    min-height: 50vh;
  }

  .video-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .video-note {
    left: 18px;
    right: 18px;
    top: 18px;
    max-width: none;
  }

  .video-timer {
    right: 18px;
    bottom: 18px;
  }

  .temp-row {
    grid-template-columns: 66px minmax(0, 1fr) 74px;
    gap: 10px;
    font-size: 0.88rem;
  }
}
