/* ═══════════════════════════════════════════════════════════════════════
   REGATE PRIVATE — design system

   Two surfaces, deliberately different worlds:
   · CLIENT  — deep teal-black. Private, unhurried, evening. One column.
   · TEAM    — pale limestone. Daylight, dense, working tool. Sidebar.

   Palette is drawn from the Gulf and from Dubai's building materials rather
   than the black-and-gold shorthand: deep water, limestone, brushed brass
   used only where something is genuinely private or scored.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Ink surfaces (client) */
  --ink:        #0C1618;
  --ink-2:      #122126;
  --ink-3:      #1B3238;
  --ink-line:   #223B41;
  --bone:       #E7E3DB;
  --bone-dim:   #8C9C9C;
  --bone-faint: #5D6E70;

  /* Stone surfaces (team) */
  --stone:      #E8E6E0;
  --stone-2:    #F5F4F0;
  --stone-3:    #FBFAF7;
  --stone-line: #D3D0C7;
  --graphite:   #171D1E;
  --graphite-2: #4A5354;
  --graphite-3: #7C8483;

  /* Accents */
  --brass:      #A8865F;
  --brass-soft: #C9AE88;
  --brass-dim:  rgba(168,134,95,.16);
  --sea:        #4E8C7D;
  --clay:       #A8524A;
  --amber:      #B58A3C;

  --r-sm: 2px;
  --r:    3px;
  --r-lg: 4px;

  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-ui: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shell: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background: var(--ink);
  color: var(--bone);
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--ink-line); margin: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Type scale ────────────────────────────────────────────────────────── */
.d1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 300; letter-spacing: -.015em; }
.d2 { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; }
.d3 { font-family: var(--f-display); font-size: 25px; line-height: 1.2;  font-weight: 400; }
.d4 { font-family: var(--f-display); font-size: 20px; line-height: 1.3;  font-weight: 400; }
.lede { font-family: var(--f-display); font-size: 19px; line-height: 1.62; font-weight: 300; color: var(--bone-dim); max-width: 60ch; }
.t-sm  { font-size: 13.5px; }
.t-xs  { font-size: 12.5px; letter-spacing: .01em; }
.muted { color: var(--bone-dim); }
.faint { color: var(--bone-faint); }
.num { font-variant-numeric: tabular-nums; }

/* Section marker — a hairline and a small serif word, not a caps eyebrow */
.marker {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display); font-size: 15px; font-style: italic;
  color: var(--bone-dim); margin-bottom: 20px;
}
.marker::after { content: ''; flex: 1; height: 1px; background: var(--ink-line); }

/* ── Layout shell ──────────────────────────────────────────────────────── */
.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.stack > * + * { margin-top: var(--gap, 20px); }
.row { display: flex; gap: 16px; align-items: center; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.grow { flex: 1; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--ink-line); }

/* ── Client top bar ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12,22,24,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.topbar-in { max-width: var(--shell); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 32px; height: 66px; }
.wordmark { font-family: var(--f-display); font-size: 19px; letter-spacing: .18em; font-weight: 400; white-space: nowrap; }
.wordmark span { color: var(--brass); font-style: italic; letter-spacing: .04em; }
.mainnav { display: flex; gap: 26px; flex: 1; }
.mainnav a {
  text-decoration: none; font-size: 13.5px; color: var(--bone-dim);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mainnav a:hover { color: var(--bone); }
.mainnav a.on { color: var(--bone); border-bottom-color: var(--brass); }
.navcount { color: var(--brass); font-size: 11px; vertical-align: super; margin-left: 3px; }
.burger { display: none; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 22px; border: 1px solid var(--ink-line); border-radius: var(--r);
  font-size: 13.5px; color: var(--bone); background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--ink-2); border-color: var(--bone-faint); }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #16100A; font-weight: 500; }
.btn-primary:hover { background: #B8956B; border-color: #B8956B; color: #16100A; }
.btn-quiet { border-color: transparent; padding-inline: 0; color: var(--bone-dim); }
.btn-quiet:hover { background: none; color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-size: 12.5px; color: var(--bone-dim); margin-bottom: 7px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 13px; background: var(--ink-2);
  border: 1px solid var(--ink-line); border-radius: var(--r); color: var(--bone);
  transition: border-color .2s var(--ease);
}
.input:focus, .select:focus { border-color: var(--brass); outline: none; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.hint { font-size: 12px; color: var(--bone-faint); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--clay); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 15px; border: 1px solid var(--ink-line); border-radius: 100px;
  font-size: 13px; color: var(--bone-dim); background: transparent;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--bone-faint); color: var(--bone); }
.chip.on { border-color: var(--brass); background: var(--brass-dim); color: var(--bone); }

.range { width: 100%; appearance: none; height: 1px; background: var(--ink-line); margin: 18px 0; }
.range::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--brass); cursor: grab; }
.range::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--brass); cursor: grab; }

/* ── Panels ────────────────────────────────────────────────────────────── */
.panel { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 26px; }
.panel-flat { border: 0; background: none; padding: 0; }

