/* Rim Advisors. Rim and dial: centred copper rings with their labels set round
   the edge, a reeded rule between sections, peach paper, midnight ink. */

:root {
  --paper: #F6EEE5;
  --band: #EBDCCB;
  --ink: #171A2E;
  --copper: #9A4A1F;
  --copper-deep: #7A3914;
  --mint: #8FD3BC;
  --muted: #5A5560;
  --night-text: #C9C3D0;
  --display: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
  border-radius: 4px;
}

::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); font-stretch: 125%; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; font-stretch: 112%; font-weight: 700; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600;
}
.skip:focus { top: 1rem; }

main:focus { outline: none; }

/* Header: centred row on the paper, no band. */

.top { padding: 1.1rem 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 2.25rem; height: 2.25rem; }

.menu {
  display: none;
  font: 600 0.95rem var(--display); font-stretch: 115%;
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 999px;
  min-height: 44px; padding: 0 1.2rem; cursor: pointer;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  border-radius: 999px; border: 1.5px solid transparent;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { border-color: var(--copper); color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--ink); }

@media (max-width: 760px) {
  .js .menu { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0.2rem; padding: 0.6rem 0 0.4rem; }
  .nav a { width: 100%; }
}

/* The reeded rule: the milled edge of a coin. */

.reed {
  height: 22px;
  margin: 0 auto;
  width: min(100% - 2.5rem, 70rem);
  background:
    repeating-linear-gradient(90deg, var(--copper) 0 2px, transparent 2px 7px) center / 100% 14px no-repeat;
  border-top: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
  opacity: 0.85;
}

/* Sections: centred on a dial. */

.sec { padding: clamp(3rem, 8vw, 5.5rem) 0; text-align: center; }
.sec.band { background: var(--band); }
.sec .lede, .sec > .wrap > p { max-width: var(--measure); margin-inline: auto; }
.sec .left { text-align: left; max-width: var(--measure); margin-inline: auto; }

.dial { width: 120px; height: 120px; margin: 0 auto 1.4rem; }
.dial-ring { fill: none; stroke: var(--copper); stroke-width: 2; }
.dial-in { fill: var(--paper); stroke: var(--copper); stroke-width: 1; }
.band .dial-in { fill: var(--band); }
.dial-label {
  font-family: var(--display); font-stretch: 125%; font-weight: 600;
  font-size: 9.2px; letter-spacing: 0.08em; fill: var(--copper);
}
.dial-num {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 26px; fill: var(--ink);
}

.kicker {
  font-family: var(--display); font-stretch: 125%; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--copper); margin-bottom: 0.9rem;
}

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

/* Subdials: small rings for the points of a section. */

.subdials {
  list-style: none; padding: 0; margin: 2.4rem auto 0;
  display: grid; gap: 2.2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  max-width: 62rem; text-align: center;
}
.subdials li { display: flex; flex-direction: column; align-items: center; }
.sd {
  width: 5.25rem; height: 5.25rem; border-radius: 50%;
  border: 2px solid var(--copper);
  display: grid; place-items: center; margin-bottom: 1rem; position: relative;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem;
}
.sd::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--mint); border: 1.5px solid var(--ink);
}
.subdials p { max-width: 20rem; margin-inline: auto; color: var(--muted); }
.subdials h3 { color: var(--ink); }

/* Hero */

.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem); text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { font-size: 1.15rem; max-width: 34rem; margin: 0 auto 1.8rem; color: var(--muted); }

.rim-hero { width: min(100%, 34rem); margin: 0 auto 2.2rem; }
.rim-hero .r-out { fill: none; stroke: var(--copper); stroke-width: 3; }
.rim-hero .r-mid { fill: none; stroke: var(--copper); stroke-width: 1.2; }
.rim-hero .r-in { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 5; }
.rim-hero .r-core { fill: var(--ink); }
.rim-hero .t-rim {
  font-family: var(--display); font-stretch: 125%; font-weight: 700;
  font-size: 22px; letter-spacing: 0.1em; fill: var(--copper);
}
.rim-hero .t-ring {
  font-family: var(--display); font-stretch: 118%; font-weight: 600;
  font-size: 15px; letter-spacing: 0.16em; fill: var(--muted); text-transform: uppercase;
}
.rim-hero .t-name {
  font-family: var(--display); font-stretch: 112%; font-weight: 800;
  font-size: 34px; fill: var(--paper);
}
.rim-hero .t-com { fill: var(--mint); }
.rim-hero .turn { transform-origin: 300px 300px; }

