@font-face {
  font-family: "Brockmann";
  src: url("./font/Brockmann-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brockmann";
  src: url("./font/Brockmann-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cim-blue: #0000ff;
  --cim-light: #b9d3dc;
  --cim-dark: #071d49;
  --cim-black: #000000;
  --ring-thickness: 75px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  background: radial-gradient(circle at 25% 20%, #0b2d66, #010207 60%);
  color: #ffffff;
  font-family: "Brockmann", Arial, sans-serif;
}

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
}

.screen {
  width: min(95vmin, 1280px);
  height: min(95vmin, 1280px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(185, 211, 220, 0.7);
  background:
    radial-gradient(circle at 65% 35%, rgba(0, 0, 255, 0.16), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(7, 29, 73, 0.45), transparent 50%),
    #02060f;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(185, 211, 220, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
  transition: opacity 500ms ease;
}

.screen.breathing::before {
  opacity: 0.45;
}

#ring-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.case-visual {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.34;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 1;
  transition: width 220ms ease, height 220ms ease, opacity 220ms ease, background-image 220ms ease;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.38) 90%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.38) 90%, rgba(0, 0, 0, 0) 100%);
}

.selection-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 7, 18, 0.48);
  transition: opacity 220ms ease;
  z-index: 2;
}

.content {
  position: absolute;
  left: 50%;
  top: calc(50% - (var(--visual-d, 320px) / 2));
  height: var(--visual-d, 320px);
  transform: translateX(-50%);
  width: min(49%, 532px);
  max-height: none;
  padding-top: 100px;
  padding-bottom: 100px;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 260ms ease, filter 260ms ease, opacity 220ms ease;
  z-index: 3;
  scrollbar-width: none;
  -ms-overflow-style: none;
  clip-path: circle(calc((var(--visual-d, 320px) / 2) - 8px) at 50% 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.92) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 10%, rgba(0, 0, 0, 0.92) 90%, transparent 100%);
}

.content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.project-client {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cim-light);
  font-size: clamp(10px, 1.2vmin, 15px);
  display: none;
}

.project-logo {
  width: min(38%, 240px);
  height: auto;
  max-height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: none;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 3.3vmin, 42px);
  line-height: 1.06;
  max-width: 24ch;
  padding-bottom: 50px;
}

.facts-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  text-align: left;
}

.facts-grid-top {
  border-top: 0.5px solid rgba(255, 255, 255, 0.95);
  padding-top: 10px;
}

.facts-grid-bottom {
  margin-top: 6px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.95);
  padding-top: 10px;
  padding-bottom: 50px;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
}

.fact-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #ffffff;
  opacity: 0.9;
}

.fact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}

.fact-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(10px, 0.95vmin, 12px);
}

.fact-value {
  margin: 0;
  color: #ffffff;
  font-size: clamp(15px, 2.4vmin, 52px);
  line-height: 1.05;
  font-weight: 700;
}

.story-section {
  width: 100%;
  text-align: left;
  border-top: 0.5px solid rgba(255, 255, 255, 0.95);
  padding-top: 10px;
}

.story-section h2 {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(14px, 1.65vmin, 22px);
}

.story-section p {
  margin: 6px 0 0;
  color: #c8dbe5;
  font-size: clamp(14px, 1.55vmin, 21px);
  line-height: 1.45;
  white-space: pre-line;
}

.screen.selecting {
  --ring-thickness: 250px;
}

.screen.selecting .selection-overlay {
  opacity: 1;
}

.screen.selecting .content {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.selection-titles {
  position: absolute;
  inset: 25% 18%;
  display: block;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease;
  overflow: hidden;
}

.selection-track {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 170ms ease-out, opacity 170ms ease-out;
}

.selection-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.34);
  font-size: clamp(21px, 2.85vmin, 36px);
  font-weight: 400;
  line-height: 1.18;
  max-width: 24ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 180ms ease, transform 180ms ease;
}

.selection-title.current {
  color: rgba(255, 255, 255, 1);
  font-size: clamp(24px, 3.4vmin, 43px);
  font-weight: 700;
  transform: scale(1);
}

.selection-title.prev {
  opacity: 0.5;
  transform: translateY(-4px);
}

.selection-title.next {
  opacity: 0.5;
  transform: translateY(4px);
}

.selection-title.prev2,
.selection-title.next2 {
  opacity: 0.32;
  font-size: clamp(18px, 2.25vmin, 27px);
}

.selection-title.prev2 {
  transform: translateY(-8px);
}

.selection-title.next2 {
  transform: translateY(8px);
}

@media (max-width: 900px) {
  .content {
    width: min(53%, 560px);
    max-height: none;
  }

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

  .selection-titles {
    inset: 27% 10%;
  }
}

.screen.selecting .selection-titles {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.status-badge {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 9999;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.fetch-status {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 9999;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