/* ── Metric strip ──────────────────────────────────────────────────────── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-line); }
.metric { padding: 22px 26px 22px 0; border-right: 1px solid var(--ink-line); }
.metric:last-child { border-right: 0; }
.metric-k { font-size: 12.5px; color: var(--bone-dim); margin-bottom: 9px; }
.metric-v { font-family: var(--f-display); font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.metric-n { font-size: 12.5px; color: var(--bone-faint); margin-top: 8px; }
.up { color: var(--sea); } .down { color: var(--clay); }

/* ── Match ring (the signature element) ────────────────────────────────── */
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { display: block; transform: rotate(135deg); }
.ring-track { fill: none; stroke: var(--ink-line); stroke-width: 1.5; }
.ring-arc   { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round;
               transition: stroke-dashoffset 1.1s var(--ease); }
.ring-in { position: absolute; text-align: center; line-height: 1; }
.ring-n { display: block; font-family: var(--f-display); font-weight: 300; letter-spacing: -.02em; display: block; }
.ring-l { font-size: 9.5px; letter-spacing: .18em; color: var(--bone-dim); display: block; margin-top: 6px; }

/* ── Property cards ────────────────────────────────────────────────────── */
.pcard { display: block; text-decoration: none; color: inherit; }
.pcard-img { position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--r); background: var(--ink-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04) brightness(.94); transition: transform .7s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.035); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 100px;
  font-size: 11px; letter-spacing: .06em; background: rgba(12,22,24,.82); backdrop-filter: blur(6px);
  border: 1px solid var(--ink-line);
}
.pcard-badge.private { border-color: var(--brass); color: var(--brass); }
.pcard-score { position: absolute; right: 12px; bottom: 12px; background: rgba(12,22,24,.86); backdrop-filter: blur(6px); border: 1px solid var(--ink-line); border-radius: 100px; padding: 5px 12px; font-size: 12px; }
.pcard-score b { color: var(--brass); font-weight: 500; }
.pcard-body { padding: 15px 2px 0; }
.pcard-t { font-family: var(--f-display); font-size: 19px; line-height: 1.25; }
.pcard-m { font-size: 12.5px; color: var(--bone-dim); margin-top: 5px; }
.pcard-p { font-size: 15px; margin-top: 11px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }

/* ── Specification list ────────────────────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--r); overflow: hidden; }
.spec { background: var(--ink); padding: 16px 18px; }
.spec-k { font-size: 12px; color: var(--bone-dim); margin-bottom: 6px; }
.spec-v { font-size: 15px; }

/* ── Intelligence bars ─────────────────────────────────────────────────── */
.ibar + .ibar { margin-top: 17px; }
.ibar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.ibar-l { font-size: 13.5px; }
.ibar-v { font-family: var(--f-display); font-size: 17px; }
.ibar-track { height: 2px; background: var(--ink-line); border-radius: 2px; overflow: hidden; }
.ibar-fill { display: block; height: 100%; background: var(--brass); width: 0; transition: width 1s var(--ease); }
.ibar-n { font-size: 12px; color: var(--bone-faint); margin-top: 6px; }

