:root {
  /* Brand palette */
  --navy: #0E2138;
  --navy-deep: #091628;
  --navy-soft: #14304F;
  --gold: #C9A24A;
  --gold-bright: #D9B86A;
  --gold-deep: #9C7A2E;
  --bone: #F2EBDC;
  --bone-soft: #EFE7D4;
  --paper: #F7F1E3;
  --ink: #14181F;
  --ink-soft: #2C3340;

  /* Theme tokens (dark) */
  --bg: var(--navy);
  --text: var(--bone);
  --text-dim: rgba(242, 235, 220, 0.74);
  --text-mute: rgba(242, 235, 220, 0.5);
  --rule: rgba(242, 235, 220, 0.14);
  --rule-gold: rgba(201, 162, 74, 0.4);
  --accent: var(--gold);

  /* Typography */
  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body: 'Source Serif 4', 'EB Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --max-content: 780px;
  --max-page: 1280px;
  --gutter: 100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle vignette to give the navy depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.025), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 0, 0, 0.5), transparent 60%);
  z-index: 0;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin: 0;
}

.gold-rule {
  height: 1px;
  background: var(--gold);
  width: 80px;
  border: 0;
}

.diamond-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 320px;
  margin: 56px 0;
}
.diamond-rule .line { flex: 1; height: 1px; background: var(--gold); opacity: 0.5; }
.diamond-rule .dia { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ─── Header / Nav ─── */
.site-header {
  position: relative;
  z-index: 2;
  max-width: var(--max-page);
  width: 100%;
  margin: 0 auto;
  padding: 36px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand .signet-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand .div {
  width: 1px;
  height: 38px;
  background: var(--gold);
  opacity: 0.5;
}

.brand .text { line-height: 1; }

.brand .wordmark {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
  display: block;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-dim);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--gold); }
.nav-links a.current { color: var(--text); border-bottom-color: var(--gold); }

/* ─── Main ─── */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--gutter) 120px;
}

/* ─── Mark-led hero (home page) ─── */
.hero-mark {
  background: transparent;
  color: var(--text);
  margin: 16px 0 88px;
  padding: 56px 0;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carousel — left side */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--rule);
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-carousel .slide.active { opacity: 1; }

.hero-carousel .slide img,
.hero-carousel .slide svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Navy tint overlay so all photos read as one brand-tied set */
.hero-carousel .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 33, 56, 0.22) 0%, rgba(14, 33, 56, 0.45) 100%);
  pointer-events: none;
}

.hero-carousel .dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-carousel .dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(242, 235, 220, 0.3);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-carousel .dots button.active { background: var(--gold); }

/* Centered hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  text-align: center;
  margin: 0 auto;
}

.hero-content .signet-large {
  width: clamp(240px, 28vw, 340px);
  height: clamp(240px, 28vw, 340px);
  display: block;
  margin-bottom: 8px;
}

/* Entry animation: inner ring draws, then outer ring draws, then markers
   fade in, then the whole dial starts rotating together. */
.hero-content .signet-large .ring-inner {
  stroke-dasharray: 502;            /* circumference at r=80 */
  stroke-dashoffset: 502;
  animation: signet-draw 1.2s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards;
}

.hero-content .signet-large .ring-outer {
  stroke-dasharray: 578;            /* circumference at r=92 */
  stroke-dashoffset: 578;
  animation: signet-draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) 1.0s forwards;
}

.hero-content .signet-large .markers {
  opacity: 0;
  animation: signet-fade-in 0.8s ease-out 2.0s forwards;
}

.hero-content .signet-large .dial {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: signet-turn 60s linear 2.8s infinite;
}

@keyframes signet-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes signet-fade-in {
  to { opacity: 1; }
}

@keyframes signet-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content .signet-large .ring-inner,
  .hero-content .signet-large .ring-outer,
  .hero-content .signet-large .markers,
  .hero-content .signet-large .dial {
    animation: none;
    stroke-dashoffset: 0;
    opacity: var(--initial-opacity, 1);
  }
  .hero-content .signet-large .ring-inner { opacity: 0.5; }
  .hero-content .signet-large .markers { opacity: 1; }
}

.hero-content .corner-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  /* Compensate for trailing letter-spacing so the visible text optically
     centers with the RJ above instead of sitting slightly left. */
  padding-left: 0.32em;
}

