/* ============================================================
   Black Ridge Capitol Group LLC — design tokens + styles
   Display: Clash Display  ·  Body: Satoshi
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --shell: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark (default) */
:root,
[data-theme='dark'] {
  --bg: #0a0b0d;
  --surface: #101216;
  --surface-2: #161920;
  --border: #24272e;
  --text: #eceae4;
  --muted: #999ca3;
  --accent: #cf9f4e;
  --accent-strong: #e4b96f;
  --on-accent: #14110a;
  --scrim: rgba(8, 9, 11, 0.62);
  --header-bg: rgba(10, 11, 13, 0.78);
}

[data-theme='light'] {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;
  --border: #dcd8cf;
  --text: #16181c;
  --muted: #5f6268;
  --accent: #8a6511;
  --accent-strong: #6f5209;
  --on-accent: #fffaf0;
  --scrim: rgba(8, 9, 11, 0.5);
  --header-bg: rgba(246, 245, 241, 0.82);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - var(--space-10), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
}

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

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}

.accent {
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  padding: var(--space-2) var(--space-4);
}
.btn--block {
  width: 100%;
  margin-top: var(--space-6);
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header--scrolled {
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: var(--space-8);
}
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-block: var(--space-1);
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  width: 100%;
}

.navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.navtoggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.navtoggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.navtoggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.theme:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme svg {
  width: 18px;
  height: 18px;
}
[data-theme='dark'] .icon-sun,
[data-theme='light'] .icon-moon {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  padding-block: var(--space-24) var(--space-20);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.72) 0%,
    rgba(8, 9, 11, 0.5) 35%,
    rgba(8, 9, 11, 0.82) 100%
  );
}
[data-theme='light'] .hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.66) 0%,
    rgba(8, 9, 11, 0.48) 35%,
    rgba(8, 9, 11, 0.8) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  color: #f4f1ea;
}
.hero .eyebrow {
  color: #e4b96f;
}
.hero__title {
  font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4.25rem);
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: var(--space-6);
  color: #fbf9f4;
}
.hero__title .accent {
  color: #e4b96f;
}
.hero__lede {
  max-width: 56ch;
  color: rgba(244, 241, 234, 0.86);
  margin-bottom: var(--space-8);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__cta .btn--ghost {
  color: #f4f1ea;
  border-color: rgba(244, 241, 234, 0.35);
}
.hero__cta .btn--ghost:hover {
  color: #e4b96f;
  border-color: #e4b96f;
}

/* ---------- facts ---------- */
.facts {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.fact__k {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact__v {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--offset {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 62ch;
  margin-bottom: var(--space-16);
}
.section__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.section__lede {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.card {
  position: relative;
  padding: var(--space-10) var(--space-8) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
[data-theme='light'] .card {
  background: var(--surface);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card__num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--border);
}
.card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--muted);
  margin: 0;
  max-width: 46ch;
}

/* ---------- approach ---------- */
.approach {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}
.approach__intro .section__title {
  margin-bottom: var(--space-5);
}
.quote {
  margin: var(--space-10) 0 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--accent);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
}
.principle:last-child {
  border-bottom: 1px solid var(--border);
}
.principle__n {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
  line-height: 1.2;
}
.principle h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.principle p {
  color: var(--muted);
  margin: 0;
}

/* ---------- firm ---------- */
.firm {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.firm__copy p {
  color: var(--muted);
  max-width: 60ch;
}
.firm__copy .section__title {
  margin-bottom: var(--space-6);
}
.ticks {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.ticks li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.firm__panel {
  padding: var(--space-8);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.firm__panel h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}
.firm__panel dl {
  margin: 0;
  display: grid;
  gap: var(--space-5);
}
.firm__panel dt {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.firm__panel dd {
  margin: 0;
  font-size: var(--text-sm);
}

/* ---------- contact ---------- */
.contact__inner > div:first-child {
  max-width: 58ch;
  margin-bottom: var(--space-12);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6) var(--space-8) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.contact__grid > .contact__item:not(:last-child) {
  padding-right: var(--space-10);
}
a.contact__item:hover .contact__v {
  color: var(--accent);
}
.contact__k {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__v {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}

/* ---------- footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--space-12);
}
.footer__inner {
  display: grid;
  gap: var(--space-4);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
}

.footer__note,
.footer__legal {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  max-width: 78ch;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .approach,
  .firm {
    grid-template-columns: 1fr;
  }
  .facts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-8);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - var(--space-8), var(--shell));
  }
  .navtoggle {
    display: flex;
  }
  .header__inner {
    position: relative;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-block: 1px solid var(--border);
    padding: var(--space-2) var(--space-8) var(--space-5);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding-block: var(--space-3);
    font-size: var(--text-base);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .nav a::after {
    display: none;
  }
  .header__actions .btn--sm {
    display: none;
  }
  .cards,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .contact__grid > .contact__item:not(:last-child) {
    padding-right: 0;
  }
  .hero {
    min-height: 92vh;
    padding-block: var(--space-20) var(--space-16);
  }
  .hero__title {
    max-width: 100%;
  }
  .brand__sub {
    display: none;
  }
  .principle {
    grid-template-columns: 40px 1fr;
    gap: var(--space-4);
  }
}

/* ============================================================
   Portfolio
   ============================================================ */
#portfolio .section__head {
  margin-bottom: var(--space-10);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.manage-open {
  flex: none;
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: var(--muted);
}
.chip.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.prop {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.prop:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.prop--skeleton {
  min-height: 230px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
  border-color: transparent;
}
@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}
.prop__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.prop__kind {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px var(--space-2);
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge.is-ok {
  color: var(--accent);
}
.badge.is-warm {
  color: #d2703f;
}
.badge.is-cool {
  color: #6f93b8;
}
[data-theme='light'] .badge.is-warm {
  color: #a8471a;
}
[data-theme='light'] .badge.is-cool {
  color: #37587a;
}
.prop__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.prop__addr {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.prop__notes {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.prop__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: auto 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.prop__meta:empty {
  display: none;
}
.prop__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.prop__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.props__empty,
.props__error {
  margin: var(--space-8) 0 0;
  padding: var(--space-8);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   Manage drawer
   ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__scrim {
  opacity: 1;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--border);
}
.drawer__head h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.drawer__sub {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
}
.drawer__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.drawer__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.drawer__close svg {
  width: 16px;
  height: 16px;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8);
}

/* fields */
.field {
  display: block;
  margin-bottom: var(--space-4);
}
.field > span {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.field > span em {
  font-style: normal;
  color: var(--accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field__error {
  font-size: var(--text-xs);
  color: #e0704a;
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
}
[data-theme='light'] .field__error {
  color: #b23c15;
}

.gate__hint {
  margin: var(--space-5) 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.pform {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.pform__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin: 0 0 var(--space-5);
}
.count {
  color: var(--muted);
  font-size: 0.85em;
}
.pform__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.admin-list {
  padding-top: var(--space-8);
}
.admin-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-item__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-item__title {
  font-weight: 700;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.admin-item__sub {
  font-size: var(--text-xs);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-item__actions {
  flex: none;
  display: flex;
  gap: var(--space-2);
}
.mini {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.mini:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mini--danger:hover {
  border-color: #d2543a;
  color: #d2543a;
}
.mini:disabled {
  opacity: 0.55;
  cursor: default;
}
.admin-empty {
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--space-6);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-8);
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast[data-kind='err'] {
  background: #c04a2c;
  color: #fff;
}

@media (max-width: 1080px) {
  .props {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .props {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
  }
  .drawer__head,
  .drawer__body {
    padding-inline: var(--space-5);
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-item {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ================= Brand logo ================= */
.brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.brand__mark {
  display: block;
  height: 34px;
  width: auto;
}


.footer__brand {
  display: block;
}
.footer__logo {
  display: block;
  width: auto;
  height: 96px;
  max-width: 100%;
  object-fit: contain;
}
.footer {
  background: #08090b;
  border-top: 1px solid #1c1f25;
}
.footer .footer__note,
.footer .footer__legal {
  color: #8b8f96;
}
.footer__logo {
  height: 108px;
  margin-bottom: var(--space-2);
}

@media (max-width: 640px) {
  .brand__mark {
    height: 26px;
  }
  .footer__logo {
    height: 72px;
  }
}

/* ---------- owner-facing criteria + landlord pitch ---------- */
.criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.criteria__item {
  background: var(--surface);
  padding: var(--space-6);
}
.criteria__k {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.criteria__v {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
}

.landlord {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}
.landlord__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display, inherit);
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--text);
}
.landlord__text {
  margin: 0 0 var(--space-6);
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}

.footer__owner {
  display: block;
  margin-right: auto;
  align-self: flex-start;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-top: var(--space-4);
  font: inherit;
  font-size: var(--text-xs);
  color: #6a6e75;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer__owner:hover {
  color: var(--accent);
}
.footer__owner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .criteria__item,
  .landlord {
    padding: var(--space-6);
  }
}

.firm__stage {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.6;
}