/* ── Reason ticks ──────────────────────────────────────────────────────── */
.reasons li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ink-line); font-size: 13.5px; }
.reasons li:last-child { border-bottom: 0; }
.tick { color: var(--brass); flex: none; }
.tick.no { color: var(--bone-faint); }

/* ── Gallery ───────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 460px; gap: 8px; }
.gallery-main { overflow: hidden; border-radius: var(--r); min-height: 0; }
.gallery-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.gallery-side > div { overflow: hidden; border-radius: var(--r); position: relative; min-height: 0; }
.gallery-more { position: absolute; inset: 0; background: rgba(12,22,24,.72); display: grid; place-items: center; font-size: 13px; }

/* ── Timeline ──────────────────────────────────────────────────────────── */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--ink-line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -26px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--bone-faint); }
.tl-item.done .tl-dot { background: var(--brass); border-color: var(--brass); }
.tl-item.now .tl-dot { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-dim); }
.tl-d { font-size: 12px; color: var(--bone-faint); margin-bottom: 3px; }
.tl-t { font-size: 14.5px; }
.tl-b { font-size: 13px; color: var(--bone-dim); margin-top: 3px; }

/* ── Stage rail ────────────────────────────────────────────────────────── */
.stages { display: flex; gap: 2px; }
.stage { flex: 1; padding: 13px 14px; background: var(--ink-2); border-top: 2px solid var(--ink-line); font-size: 12px; color: var(--bone-faint); }
.stage.done { border-top-color: var(--brass); color: var(--bone-dim); }
.stage.now { border-top-color: var(--brass); background: var(--ink-3); color: var(--bone); }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ink-line); }
.team .alert { border-bottom-color: var(--stone-line); }
.alert:last-child { border-bottom: 0; }
.alert-bar { width: 2px; flex: none; border-radius: 2px; background: var(--graphite-3); }
.alert.urgent .alert-bar { background: var(--clay); }
.alert.warn   .alert-bar { background: var(--amber); }
.alert.info   .alert-bar { background: var(--sea); }
.alert-t { font-size: 14px; }
.alert-b { font-size: 13px; color: var(--graphite-2); margin-top: 2px; }

/* ── Notes / disclaimers ───────────────────────────────────────────────── */
.disclaimer {
  font-size: 12.5px; line-height: 1.6; color: var(--bone-faint);
  border-left: 1px solid var(--ink-line); padding-left: 16px; max-width: 62ch;
}
.demo-flag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px;
  color: var(--brass); border: 1px solid var(--brass); border-radius: 100px; padding: 4px 12px;
}

/* ── States ────────────────────────────────────────────────────────────── */
.state { text-align: center; padding: 72px 24px; }
.state-t { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; }
.state-b { color: var(--bone-dim); max-width: 42ch; margin: 0 auto 22px; font-size: 14px; }
.spinner { width: 22px; height: 22px; border: 1.5px solid var(--ink-line); border-top-color: var(--brass); border-radius: 50%; margin: 0 auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Entrance (one orchestrated moment, client dashboard only) ─────────── */
.enter > * { opacity: 0; animation: rise .7s var(--ease) forwards; }
.enter > *:nth-child(1) { animation-delay: .05s; }
.enter > *:nth-child(2) { animation-delay: .14s; }
.enter > *:nth-child(3) { animation-delay: .23s; }
.enter > *:nth-child(4) { animation-delay: .32s; }
.enter > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: var(--r); padding: 12px 20px; font-size: 13.5px; animation: rise .3s var(--ease); box-shadow: 0 12px 32px rgba(0,0,0,.4); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(6,12,13,.78); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-lg); padding: 30px; width: min(520px, 100%); max-height: 86vh; overflow: auto; }

/* ═══ TEAM SURFACE ══════════════════════════════════════════════════════ */
body.team { background: var(--stone); color: var(--graphite); }
.team .app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
/* The sidebar is sticky at 100vh, so on pages taller than the viewport its own
   background stops short. Paint the rail on the grid itself instead. */
