:root{
  --bg0:#06080c;
  --bg1:#11161d;
  --panel: rgba(10, 14, 18, 0.90);
  --text:#e6eef7;
  --muted:#9fb3c8;
  --hair: rgba(255,255,255,0.10);
  --hair2: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }

body{
  margin:0;
  background: radial-gradient(circle at center, var(--bg1) 0%, var(--bg0) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

header{
  position: sticky;
  top: 0;
  z-index: 5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 24px;
  background: rgba(10, 14, 18, 0.75);
  backdrop-filter: blur(6px);
}

.site-title{ font-weight:600; }

nav a{
  margin-left:18px;
  text-decoration:none;
  color:var(--muted);
}
nav a:hover{ color:#fff; }

.clock-main{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  /* Let the page scroll naturally; the clock lives at the top */
  min-height: auto;
  padding: 18px 16px 36px;
  gap: 16px;
}


canvas{
  /* Keep the wheel perfectly circular on all screens */
  width: min(92vmin, 78vh, 900px);
  height: min(92vmin, 78vh, 900px);
  display: block;
  margin: 6px auto 0;
}


.hint-bar{
  margin-top: 6px;
  opacity: 0.6;
  font-size: 13px;
  text-align:center;
  padding: 0 16px;
}

.fab{
  position:absolute;
  top:16px;
  right:16px;
  z-index: 2;
  border:1px solid var(--hair);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-size: 13px;
}
.fab:hover{ background: rgba(255,255,255,0.07); }

.panel{
  position: fixed;
  top: 70px;
  right: 0;
  min-height: calc(100vh - 70px);
  padding: 22px 16px 28px;
  gap: 16px;
  width: min(420px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--hair);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display:flex;
  flex-direction:column;
  padding: 16px 18px 12px 16px; /* extra right padding */
  z-index: 10;
}

.panel.open{ transform: translateX(0); }

.panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair2);
}

.panel-title{ font-weight:650; letter-spacing:0.01em; }

.panel-sub{ color:var(--muted); font-size:12px; margin-top:4px; opacity:0.95; }

.icon-btn{
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
  font-size: 13px;
  flex: 0 0 auto;
}
.icon-btn:hover{ background: rgba(255,255,255,0.07); }

.panel-body{
  padding-top: 12px;
  padding-bottom: 32px;
  padding-right: 18px; /* keeps sliders/labels clear of scrollbar */
  overflow:auto;
  flex:1;
  scrollbar-gutter: stable both-edges;
}

.section-label{ font-size:12px; color:var(--muted); margin:10px 0 8px; }

.list{ display:flex; flex-direction:column; gap:6px; }

.item{
  width:100%;
  text-align:left;
  border:1px solid var(--hair2);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-size: 13px;
}
.item:hover{ background: rgba(255,255,255,0.06); }
.item.active{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

.editor{ margin-top:12px; padding-top:12px; border-top:1px solid var(--hair2); }

.row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kv{
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0.95;
}

.slider{
  width: calc(100% - 10px);
  margin:10px 0 14px;
  overflow: visible; /* prevent thumb from clipping */
}

input[type="range"]{
  max-width: 100%;
}

.controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top:10px;
  border-top:1px solid var(--hair2);
}

.btn{
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-size: 13px;
}
.btn:hover{ background: rgba(255,255,255,0.07); }

.btn.primary{
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}

.small-note{
  opacity: 0.75;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.5;
  padding-right: 6px; /* keeps paragraph clear of scrollbar */
}

.text-page{
  max-width: 760px;
  margin: auto;
  padding: 40px 24px;
  line-height: 1.6;
}


/* ---------- Homepage phase blocks (v1.4) ---------- */
.phase-stack{
  width: min(980px, 96vw);
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hair2);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-kicker{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-title{
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.card-subtitle{
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.2;
}

.card-lede{
  margin: 0;
  color: var(--text);
  opacity: 0.9;
  line-height: 1.45;
}

.card-label{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-text{
  margin: 0;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
}

.card-footnote{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.85;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.45;
}

.bullets li{ margin: 4px 0; }

@media (max-width: 760px){
  .grid-2{ grid-template-columns: 1fr; }
  .card-title{ font-size: 20px; }
}


.baseline-note{
  max-width: 900px;
  margin: 2px auto 0;
  text-align: center;
  opacity: 0.75;
  font-size: 12px;
  line-height: 1.5;
  padding: 0 16px;
}
