:root {
  --black: #050505;
  --ink: #0d0d0b;
  --bone: #eee5d2;
  --muted: #a9957c;
  --clay: #ae684e;
  --green: #536f5f;
  --vermilion: #cf3d2e;
  --line: rgba(238, 229, 210, 0.16);
  --panel: rgba(10, 10, 8, 0.72);
  --serif: "Gloock", "Times New Roman", serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --reader: "Cormorant Garamond", Georgia, serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  color: var(--bone);
  background: var(--black);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 111, 95, 0.24), transparent 42rem),
    linear-gradient(180deg, #050505 0%, #0a0907 48%, #050505 100%);
}

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

/* ── Main navigation ── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.1rem, 4vw, 5rem);
  background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(238, 229, 210, 0.06);
  transition: background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}

.main-nav.scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: rgba(238, 229, 210, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(238, 229, 210, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 260ms ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bone);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 260ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--bone);
  color: #15110d !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  min-height: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bone);
  margin: 5px 0;
  transition: transform 260ms ease, opacity 260ms ease;
  border-radius: 1px;
}

/* ── Breadcrumb nav (inner pages) ── */
.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  width: min(118rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 5rem;
  color: rgba(238, 229, 210, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: #fff4df;
}

.site-nav span {
  color: rgba(238, 229, 210, 0.38);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(238, 229, 210, 0.08);
  background: rgba(5, 5, 5, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(118rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--bone);
  text-decoration: none;
  line-height: 1;
}

.footer-brand p {
  max-width: 28rem;
  margin: 0;
  color: rgba(238, 229, 210, 0.5);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 1.2rem;
  color: var(--clay);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(238, 229, 210, 0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 260ms ease;
}

.footer-col a:hover {
  color: var(--bone);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(118rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(238, 229, 210, 0.06);
  color: rgba(238, 229, 210, 0.32);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-bottom a {
  color: rgba(238, 229, 210, 0.45);
  text-decoration: none;
  transition: color 260ms ease;
}

.footer-bottom a:hover {
  color: var(--bone);
}

.site-footer a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 85svh;
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.1rem, 4vw, 5rem) clamp(4.75rem, 7vh, 6rem);
  overflow: hidden;
  background: #050505;
}

.hero-asset {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.92;
  filter: saturate(0.9) contrast(1.04);
  transform: none;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.45) 40%, rgba(5, 5, 5, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, transparent 45%, rgba(5, 5, 5, 0.7) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  width: min(64rem, 94vw);
  padding-top: clamp(1rem, 3vh, 3rem);
}

.kicker,
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 8.8ch;
  margin-bottom: clamp(1.15rem, 2.6vw, 3.2rem);
  font-family: var(--serif);
  font-size: clamp(4.8rem, min(12vw, 17vh), 12.25rem);
  font-weight: 400;
  line-height: 0.88;
}

.hero-line {
  max-width: 48rem;
  margin-bottom: 0;
  color: rgba(238, 229, 210, 0.78);
  font-family: var(--reader);
  font-size: clamp(1.32rem, 2.05vw, 2.22rem);
  font-weight: 500;
  line-height: 1.24;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.primary-button {
  background: var(--bone);
  color: #15110d;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button:hover {
  border-color: rgba(238, 229, 210, 0.42);
}

.signal-card {
  position: absolute;
  z-index: 3;
  right: clamp(1.1rem, 5vw, 5.5rem);
  bottom: clamp(5.2rem, 10vh, 7rem);
  width: min(20rem, calc(100vw - 2.2rem));
  padding: 1rem;
  border: 1px solid rgba(238, 229, 210, 0.14);
  border-radius: 0.5rem;
  background: rgba(5, 5, 5, 0.72);
}

.signal-card span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-card strong {
  font-family: var(--reader);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.12;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.2rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  color: rgba(238, 229, 210, 0.46);
}

.scroll-cue span {
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(transparent, rgba(238, 229, 210, 0.8), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-cue p {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes scrollPulse {
  50% {
    transform: scaleY(0.55);
    opacity: 0.45;
  }
}

.panel {
  position: relative;
  padding: clamp(5.5rem, 11vw, 11rem) clamp(1.1rem, 5vw, 5.5rem);
}

.threshold {
  isolation: isolate;
  min-height: 100vh;
  border-top: 1px solid rgba(238, 229, 210, 0.1);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.82) 48%, rgba(5, 5, 5, 0.95) 100%),
    url("/assets/focus-atmosphere.jpg") center / cover,
    #050505;
}

.threshold::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.78) 46%, rgba(5, 5, 5, 0.94) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.86));
  pointer-events: none;
}