@media (min-width: 1001px) { .team .app { background: linear-gradient(to right, var(--stone-2) 0 232px, var(--stone) 232px); } }
.side { background: var(--stone-2); border-right: 1px solid var(--stone-line); padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .wordmark { padding: 0 24px 26px; display: block; font-size: 17px; }
.side-group { padding: 20px 24px 7px; font-size: 11px; letter-spacing: .1em; color: var(--graphite-3); }
.side a { display: flex; justify-content: space-between; padding: 9px 24px; text-decoration: none; font-size: 13.5px; color: var(--graphite-2); border-left: 2px solid transparent; }
.side a:hover { background: var(--stone-3); color: var(--graphite); }
.side a.on { border-left-color: var(--brass); color: var(--graphite); background: var(--stone-3); }
.side-n { color: var(--graphite-3); font-size: 12.5px; }
.main { padding: 34px 38px 80px; max-width: 1280px; min-width: 0; }  /* min-width:0 or the grid item refuses to shrink and the boards push the page wide */

.team .d1, .team .d2, .team .d3, .team .d4 { color: var(--graphite); }
.team .muted { color: var(--graphite-2); }
.team .faint { color: var(--graphite-3); }
.team .panel { background: var(--stone-3); border-color: var(--stone-line); }
.team .marker { color: var(--graphite-2); }
.team .marker::after { background: var(--stone-line); }
.team .metrics { border-top-color: var(--stone-line); }
.team .metric { border-right-color: var(--stone-line); }
.team .metric-k { color: var(--graphite-2); }
.team .metric-n { color: var(--graphite-3); }
.team .btn { border-color: var(--stone-line); color: var(--graphite); }
.team .btn:hover { background: var(--stone-2); border-color: var(--graphite-3); }
.team .btn-primary { background: var(--graphite); border-color: var(--graphite); color: var(--stone-3); }
.team .btn-primary:hover { background: #2A3234; border-color: #2A3234; color: var(--stone-3); }
.team .input, .team .select, .team textarea.input { background: var(--stone-3); border-color: var(--stone-line); color: var(--graphite); }
.team .select { background-image: linear-gradient(45deg, transparent 50%, var(--graphite-3) 50%), linear-gradient(135deg, var(--graphite-3) 50%, transparent 50%); }
.team .input:focus, .team .select:focus { border-color: var(--brass); }
.team .field > label { color: var(--graphite-2); }
.team .chip { border-color: var(--stone-line); color: var(--graphite-2); }
.team .chip.on { border-color: var(--brass); background: var(--brass-dim); color: var(--graphite); }
.team hr, .team .section + .section { border-color: var(--stone-line); }
.team .ring-track { stroke: var(--stone-line); }
.team .ring-l { color: var(--graphite-3); }
.team .ibar-track { background: var(--stone-line); }
.team .tl::before, .team .tl-dot { border-color: var(--stone-line); }
.team .tl-dot { background: var(--stone); }
.team .tl-d { color: var(--graphite-3); }
.team .tl-b { color: var(--graphite-2); }
.team .disclaimer { border-left-color: var(--stone-line); color: var(--graphite-3); }
.team .modal, .team .toast { background: var(--stone-3); border-color: var(--stone-line); color: var(--graphite); }

/* Data table */
/* Tables live on both surfaces, so their lines follow the surface. */
.dt { font-size: 13.5px; }
.dt th { text-align: left; font-weight: 500; color: var(--bone-dim); font-size: 12px; padding: 0 14px 10px 0; border-bottom: 1px solid var(--ink-line); white-space: nowrap; }
.dt td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
.team .dt th { color: var(--graphite-2); border-bottom-color: var(--stone-line); }
.team .dt td { border-bottom-color: var(--stone-line); }
.team .dt tr:hover td { background: var(--stone-3); }
.dt .num-c { text-align: right; padding-right: 0; }
.dt-link { text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.team .dt-link { border-bottom-color: var(--stone-line); }
.dt-link:hover { border-bottom-color: var(--bone); }
.team .dt-link:hover { border-bottom-color: var(--graphite); }

/* Pipeline board */
.board { max-width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(212px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--graphite-2); padding-bottom: 9px; border-bottom: 1px solid var(--stone-line); margin-bottom: 12px; }
.card-mini { background: var(--stone-3); border: 1px solid var(--stone-line); border-radius: var(--r); padding: 13px; margin-bottom: 9px; font-size: 13px; }
.card-mini-t { font-size: 13.5px; margin-bottom: 5px; }
.card-mini-m { color: var(--graphite-3); font-size: 12px; }

/* Tag */
.tag { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 11.5px; border: 1px solid currentColor; }
.tag-ok { color: var(--sea); } .tag-warn { color: var(--amber); } .tag-bad { color: var(--clay); } .tag-neutral { color: var(--graphite-3); }

/* Bar chart */
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 78px; gap: 14px; align-items: center; font-size: 13px; }
.bar-t { display: block; height: 6px; background: var(--stone-line); border-radius: 3px; overflow: hidden; }
.bar-f { display: block; height: 100%; background: var(--graphite); border-radius: 3px; transition: width .9s var(--ease); }

/* ═══ AUTH ══════════════════════════════════════════════════════════════ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--ink-2); min-height: 0; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) contrast(1.06) brightness(.6); }
.auth-art-t { position: absolute; left: 48px; right: 48px; bottom: 48px; }
.auth-form { display: grid; align-content: center; padding: 48px; width: 100%; max-width: 480px; margin-inline: auto; }
.demo-list { border-top: 1px solid var(--ink-line); margin-top: 30px; padding-top: 22px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; font-size: 13px; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .team .metric:nth-child(-n+2) { border-bottom-color: var(--stone-line); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { max-width: none; }
  .team .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--stone-line); }
  .side .wordmark, .side-group { display: none; }
  .side a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 8px 16px; }
  .side a.on { border-left: 0; border-bottom-color: var(--brass); }
  .main { padding: 24px 20px 70px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .gallery-main { aspect-ratio: 3/2; }
  .gallery-side { grid-auto-flow: column; grid-template-rows: 92px; }
}
@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .wrap, .wrap-narrow { padding: 0 18px; }
  .topbar-in { padding: 0 18px; gap: 16px; }
  .mainnav {
    position: fixed; inset: 66px 0 auto; background: var(--ink); flex-direction: column;
    gap: 0; padding: 10px 18px 24px; border-bottom: 1px solid var(--ink-line);
    display: none;
  }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 13px 0; border-bottom: 1px solid var(--ink-line); }
  .mainnav a.on { border-bottom-color: var(--ink-line); color: var(--brass); }
  .burger { display: block; margin-left: auto; font-size: 13px; color: var(--bone-dim); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-bottom: 1px solid var(--ink-line); padding-right: 0; }
  .metric:last-child { border-bottom: 0; }
  .section { padding: 40px 0; }
  .stages { flex-direction: column; }
  .stage { border-top: 0; border-left: 2px solid var(--ink-line); }
  .stage.done, .stage.now { border-top: 0; border-left-color: var(--brass); }
  .dt, .dt thead, .dt tbody, .dt tr, .dt th, .dt td { display: block; }
  .dt thead { display: none; }
  .dt tr { border-bottom: 1px solid var(--ink-line); padding: 12px 0; }
  .team .dt tr { border-bottom-color: var(--stone-line); }
  .dt td { border: 0; padding: 3px 0; }
  .dt td::before { content: attr(data-k) '  '; color: var(--bone-faint); font-size: 12px; }
  .team .dt td::before { color: var(--graphite-3); }
  .dt .num-c { text-align: left; }
  .bar-row { grid-template-columns: 96px 1fr 62px; gap: 10px; font-size: 12.5px; }
  .auth-form { padding: 32px 20px; }
}

@media print { .topbar, .side, .btn { display: none; } body { background: #fff; color: #000; } }