.hero-content .statement {
  font-family: var(--serif-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 22ch;
}

.hero-content .ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 260px;
}
.hero-content .ornament .line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.hero-content .ornament .dia {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-mark .signet-large .dial {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: signet-turn 60s linear infinite;
}

@keyframes signet-turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark .signet-large .dial { animation: none; }
}

/* ─── Body section ─── */
/* Section spans the full main width (matching the hero's edges). */
.body-section {
  width: 100%;
  padding: 112px 0 80px;
  border-top: 1px solid var(--rule);
}
.body-section:first-of-type { border-top: 0; padding-top: 24px; }

.body-section .body {
  max-width: 720px;
}

/* Two-column layout for full-width sections — title on the left, content on the right.
   Mirrors the hero's split composition. */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.split-aside {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split-body {
  min-width: 0;
}

.split-aside .section-title {
  margin-bottom: 0;
}

.split-body .body {
  max-width: 100%;
}

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split-aside { position: static; }
}

/* Prominent header used to mark a major page section */
.section-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 48px;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin-top: 24px;
}

/* Anchor-target offset so headings sit comfortably below the nav */
.anchor-section {
  scroll-margin-top: 32px;
}

.anchor-section .label {
  margin-bottom: 24px;
}

.categories {
  list-style: none;
  padding: 28px 0;
  margin: 28px 0 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.categories li {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--text);
  padding: 8px 0;
  font-weight: 400;
}

/* ─── Letterhead grid ─── */
.letterhead {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.letterhead:first-of-type { border-top: 0; }

.letterhead .aside {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letterhead .aside .pull {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
  max-width: 280px;
}

.letterhead .body { max-width: var(--max-content); }

/* ─── Page title (inner pages) ─── */
.page-title {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

.page-title .label { margin-bottom: 24px; }

.page-title h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
  max-width: 18ch;
}

/* ─── Typography utilities ─── */
h2.section-h {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}

h3.sub-h {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text);
  margin: 40px 0 14px;
}

p.body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 20px;
}
p.body:last-child { margin-bottom: 0; }

.dropcap::first-letter {
  font-family: var(--serif-display);
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 6px 10px 0 0;
  color: var(--gold);
  font-weight: 400;
}

/* ─── Email CTA ─── */
.email-cta {
  display: inline-block;
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--gold);
  border-bottom: 1px solid var(--rule-gold);
  padding-bottom: 8px;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.email-cta:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* ─── Contact section ─── */
.contact-section {
  max-width: 720px;
}

.contact-intro {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 56px;
  max-width: 560px;
  font-weight: 400;
}

/* ─── Contact form ─── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
  margin-top: 8px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.contact-form label .optional {
  color: var(--text-mute);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.18s ease;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-mute);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
}

.contact-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px var(--navy) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  align-self: flex-start;
  margin-top: 12px;
  font-weight: 500;
}

.contact-form button:hover {
  background: var(--gold);
  color: var(--navy);
}

.contact-form .form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 12px 0 0;
}

/* Spam honeypot — hidden from real users, visible to bots. */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .copy,
.site-footer .place {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root { --gutter: 56px; }
  .letterhead { gap: 56px; }
}

@media (max-width: 760px) {
  :root { --gutter: 28px; }
  .site-header { padding: 24px var(--gutter); flex-wrap: wrap; gap: 16px; }
  .brand .signet-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand .div { height: 32px; }
  .brand .wordmark { font-size: 20px; }
  .nav-links { gap: 20px; font-size: 11px; }
  .hero-mark {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 4px 0 56px;
    padding: 16px 0;
    gap: 28px;
    text-align: left;
  }
  .hero-carousel { min-height: 320px; }
  .hero-carousel .slide-label { top: 16px; left: 16px; font-size: 9px; letter-spacing: 0.22em; }
  .hero-carousel .slide-caption { bottom: 16px; left: 16px; right: 80px; font-size: 15px; }
  .hero-carousel .dots { bottom: 16px; right: 16px; }
  .hero-content { max-width: none; gap: 20px; }
  .hero-content .corner-label { font-size: 9px; letter-spacing: 0.22em; }
  .hero-content .statement { font-size: 24px; }
  .hero-content .ornament { max-width: 200px; }
  .letterhead {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .letterhead .aside { position: static; }
  .letterhead .aside .pull { font-size: 18px; max-width: none; }
  main { padding-bottom: 72px; }
  .page-title { padding: 24px 0 32px; margin-bottom: 32px; }
  .site-footer { padding: 32px var(--gutter) 40px; flex-direction: column; align-items: flex-start; gap: 8px; }
}
