/* ═══════════════════════════════════════════════════════════════════════════
   Coming-soon landing — design system.

   Direction: "Chambers". The page is the firm's nameplate and letterhead, not
   a product splash. A practice that is open for business but has no website
   yet still has a door, a plate beside it, and a sheet of paper with the ways
   to reach it — so that is what this page is: an engraved plate, hairline
   rules dividing bands of information, serif capitals for the name, monospace
   for anything a visitor might read out loud (a number, a date, a countdown).

   The tenant's colour becomes the metal of the plate, which is why the whole
   palette can change without the page ever looking like a different design.

   The custom-property names below are the contract build.mjs writes against
   (see derivePalette / readThemePresets) — renaming one silently drops a
   tenant's colour override, so keep the names and retune the values.
   ═══════════════════════════════════════════════════════════════════════════ */

/* preset: luxury-gold */
:root {
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg-dark-base: #0b0a09;
  --bg-dark-radial: radial-gradient(125% 85% at 50% -12%, #1b1610 0%, #0b0a09 62%);

  --color-primary: #c08a2e;
  --color-primary-light: #e6be73;
  --color-primary-glow: rgba(192, 138, 46, 0.2);
  --gradient-brand: linear-gradient(150deg, #e6be73 0%, #c08a2e 46%, #7c5518 100%);

  --text-main: #f2efe9;
  --text-muted: #a29c92;
  --text-faint: #6f6960;

  --card-bg: rgba(255, 255, 255, 0.022);
  --card-border: rgba(255, 255, 255, 0.085);
  --card-border-hover: rgba(230, 190, 115, 0.38);

  --badge-bg: rgba(192, 138, 46, 0.12);
  --badge-border: rgba(230, 190, 115, 0.3);
  --badge-text: #e6be73;

  /* Structural hairlines. Deliberately neutral: the rules are the page's
     grammar, not part of the brand, so a tenant colour never repaints them. */
  --rule: rgba(255, 255, 255, 0.09);
  --rule-strong: rgba(255, 255, 255, 0.16);

  --sheet-width: 1140px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --band-y: clamp(2.25rem, 5vw, 3.75rem);
}

[data-theme="ocean-blue"] {
  --bg-dark-base: #080a0d;
  --bg-dark-radial: radial-gradient(125% 85% at 50% -12%, #101d2b 0%, #080a0d 62%);
  --color-primary: #2e7fb8;
  --color-primary-light: #7cb8df;
  --color-primary-glow: rgba(46, 127, 184, 0.22);
  --gradient-brand: linear-gradient(150deg, #7cb8df 0%, #2e7fb8 46%, #1a4f74 100%);
  --card-border-hover: rgba(124, 184, 223, 0.38);
  --badge-bg: rgba(46, 127, 184, 0.12);
  --badge-border: rgba(124, 184, 223, 0.3);
  --badge-text: #7cb8df;
}

[data-theme="emerald-prestige"] {
  --bg-dark-base: #070b09;
  --bg-dark-radial: radial-gradient(125% 85% at 50% -12%, #0d2419 0%, #070b09 62%);
  --color-primary: #2e7d5b;
  --color-primary-light: #7fc7a6;
  --color-primary-glow: rgba(46, 125, 91, 0.22);
  --gradient-brand: linear-gradient(150deg, #7fc7a6 0%, #2e7d5b 46%, #1b4d38 100%);
  --card-border-hover: rgba(127, 199, 166, 0.38);
  --badge-bg: rgba(46, 125, 91, 0.12);
  --badge-border: rgba(127, 199, 166, 0.3);
  --badge-text: #7fc7a6;
}

[data-theme="royal-amethyst"] {
  --bg-dark-base: #0a0810;
  --bg-dark-radial: radial-gradient(125% 85% at 50% -12%, #1e1533 0%, #0a0810 62%);
  --color-primary: #7a4fb5;
  --color-primary-light: #b79be0;
  --color-primary-glow: rgba(122, 79, 181, 0.24);
  --gradient-brand: linear-gradient(150deg, #b79be0 0%, #7a4fb5 46%, #4c2f75 100%);
  --card-border-hover: rgba(183, 155, 224, 0.38);
  --badge-bg: rgba(122, 79, 181, 0.14);
  --badge-border: rgba(183, 155, 224, 0.3);
  --badge-text: #b79be0;
}

[data-theme="minimal-dark"] {
  --bg-dark-base: #070706;
  --bg-dark-radial: radial-gradient(125% 85% at 50% -12%, #17171a 0%, #070706 65%);
  --color-primary: #c9c6c0;
  --color-primary-light: #f2f0ec;
  --color-primary-glow: rgba(255, 255, 255, 0.12);
  --gradient-brand: linear-gradient(150deg, #f2f0ec 0%, #c9c6c0 46%, #7d7a74 100%);
  --card-border-hover: rgba(255, 255, 255, 0.34);
  --badge-bg: rgba(255, 255, 255, 0.07);
  --badge-border: rgba(255, 255, 255, 0.22);
  --badge-text: #f2f0ec;
}

/* ── Foundations ─────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.02rem);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-dark-base);
  background-image: var(--bg-dark-radial);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A faint grain over the whole sheet. It is what keeps a flat dark page from
   reading as a screen of pure #000 — paper has tooth, and the engraved plate
   below needs a surface to sit on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

/* ── Sheet + bands ───────────────────────────────────────────────────────── */

.sheet {
  position: relative;
  z-index: 1;
  max-width: var(--sheet-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Every rule on this page separates one KIND of information from another:
   identity / statement / practice / timing / colophon. None are decorative. */
.band {
  padding: var(--band-y) 0;
  border-top: 1px solid var(--rule);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Masthead ────────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.nameplate {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.25rem);
  min-width: 0;
}

/*
 * THE SIGNATURE — the plate beside the door.
 *
 * Cast from the tenant's own gradient, lit from the top-left: a bright rim
 * where the light lands, a dark rim where it falls away, and the monogram cut
 * INTO the face (dark fill, a hairline of light on the lower edge) rather than
 * printed on top. Hovering runs a specular band across it, because that is
 * what polished metal does when you walk past it.
 */
.plate {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(46px, 5vw, 54px);
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--gradient-brand);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1.5px 1px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    inset 0 -14px 18px -12px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 10px 24px -12px var(--color-primary-glow);
  overflow: hidden;
}

.plate-mono {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-140%);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.nameplate:hover .plate::after {
  transform: translateX(140%);
}

.wordmark {
  min-width: 0;
}

.wordmark-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.05rem + 0.75vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
}

.wordmark-line {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wordmark-logo {
  max-height: 52px;
  width: auto;
}

.masthead-aside {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56b880;
  box-shadow: 0 0 0 3px rgba(86, 184, 128, 0.15);
}

/* Language switch: letters on a rule, not buttons in a pill. */
.langs {
  display: flex;
  align-items: center;
}

.lang {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.lang + .lang {
  border-left: 1px solid var(--rule);
}

.lang:hover {
  color: var(--text-main);
}

.lang.active {
  color: var(--color-primary-light);
  border-bottom-color: var(--color-primary);
}

/* ── Lede: the statement, and the direct lines ───────────────────────────── */

.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 1.3rem + 2.5vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
}

/* The concession is set back; the point of the page is set forward, in the
   tenant's colour. The contrast between the two lines IS the message. */
.statement-a,
.statement-b {
  display: block;
  text-wrap: balance;
}

.statement-a {
  color: var(--text-faint);
}

.statement-b {
  color: var(--color-primary-light);
}

.lede-note {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 46ch;
  color: var(--text-muted);
}

.lede-note strong {
  color: var(--text-main);
  font-weight: 500;
}

/* The contact panel is the most valuable thing on the page, so it is the one
   element that gets a surface of its own. */
.lines {
  border: 1px solid var(--card-border);
  border-radius: 3px;
  background: var(--card-bg);
  backdrop-filter: blur(2px);
}

.lines-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.85rem 1.15rem;
  transition: background-color 0.18s ease;
}

.line + .line,
.lines-meta {
  border-top: 1px solid var(--rule);
}

.line:hover {
  background: rgba(255, 255, 255, 0.03);
}

.line-label {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.line-value {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.line-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.line:hover .line-arrow {
  transform: translateX(4px);
}

.lines-meta {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1.15rem;
}

.meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meta-key {
  flex: none;
  min-width: 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.15rem;
}

/* ── Practice index ──────────────────────────────────────────────────────── */

.index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}

.index-list {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
}

.index-item {
  break-inside: avoid;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem);
  color: var(--text-main);
}

/* ── Launch band: the clock and the notify row ───────────────────────────── */

.launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.clock {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.1rem;
}

.clock-unit {
  display: grid;
  gap: 0.3rem;
}

.clock-unit + .clock-unit {
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--rule);
}

/* Monospace, so the digits hold their column instead of jittering each second. */
.clock-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.clock-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.clock-launched {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  color: var(--color-primary-light);
  margin-top: 0.9rem;
}

.signup-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 400;
  margin-top: 0.55rem;
}

.signup-note {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  transition: border-color 0.18s ease;
}

.field::placeholder {
  color: var(--text-faint);
}

.field:hover {
  border-color: var(--rule-strong);
}

.field:focus {
  outline: none;
  border-color: var(--color-primary);
}

.submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.submit:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--bg-dark-base);
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

.signup-error {
  display: none;
  margin-top: 0.7rem;
  font-size: 0.83rem;
  color: #e5928c;
}

.signup-error.visible {
  display: block;
}

.signup-done {
  display: none;
  margin-top: 1.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--color-primary);
}

.signup-done-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-main);
}

.signup-done.visible {
  display: block;
}

.signup-done-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Honeypot — off-screen, never focusable, invisible to assistive tech. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Colophon ────────────────────────────────────────────────────────────── */

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.colophon-legal {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.colophon-legal strong {
  color: var(--text-muted);
  font-weight: 500;
}

.colophon-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.colophon-address {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.social {
  display: flex;
  gap: 0.35rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--card-border);
  border-radius: 3px;
  color: var(--text-faint);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
  color: var(--color-primary-light);
  border-color: var(--card-border-hover);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  background: #16151300;
  background-color: rgba(20, 19, 17, 0.92);
  border: 1px solid var(--card-border-hover);
  border-radius: 3px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.8);
  animation: rise 0.28s ease;
}

.toast.visible {
  display: flex;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

.lede--solo,
.launch--solo {
  grid-template-columns: minmax(0, 34rem);
}

@media (max-width: 900px) {
  .lede,
  .launch {
    grid-template-columns: minmax(0, 1fr);
  }

  .launch {
    align-items: start;
    gap: 2.25rem;
  }
}

@media (max-width: 640px) {
  .index-list {
    columns: 1;
  }

  .masthead {
    align-items: flex-start;
  }

  .masthead-aside {
    width: 100%;
    justify-content: space-between;
  }

  .clock {
    gap: 1rem;
  }

  .clock-unit + .clock-unit {
    padding-left: 1rem;
  }

  .submit {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Respect the OS "reduce motion" setting. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