@media (prefers-reduced-motion: no-preference) {
  .js .rim-hero .turn { transform: rotate(-120deg); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
  .js .rim-hero.on .turn { transform: rotate(0deg); }
}

/* Buttons: a rim seen side-on. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
  font: 700 1rem var(--display); font-stretch: 115%; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--copper); color: var(--copper-deep); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* Two-column text inside a section (still centred as a block). */

.pair {
  display: grid; gap: 2rem 3rem; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: 60rem; margin: 2rem auto 0;
}
.pair h3 { color: var(--copper); }

/* Questions */

.qa { max-width: 44rem; margin: 2rem auto 0; text-align: left; }
.qa details { border-top: 1px solid var(--copper); }
.qa details:last-child { border-bottom: 1px solid var(--copper); }
.qa summary {
  list-style: none; cursor: pointer; min-height: 52px; padding: 0.9rem 2.6rem 0.9rem 0; position: relative;
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--copper);
  display: grid; place-items: center; color: var(--copper); font-weight: 600;
}
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding-bottom: 0.4rem; }

/* About: the portrait in a rim. */

.portrait {
  width: min(78vw, 20rem); aspect-ratio: 1; margin: 0 auto 1.6rem; border-radius: 50%;
  padding: 10px; border: 2px solid var(--copper); position: relative;
}
.portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: repeating-conic-gradient(var(--copper) 0 1.2deg, transparent 1.2deg 4deg);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
          mask: radial-gradient(circle, transparent 66%, #000 66.5%, #000 70%, transparent 70.5%);
  opacity: 0.8;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.role { font-family: var(--display); font-stretch: 115%; font-weight: 600; color: var(--copper); margin-bottom: 1.4rem; }

.facts { list-style: none; padding: 0; margin: 1.6rem auto 0; max-width: var(--measure); text-align: left; }
.facts li { padding: 0.7rem 0; border-bottom: 1px dashed rgba(154, 74, 31, 0.5); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.facts b { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 0.9rem; }

@media (max-width: 480px) {
  .facts li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Contact form */

.form { max-width: 40rem; margin: 2rem auto 0; text-align: left; display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.form label { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.form .opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--text); color: var(--ink);
  background: var(--band); border: 1.5px solid transparent; border-bottom-color: var(--copper);
  border-radius: 10px 10px 0 0; padding: 0.75rem 0.9rem; min-height: 48px;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px var(--mint); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 0.8rem 1rem; border-left: 4px solid var(--mint); background: var(--band); }
.status.bad { border-left-color: var(--copper); }
.small { font-size: 0.92rem; color: var(--muted); }

.direct { display: grid; gap: 0.3rem; justify-items: center; margin-top: 1.4rem; }
.direct a { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 1.15rem; }

/* Legal pages */

.legal { text-align: left; max-width: var(--measure); margin-inline: auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }

/* 404 */

.lost .dial { width: 160px; height: 160px; }

/* Footer: midnight band with a faint rim behind it. */

.foot { background: var(--ink); color: var(--night-text); position: relative; overflow: hidden; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.foot-rim { position: absolute; right: -8rem; top: -6rem; width: 28rem; height: 28rem; opacity: 0.18; pointer-events: none; }
.foot-rim circle { fill: none; stroke: var(--mint); stroke-width: 1.5; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); position: relative; }
.foot-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; color: var(--paper); margin-bottom: 0.4rem; }
.foot-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mint); margin-bottom: 0.8rem; font-stretch: 125%; }
.foot address { font-style: normal; line-height: 1.9; }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--mint); }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-base {
  position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(201, 195, 208, 0.3);
  font-family: var(--display); font-stretch: 112%; font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.actions.gap { margin-top: 2.4rem; }
