/* =========================================================
   Quiet Storm Capital — "Night Desk"
   Ink ground · steel accent · Instrument Sans / Manrope / IBM Plex Mono
   ========================================================= */

:root {
  --ink:        #0c1116;   /* page ground */
  --ink-2:      #10161c;   /* raised panels */
  --ink-3:      #151c24;   /* table stripes, hover */
  --line:       #1f2830;   /* hairlines */
  --line-2:     #2a3540;
  --text:       #e6e9ec;
  --text-2:     #aab3bc;   /* body */
  --text-3:     #6f7a85;   /* labels, mono */
  --steel:      #7fa7c9;   /* accent */
  --steel-dim:  #4f7593;

  --f-head: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1280px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body, h1, h2, h3, p, ul, address, table { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

body {
  background: var(--ink);
  color: var(--text-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* mono label */
.k, .eyebrow, .idx, .n {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: rgba(12, 17, 22, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark-img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-family: var(--f-head); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--text); }
@media (max-width: 720px) {
  .wordmark-img { height: 32px; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
}
@media (max-width: 440px) {
  .site-nav a:nth-child(3) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.05); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,17,22,0.35) 0%, rgba(12,17,22,0.15) 35%, rgba(12,17,22,0.85) 80%, var(--ink) 100%),
    linear-gradient(90deg, rgba(12,17,22,0.55) 0%, rgba(12,17,22,0) 60%);
}
.hero-content { position: relative; padding-block: 3rem 3.5rem; }
.hero .eyebrow { color: var(--steel); margin-bottom: 1.25rem; }
.hero-name {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5.25rem);
  line-height: 0.98; letter-spacing: -0.025em; color: var(--text);
  max-width: 14ch; text-wrap: balance;
}
.hero-tagline {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--text-2);
}

/* ---------- Facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.facts-inner {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between;
  gap: 1.25rem 2rem; padding-block: 1rem;
}
.facts-inner > div { display: flex; flex-direction: column; gap: 0.2rem; }
.facts .v { font-family: var(--f-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: var(--steel); }
@media (max-width: 900px) { .facts-inner { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; } }
@media (max-width: 520px) { .facts-inner { grid-template-columns: repeat(2, auto); } }

/* ---------- Content blocks ---------- */
.block { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-bottom: 1px solid var(--line); }
.block-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) {
  .block-grid { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 4rem; }
  .block-label { position: sticky; top: 92px; align-self: start; }
}
.block-label h2 {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--text);
  margin-top: 0.6rem;
}
.block-label .idx { color: var(--steel); }
.label-note { margin-top: 0.75rem; font-size: 0.92rem; color: var(--text-3); max-width: 26ch; }

.block-body p { max-width: var(--measure); }
.block-body p + p { margin-top: 1.1rem; }
.lead {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 1.75rem;
}

/* ---------- Principles ---------- */
.principles {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.principles li {
  background: var(--ink); padding: 1.5rem 1.5rem 1.65rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: background 160ms ease;
}
.principles li:hover { background: var(--ink-2); }
.principles .n { color: var(--steel); }
.principles h3 {
  font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--text);
}
.principles p { font-size: 0.95rem; color: var(--text-2); }
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }

/* ---------- Desk: market sessions ---------- */
.desk { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.desk-inner { padding-block: 1.6rem 1.8rem; }
.desk-title { margin-bottom: 1rem; }
.sessions {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.sessions li { background: var(--ink); padding: 1rem 1.1rem 1.05rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sessions .city { font-family: var(--f-head); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.sessions .clock { font-family: var(--f-mono); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sessions .state { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 0.45rem; }
.sessions .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.sessions li.open .state { color: var(--steel); }
.sessions li.open .state::before { background: var(--steel); box-shadow: 0 0 0 3px rgba(127,167,201,0.18); }
@media (max-width: 900px) { .sessions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .sessions { grid-template-columns: repeat(2, 1fr); } .sessions li:last-child { grid-column: span 2; } }

/* ---------- Mandate ---------- */
.mandate { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 760px) { .mandate { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.mandate-col h3 { margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line-2); color: var(--steel); }
.mandate-col.no h3 { color: var(--text-3); }
.mandate-col ul { display: flex; flex-direction: column; }
.mandate-col li { position: relative; padding: 0.8rem 0 0.8rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.5; color: var(--text-2); }
.mandate-col li::before { position: absolute; left: 0; top: 0.82rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--steel); content: "+"; }
.mandate-col.no li::before { content: "\2013"; color: var(--text-3); }
.mandate-col li:first-child { padding-top: 0.2rem; }
.mandate-col li:first-child::before { top: 0.22rem; }

/* ---------- Contact ---------- */
.contact-email {
  display: inline-block;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text); border-bottom: 2px solid var(--steel); padding-bottom: 0.2rem;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.contact-email:hover { color: var(--steel); }
.contact-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .contact-cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-cols .k { display: block; margin-bottom: 0.6rem; }
.contact-cols address { font-size: 0.95rem; line-height: 1.7; color: var(--text-2); }
.contact-note { font-size: 0.92rem; color: var(--text-3); max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.25rem 3rem; background: var(--ink-2); }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 900px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 4rem; } }
.footer-left { display: flex; align-items: flex-start; gap: 0.9rem; }
.footer-mark { flex: none; margin-top: 2px; }
.footer-legal { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.8; color: var(--text-3); }
.footer-legal a { color: var(--steel); }
.footer-legal a:hover { color: var(--text); }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.6; color: var(--text-3); max-width: 60ch; }

/* ---------- A11y / motion ---------- */
a:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
::selection { background: var(--steel-dim); color: var(--text); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