.threshold::after {
  position: absolute;
  inset: 8% 0 0 44%;
  z-index: 1;
  content: "";
  background: radial-gradient(circle at 55% 45%, rgba(238, 229, 210, 0.08), transparent 34%);
  pointer-events: none;
}

.approach-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(5rem, 0.28fr) minmax(18rem, 0.8fr) minmax(18rem, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: min(112rem, 100%);
  min-height: calc(100vh - clamp(11rem, 22vw, 22rem));
  margin: 0 auto;
}

.approach-heading h2 {
  max-width: 8.5ch;
  margin-bottom: 0;
}

.section-number {
  position: relative;
  top: auto;
  width: fit-content;
  color: rgba(238, 229, 210, 0.13);
  font-family: var(--italic);
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: 0.8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 6vw, 7rem);
  margin-left: auto;
  width: min(72rem, 100%);
}

h2 {
  margin-bottom: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  font-weight: 400;
  line-height: 0.92;
}

.body-stack {
  color: rgba(238, 229, 210, 0.68);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.body-stack p + p {
  margin-top: 1.4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: transparent;
}

.work-intro,
.focus-tile {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: rgba(5, 5, 5, 0.88);
}

.work-intro {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  border-bottom: 1px solid rgba(238, 229, 210, 0.1);
  position: relative;
  overflow: hidden;
}

.work-intro::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42rem, 48%);
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.78) 100%),
    url("/assets/focus-atmosphere.jpg") center / cover;
  opacity: 0.42;
  pointer-events: none;
}

.work-intro > * {
  position: relative;
  z-index: 1;
}

.work-intro h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.work-intro p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0;
  color: rgba(238, 229, 210, 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
}

.focus-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(20rem, 32vw, 27rem);
  transition: background 260ms ease, transform 260ms ease;
}

.focus-tile:hover {
  background: rgba(29, 37, 31, 0.92);
  transform: translateY(-0.35rem);
}

.focus-tile span {
  color: var(--clay);
  font-family: var(--italic);
  font-size: 2.2rem;
}

.focus-tile h3 {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.02;
}

.focus-tile p {
  color: rgba(238, 229, 210, 0.72);
  line-height: 1.55;
}

.about {
  display: grid;
  grid-template-columns: minmax(18rem, 0.46fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  min-height: auto;
  max-width: 120rem;
  margin-inline: auto;
}

.portrait-slot {
  position: relative;
  width: min(100%, 36rem);
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.portrait-aura {
  position: absolute;
  inset: 5% 4% 0;
  border-radius: 48% 52% 46% 54%;
  background:
    radial-gradient(circle at 50% 35%, rgba(238, 229, 210, 0.16), transparent 31%),
    radial-gradient(circle at 44% 55%, rgba(207, 61, 46, 0.13), transparent 41%),
    rgba(83, 111, 95, 0.18);
  filter: blur(12px);
  animation: portraitAura 9s ease-in-out infinite;
}

@keyframes portraitAura {
  50% {
    transform: scale(1.04) rotate(2deg);
    border-radius: 54% 46% 52% 48%;
  }
}

.portrait-frame {
  position: absolute;
  inset: 0;
  display: block;
  padding: 1.35rem;
  border: 1px solid rgba(238, 229, 210, 0.16);
  border-radius: 0.65rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.72) 100%),
    repeating-linear-gradient(90deg, rgba(238, 229, 210, 0.04) 0 1px, transparent 1px 22px),
    rgba(5, 5, 5, 0.28);
  overflow: hidden;
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.85) contrast(1.05);
}

