:root {
  --ink: #0c1222;
  --paper: #f7f4ef;
  --gold: #b8954a;
  --gold-light: #e8d5a8;
  --muted: #5c6478;
  --rule: rgba(12, 18, 34, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .rail-logo { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.side-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.rail-logo {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: auto;
}
.rail-logo span { color: var(--gold); }
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.rail-nav a { opacity: 0.65; transition: opacity 0.25s; }
.rail-nav a:hover { opacity: 1; color: var(--gold-light); }
.rail-meta {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.page { margin-left: 72px; min-height: 100vh; }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.top-bar-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.drawer {
  display: none;
  position: fixed;
  inset: 0 0 0 72px;
  background: var(--ink);
  z-index: 90;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.drawer.is-open { display: flex; }
.drawer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--paper);
}

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  min-height: calc(100vh - 65px);
  border-bottom: 1px solid var(--rule);
}
.intro-copy {
  padding: clamp(48px, 8vw, 100px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.intro h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.intro h1 em { font-style: italic; color: var(--muted); font-weight: 500; }
.lede { max-width: 420px; color: var(--muted); margin-bottom: 36px; font-size: 1.05rem; }
.btn-gold {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: background 0.3s var(--ease), color 0.3s;
  width: fit-content;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold:hover { background: var(--gold); color: var(--ink); }

.intro-visual { position: relative; min-height: 400px; }
.intro-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}
.intro-visual figcaption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12,18,34,0.75);
  padding: 8px 14px;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  background: var(--ink);
  color: var(--gold-light);
}
.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.heritage {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 64px);
  align-items: end;
}
.heritage-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 2px solid var(--gold);
  padding-left: 28px;
}
.heritage-stats strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--ink);
}
.heritage-stats span { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.heritage-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.practice-list { border-top: 1px solid var(--rule); }
.practice-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s var(--ease);
}
.practice-row:hover { background: #fff; }
.practice-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
}
.practice-row h3 { font-size: 1.5rem; margin-bottom: 8px; }
.practice-row p { color: var(--muted); max-width: 560px; }

.counsel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: clamp(64px, 10vw, 100px) clamp(24px, 5vw, 64px);
  background: var(--ink);
  color: var(--paper);
}
.counsel blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 20px;
}
.counsel cite { font-size: 0.85rem; color: var(--gold-light); font-style: normal; }
.counsel-points {
  list-style: none;
  align-self: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.counsel-points li {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: clamp(64px, 10vw, 96px) clamp(24px, 5vw, 64px);
}
.contact-intro h2 { font-size: 2rem; margin-bottom: 12px; }
.contact-intro p { color: var(--muted); }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0;
  font: inherit;
  resize: vertical;
}
.contact-form button { grid-column: 1 / -1; margin-top: 8px; border: none; }

.footer {
  padding: 24px clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .side-rail { display: none; }
  .page { margin-left: 0; }
  .drawer { inset: 0; }
  .drawer.is-open { display: flex; }
  .menu-btn { display: flex; }
  .intro { grid-template-columns: 1fr; }
  .intro-visual { order: -1; max-height: 45vh; }
  .heritage, .counsel, .contact-panel { grid-template-columns: 1fr; }
}
