:root {
  color-scheme: dark;
  --bg: #100f16;
  --panel: #1b1823;
  --text: #f6efe6;
  --muted: #c4b9c7;
  --gold: #efbf7e;
  --line: #403441;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui,sans-serif;
}

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

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
}

a: focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

header,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(4vw,1.25rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  font: bold 1.25rem Georgia,serif;
  letter-spacing: .12em;
  white-space: nowrap;
}

.brand span,.eyebrow,em,.steps span {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
}

nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding: 4.5rem max(7vw,1.25rem);
  overflow: hidden;
  background: #201722;
}

.landscape {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#100e17 0%,#100e17df 29%,#100e1733 72%),linear-gradient(0deg,#100f16,transparent 36%);
}

.hero-copy {
  max-width: 37rem;
}

.eyebrow {
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .18em;
  margin: 0 0 .9rem;
}

.dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px #efbf7e88;
}

h1,h2,h3 {
  font-family: Georgia,serif;
  line-height: 1.05;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(3.8rem,8vw,7rem);
  letter-spacing: -.065em;
}

h2 {
  font-size: clamp(2rem,4vw,3rem);
  letter-spacing: -.035em;
}

h3 {
  font-size: clamp(1.7rem,3vw,2.25rem);
}

em {
  font-weight: 400;
}

.lede {
  max-width: 31rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.actions,.form-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.gold,.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font-weight: 700;
  font-size: .9rem;
}

.gold {
  background: var(--gold);
  color: #251827;
  border-color: var(--gold);
}

.gold:hover {
  background: #ffe0ac;
}

.outline:hover {
  border-color: var(--gold);
}

.hero-stamp {
  position: absolute;
  right: 7vw;
  bottom: 1.8rem;
  color: var(--gold);
  letter-spacing: .16em;
  font-family: Georgia,serif;
  text-align: right;
}

.hero-stamp small {
  display: block;
  font: 700 .62rem system-ui;
  letter-spacing: .2em;
  color: var(--muted);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: #17141d;
  border-block: 1px solid var(--line);
  padding: 1.2rem max(7vw,1.25rem);
  gap: 1rem;
}

.strip small,.sample small {
  display: block;
  font-size: .68rem;
  letter-spacing: .13em;
  color: var(--muted);
}

.strip strong {
  font-size: .95rem;
}

.section {
  max-width: 1230px;
  margin: auto;
  padding: 3.8rem max(4vw,1.25rem);
}

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

.journey {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(11rem,1fr) 3fr;
  gap: 1rem;
}

.steps {
  display: grid;
  gap: .5rem;
  align-content: start;
}

.steps button {
  text-align: left;
  padding: .85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--text);
}

.steps button[aria-current] {
  border-color: var(--gold);
  background: #30232d;
}

.steps span {
  margin-right: .6rem;
  font-weight: bold;
}

.step-panel,.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: clamp(1.1rem,3vw,2rem);
}

.step-panel {
  min-height: 19rem;
}

.step-panel p:not(.eyebrow),details p {
  color: var(--muted);
}

label {
  display: block;
  font-size: .85rem;
  margin-bottom: .3rem;
}

input,select {
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #120f19;
  color: var(--text);
  padding: .6rem .75rem;
  max-width: 100%;
}

.form-row {
  margin-top: 0;
}

.form-row input {
  flex: 1;
  min-width: 10rem;
}

ol {
  padding-left: 1.4rem;
}

.dashboard {
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

details {
  border-top: 1px solid var(--line);
  padding: .75rem 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
  text-align: left;
}

td,th {
  padding: .5rem;
  border-bottom: 1px solid var(--line);
}

td small {
  display: block;
  color: var(--muted);
}

.account {
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sample span {
  display: block;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: .85rem;
}

@media(max-width:700px) {
  header {
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 490px;
  }

  .hero:before {
    background: linear-gradient(90deg,#100e17f5,#100e1755),linear-gradient(0deg,#100f16,transparent 55%);
  }

  .hero-stamp {
    display: none;
  }

  .strip {
    grid-template-columns: 1fr 1fr;
  }

  .journey,.dashboard {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(3,1fr);
  }

  .steps span {
    display: block;
  }

  .account {
    align-items: stretch;
    flex-direction: column;
  }

}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere {
  z-index: -1;
  background: radial-gradient(ellipse at 74% 79%, #c8703d36, transparent 48%);
  animation: castle-glow 11s ease-in-out infinite alternate;
}

.page-ash {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.page-ash span {
  position: absolute;
  top: -1rem;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #c3b6b1;
  animation: falling-ash var(--duration) var(--delay) linear infinite;
}

.page-ash span:nth-child(4n) {
  background: #e6a367;
  box-shadow: 0 0 6px #eb844f;
}

@keyframes falling-ash {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: .5; }
  65% { opacity: .32; }
  100% { transform: translate3d(var(--drift), calc(100vh + 2rem), 0); opacity: 0; }
}

@keyframes castle-glow {
  from { opacity: .3; }
  to { opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere { animation: none; }
  .page-ash { display: none; }
}

/* Lorencia forms a continuous backdrop behind the page sections. */
body {
  background: #100f16 url('assets/lorencia-night.png') center top / cover fixed no-repeat;
}
header, footer {
  background: #100f16eb;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  min-height: 580px;
  padding-block: 3rem;
  background: linear-gradient(90deg, #100e17dc, #100e1760);
}
.hero:before {
  background: linear-gradient(0deg, #100f16a0, transparent 45%);
}
.hero-art {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  border: 1px solid #ae794e88;
  border-radius: .5rem;
  box-shadow: 0 24px 80px #0009;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
}
h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
}
.strip {
  background: #17141de8;
}
.section {
  background: #100f16c7;
}
.card, .step-panel, .steps button {
  background-color: #1b1823ed;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-art {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 2;
  }
  body {
    background-attachment: scroll;
  }
}

#invite-form input {
  display: block;
  width: min(100%, 32rem);
  margin-bottom: .35rem;
}
#invite-form label {
  margin-top: .8rem;
}
#invite-form small {
  display: block;
  color: var(--muted);
}
#client-details {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