.portrait-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.06) 44%, rgba(5, 5, 5, 0.78) 100%),
    radial-gradient(circle at 50% 35%, transparent 0%, transparent 48%, rgba(5, 5, 5, 0.36) 100%);
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 2;
}

.portrait-caption p {
  position: relative;
  margin-bottom: 0.4rem;
  font-family: var(--italic);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.portrait-caption span {
  position: relative;
  color: rgba(238, 229, 210, 0.54);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: rgba(238, 229, 210, 0.68);
  font-size: 1.08rem;
  line-height: 1.75;
}

.credential-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  background: rgba(238, 229, 210, 0.13);
}

.forms,
.portal,
.contact,
.appointment,
.background {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  min-height: auto;
}

.portal {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.74) 52%, rgba(5, 5, 5, 0.94) 100%),
    url("/assets/portal-atmosphere.jpg") center / cover;
}

.forms-copy,
.portal-copy,
.contact-copy,
.background-copy {
  position: sticky;
  top: 3rem;
}

.forms-copy p:not(.eyebrow),
.portal-copy p,
.contact-copy p,
.background-copy p {
  max-width: 36rem;
  color: rgba(238, 229, 210, 0.76);
  font-size: 1.04rem;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 1px;
  background: rgba(238, 229, 210, 0.12);
}

.timeline article {
  padding: clamp(1rem, 3vw, 1.6rem);
  background: rgba(8, 8, 7, 0.84);
}

.timeline span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline h3 {
  max-width: 32rem;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.timeline p {
  max-width: 44rem;
  margin: 0;
  color: rgba(238, 229, 210, 0.72);
  line-height: 1.6;
}

.intake-form,
.contact-form,
.portal-shell,
.booking-board,
.admin-panel {
  border: 1px solid rgba(238, 229, 210, 0.18);
  border-radius: 0.65rem;
  background: rgba(8, 8, 7, 0.9);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
}

.intake-form,
.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

label {
  display: grid;
  gap: 0.5rem;
  color: rgba(238, 229, 210, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(238, 229, 210, 0.22);
  border-radius: 0.45rem;
  background: rgba(238, 229, 210, 0.1);
  color: var(--bone);
  font: 500 1rem/1.45 var(--body);
  padding: 0.95rem 1rem;
  outline: none;
}

option {
  background: #15120f;
  color: var(--bone);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(207, 61, 46, 0.75);
  box-shadow: 0 0 0 3px rgba(207, 61, 46, 0.14);
}

button {
  min-height: 3.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--bone);
  color: #15110d;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-note {
  margin: 0;
  color: rgba(238, 229, 210, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(12rem, 0.44fr) minmax(0, 1fr);
  min-height: 34rem;
  overflow: hidden;
}

.portal-sidebar {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.25rem;
  border-right: 1px solid rgba(238, 229, 210, 0.1);
  background: rgba(238, 229, 210, 0.04);
}

.portal-sidebar strong {
  font-family: var(--italic);
  font-size: 1.5rem;
  font-weight: 400;
}

.portal-sidebar span {
  margin-bottom: 1rem;
  color: rgba(238, 229, 210, 0.52);
  line-height: 1.4;
}

.portal-sidebar button {
  min-height: 2.8rem;
  border: 1px solid rgba(238, 229, 210, 0.12);
  background: rgba(5, 5, 5, 0.38);
  color: var(--bone);
}

.chat-panel {
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 1.25rem;
}

.chat-message,
.chat-input {
  max-width: 82%;
  border: 1px solid rgba(238, 229, 210, 0.11);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: rgba(238, 229, 210, 0.82);
  line-height: 1.45;
}

.from-rupa {
  background: rgba(83, 111, 95, 0.18);
}

.from-client {
  justify-self: end;
  background: rgba(207, 61, 46, 0.14);
}

.chat-input {
  max-width: 100%;
  color: rgba(238, 229, 210, 0.42);
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(207, 61, 46, 0.72);
  color: #fff4df;
  font-weight: 700;
}

.credential-strip div {
  padding: 1rem;
  background: rgba(5, 5, 5, 0.72);
}

dt {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-family: var(--italic);
  font-size: 1.25rem;
}

.notes {
  min-height: 80vh;
  overflow: hidden;
  border-block: 1px solid rgba(238, 229, 210, 0.1);
  background: rgba(5, 5, 5, 0.66);
}

.note-marquee {
  width: max-content;
  color: rgba(238, 229, 210, 0.06);
  font-family: var(--serif);
  font-size: clamp(4rem, 13vw, 13rem);
  line-height: 0.9;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-42%);
  }
}

blockquote {
  max-width: 60rem;
  margin: clamp(3rem, 8vw, 7rem) 0 0 auto;
  color: rgba(238, 229, 210, 0.88);
  font-family: var(--italic);
  font-size: clamp(2.3rem, 5.5vw, 6rem);
  line-height: 0.98;
}

.admin-body {
  background:
    radial-gradient(circle at 80% 0%, rgba(207, 61, 46, 0.18), transparent 34rem),
    radial-gradient(circle at 10% 10%, rgba(83, 111, 95, 0.18), transparent 30rem),
    #050505;
}

.admin-shell {
  width: min(118rem, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 4rem);
}

.admin-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.admin-header h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
}

.admin-token {
  display: grid;
  gap: 0.9rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.admin-panel {
  min-height: 28rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.payment-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
  gap: 1rem;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel-head .eyebrow {
  margin: 0;
}

.admin-panel-head span {
  display: inline-flex;
  min-width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 229, 210, 0.16);
  border-radius: 999px;
  color: rgba(238, 229, 210, 0.74);
  font-family: var(--italic);
  font-size: 1.25rem;
}

.admin-list {
  display: grid;
  gap: 0.75rem;
  max-height: 42rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.admin-list.compact {
  max-height: 34rem;
}

.admin-card {
  padding: 1rem;
  border: 1px solid rgba(238, 229, 210, 0.12);
  border-radius: 0.55rem;
  background: rgba(238, 229, 210, 0.045);
}

.admin-card time {
  display: block;
  margin-bottom: 0.9rem;
  color: rgba(238, 229, 210, 0.48);
  font-size: 0.78rem;
}

.admin-card dl {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0.55rem 0;
}

.admin-card dt {
  margin: 0;
}

.admin-card dd {
  font-family: var(--body);
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-card a {
  color: #fff4df;
  border-bottom: 1px solid rgba(207, 61, 46, 0.72);
}

.admin-message-form {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.empty-state {
  margin: 0;
  color: rgba(238, 229, 210, 0.52);
}

.contact h2 {
  max-width: 12ch;
}

.appointment {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 48%, rgba(5, 5, 5, 0.96) 100%),
    url("/assets/portal-atmosphere.jpg") center / cover;
}

.appointment h2 {
  max-width: 13ch;
}

.booking-board {
  display: grid;
  grid-template-columns: minmax(13rem, 0.38fr) minmax(0, 1fr);
  overflow: hidden;
}

.booking-board .contact-form {
  border: 0;
  border-left: 1px solid rgba(238, 229, 210, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.appointment-note {
  display: grid;
  align-content: space-between;
  gap: 2rem;
  min-height: 28rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  background:
    radial-gradient(circle at 32% 18%, rgba(207, 61, 46, 0.16), transparent 36%),
    rgba(238, 229, 210, 0.04);
}

.appointment-note span {
  color: var(--clay);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.appointment-note strong {
  max-width: 10ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.appointment-note p {
  margin: 0;
  color: rgba(238, 229, 210, 0.64);
  line-height: 1.55;
}

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

.contact-link {
  display: block;
  max-width: 34rem;
  width: fit-content;
  margin-top: 2rem;
  border-bottom: 1px solid rgba(207, 61, 46, 0.78);
  color: #fff4df;
  font-family: var(--body);
  font-size: clamp(1.15rem, 2.7vw, 2.65rem);
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.reveal {
  transform: translateY(2.5rem);
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
    opacity 900ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 2rem;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(238, 229, 210, 0.08);
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(238, 229, 210, 0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
  }

  .nav-overlay.open {
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .split,
  .about,
  .forms,
  .portal,
  .contact,
  .appointment,
  .background {
    grid-template-columns: 1fr;
  }

  .approach-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .approach-heading h2 {
    max-width: 11ch;
  }

  .forms-copy,
  .portal-copy,
  .contact-copy,
  .background-copy {
    position: relative;
    top: auto;
  }

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

  .admin-header,
  .admin-grid,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .work-intro {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    justify-self: center;
    margin-top: 2rem;
  }

  .about {
    min-height: auto;
  }

  .portrait-slot {
    width: min(100%, 30rem);
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 85svh;
    padding-top: 3.5rem;
  }

  .hero-asset {
    object-position: 64% 50%;
    transform: none;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.4rem);
    line-height: 0.96;
    margin-bottom: 1.25rem;
  }

  .hero-line {
    max-width: 27rem;
    font-size: 1.24rem;
    line-height: 1.22;
  }

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

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

  .work-intro {
    grid-column: auto;
  }

  .work-intro,
  .focus-tile {
    min-height: 18rem;
  }

  .portrait-slot {
    min-height: 28rem;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(238, 229, 210, 0.1);
  }

  .booking-board,
  .field-row {
    grid-template-columns: 1fr;
  }

  .booking-board .contact-form {
    border-left: 0;
    border-top: 1px solid rgba(238, 229, 210, 0.12);
  }

  .appointment-note {
    min-height: 15rem;
  }

  .contact-link {
    width: 100%;
    font-size: clamp(1.22rem, 6.8vw, 2.05rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .panel {
    padding-inline: 1rem;
  }

  h2 {
    font-size: clamp(2.2rem, 13vw, 3.65rem);
    line-height: 0.98;
  }

  .hero-line {
    font-size: 1.14rem;
  }

  .signal-card strong {
    font-size: 1.18rem;
  }

  .credential-strip dd {
    overflow-wrap: anywhere;
  }
}

.portal-page {
  width: min(118rem, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 5vw, 5rem);
}

.portal-page-header {
  max-width: 58rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.portal-page-header h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-size: clamp(4.2rem, 10vw, 9rem);
}

.portal-page-header p:not(.eyebrow) {
  color: rgba(238, 229, 210, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.portal-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.portal-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(238, 229, 210, 0.18);
  border-radius: 0.65rem;
  background: rgba(8, 8, 7, 0.88);
}

.portal-card.wide {
  grid-column: 1 / -1;
}

.portal-card h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.auth-page,
.dashboard-page {
  width: min(118rem, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.2rem, 5vw, 5rem);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.auth-copy h1,
.dashboard-header h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 9vw, 8rem);
}

.auth-copy p:not(.eyebrow),
.dashboard-header p {
  max-width: 35rem;
  color: rgba(238, 229, 210, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.auth-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid rgba(238, 229, 210, 0.18);
  border-radius: 0.65rem;
  background: rgba(8, 8, 7, 0.9);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-card .form-note a {
  color: #fff4df;
  border-bottom: 1px solid rgba(207, 61, 46, 0.72);
}

.turnstile-wrap {
  min-height: 4.25rem;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.dashboard-header button {
  width: fit-content;
  padding-inline: 1.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-list {
  display: grid;
  gap: 0.75rem;
}

.dashboard-item {
  padding: 0.9rem;
  border: 1px solid rgba(238, 229, 210, 0.12);
  border-radius: 0.5rem;
  background: rgba(238, 229, 210, 0.045);
}

.dashboard-item time {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(238, 229, 210, 0.48);
  font-size: 0.76rem;
}

.dashboard-item p {
  margin: 0;
  color: rgba(238, 229, 210, 0.78);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .portal-page-grid,
  .auth-page,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  video {
    display: none;
  }
}
