/* ------------------------------------------------------------------
   Windward Standard LLC
   Bottle green on warm paper. Caslon throughout. Brass in millimeters.
------------------------------------------------------------------- */

@font-face {
  font-family: "Caslon Display";
  src: url("fonts/caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Text";
  src: url("fonts/caslon-text.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Text";
  src: url("fonts/caslon-text-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caslon Text";
  src: url("fonts/caslon-text-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ed;
  --paper-deep: #efebe1;
  --ink: #23221c;
  --green: #122b21;
  --green-lift: #183527;
  --green-wash: rgba(18, 43, 33, 0.14);
  --brass: #96793b;
  --brass-bright: #c8a75c;
  --brass-soft: rgba(150, 121, 59, 0.45);
  --hairline: 1px solid rgba(18, 43, 33, 0.16);
  --measure: 62ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Caslon Text", "Iowan Old Style", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: var(--paper); }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- type ---------- */

h1, h2, .display {
  font-family: "Caslon Display", "Caslon Text", Georgia, serif;
  font-weight: 400;
  color: var(--green);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.35rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.label {
  font-family: "Caslon Text", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.72;
}

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: 1710px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3.5rem);
}

main { flex: 1; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--hairline);
  transition: box-shadow 0.35s var(--ease);
}

.site-head.scrolled {
  box-shadow: 0 10px 24px -18px rgba(18, 43, 33, 0.45);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand svg {
  width: 44px;
  height: 44px;
  color: var(--green);
  flex: none;
  transition: transform 0.8s var(--ease);
}
.brand:hover svg { transform: rotate(45deg); }

.brand .wordmark {
  font-family: "Caslon Text", Georgia, serif;
  font-weight: 700;
  color: var(--green);
  font-size: 0.98rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}
.brand .wordmark small {
  display: block;
  font-family: "Caslon Text", Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--brass);
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.35rem;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: color 0.3s, background-size 0.45s var(--ease);
}

.site-nav a:hover { color: var(--green); background-size: 100% 1px; }
.site-nav a[aria-current="page"] { color: var(--green); background-size: 100% 1px; }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.rule-label {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.rule-label::before,
.rule-label::after {
  content: "";
  height: 1px;
  background: rgba(18, 43, 33, 0.16);
  flex: 1;
}

.centered { text-align: center; }
.centered .measure { margin-left: auto; margin-right: auto; }

.measure { max-width: var(--measure); }

/* ---------- hero, with drifting compass watermark ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 9vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -14%;
  width: min(60vw, 660px);
  aspect-ratio: 1;
  background: url("img/watermark.svg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  animation: roseturn 240s linear infinite;
}

@keyframes roseturn { to { transform: rotate(360deg); } }

.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 21ch; margin: 1.6rem auto 2.1rem; }
.hero .lead { max-width: 56ch; margin: 0 auto; }

/* entrance rise for hero content */
.hero .label, .hero h1, .hero .lead, .hero .ledger {
  animation: rise 0.9s var(--ease) both;
}
.hero h1 { animation-delay: 0.12s; }
.hero .lead { animation-delay: 0.26s; }
.hero .ledger { animation-delay: 0.42s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- live hero: flowing brass contours on deep green ---------- */

.live-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 78vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: linear-gradient(180deg, #fdfcf9 0%, #f9f6ef 100%);
  border-bottom: var(--hairline);
}

.live-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-hero .wrap { position: relative; z-index: 2; }

.live-hero h1 {
  color: var(--green);
  max-width: 18ch;
  margin: 1.6rem auto 2.1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.live-hero .lead {
  color: rgba(35, 34, 28, 0.88);
  max-width: 56ch;
  margin: 0 auto;
}

.live-hero .label { color: var(--brass); }

.live-hero .label, .live-hero h1, .live-hero .lead, .live-hero .ledger {
  animation-name: rise;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.live-hero h1 { animation-delay: 0.15s; }
.live-hero .lead { animation-delay: 0.32s; }
.live-hero .ledger { animation-delay: 0.5s; }

/* ---------- split hero: headline left, integrated capitals right ---------- */

.split-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(180deg, #fdfcf9 0%, #f9f6ef 100%);
  border-bottom: var(--hairline);
}

.split-hero > .split {
  max-width: 1710px;
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { text-align: left; }

.hero-copy h1 {
  font-size: clamp(2.1rem, 2.9vw, 3.3rem);
  margin: 1.4rem 0 1.7rem;
  max-width: none;
}

@media (min-width: 761px) {
  .hero-copy h1 { white-space: nowrap; }
}

.hero-copy .lead {
  max-width: 34em;
  color: rgba(35, 34, 28, 0.88);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.hero-copy .ledger { margin: 2.4rem 0 0; }

.hero-copy .label, .hero-copy h1, .hero-copy .lead, .hero-copy .ledger {
  animation-name: rise;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.hero-copy h1 { animation-delay: 0.12s; }
.hero-copy .lead { animation-delay: 0.26s; }
.hero-copy .ledger { animation-delay: 0.4s; }

/* integrated image: clean block, labels on the paper around it */
.hero-slides {
  margin: 0;
  animation: rise 1s 0.25s var(--ease) both;
}

.hero-slides .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: var(--hairline);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-slides .meta-label { color: var(--brass); }

.hero-slides .view {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 46vh, 480px);
  background: var(--green);
  box-shadow: 0 30px 60px -42px rgba(18, 43, 33, 0.5);
}

.hero-slides .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  filter: saturate(0.9) contrast(1.03) brightness(0.98);
}
.hero-slides .slide.is-active { opacity: 1; }

.hero-slides .city-tag {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-slides .city-tag .fixed { color: var(--brass); }
.hero-slides .city-tag .fixed::after { content: " \00b7 "; color: rgba(35, 34, 28, 0.4); }
.hero-slides .city-tag .js-city {
  color: var(--green);
  font-weight: 700;
  transition: opacity 0.55s var(--ease);
}
.hero-slides .city-tag .js-city.fading { opacity: 0; }

.hero-slides .progress {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 0.9rem;
}

.hero-slides .progress .bar {
  width: 36px;
  height: 2px;
  background: rgba(18, 43, 33, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-slides .progress .bar.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform-origin: left;
  animation: fillbar 5s linear forwards;
}

@keyframes fillbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- world hero: rotating financial capitals behind the headline ---------- */

.world-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(580px, 92vh, 940px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--green);
}

.world-hero .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.2s var(--ease);
  filter: saturate(0.62) brightness(0.8) contrast(1.06);
}
.world-hero .slide.is-active { opacity: 1; }

.world-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 21, 0.52) 0%, rgba(12, 28, 21, 0.40) 44%, rgba(12, 28, 21, 0.82) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(18, 43, 33, 0) 30%, rgba(10, 24, 18, 0.38) 100%);
}

.world-hero .wrap { position: relative; z-index: 2; }

.world-hero h1 {
  color: var(--paper);
  max-width: 18ch;
  margin: 1.6rem auto 2.1rem;
  font-size: clamp(2.7rem, 6vw, 5rem);
  text-shadow: 0 2px 30px rgba(8, 20, 15, 0.55);
}

.world-hero .lead {
  color: rgba(247, 244, 237, 0.9);
  max-width: 56ch;
  margin: 0 auto;
  text-shadow: 0 1px 18px rgba(8, 20, 15, 0.6);
}

.world-hero .label { color: var(--brass-bright); }

.world-hero .ledger { border-color: rgba(247, 244, 237, 0.85); opacity: 0.9; }

.world-hero .label, .world-hero h1, .world-hero .lead, .world-hero .ledger {
  animation-name: rise;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.world-hero h1 { animation-delay: 0.15s; }
.world-hero .lead { animation-delay: 0.32s; }
.world-hero .ledger { animation-delay: 0.5s; }

.world-hero .city-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.6rem, 3.5vw, 2.6rem);
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.world-hero .city-tag .fixed { color: var(--brass-bright); }
.world-hero .city-tag .fixed::after { content: " \00b7 "; color: rgba(247, 244, 237, 0.5); }
.world-hero .city-tag .js-city {
  color: rgba(247, 244, 237, 0.92);
  transition: opacity 0.55s var(--ease);
}
.world-hero .city-tag .js-city.fading { opacity: 0; }

/* ---------- world: rotating financial capitals ---------- */

.world {
  position: relative;
  overflow: hidden;
  min-height: clamp(380px, 62vh, 600px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.world .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s var(--ease), transform 9s linear;
  filter: saturate(0.6) brightness(0.82) contrast(1.05);
}
.world .slide.is-active { opacity: 1; }

.world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 21, 0.55) 0%, rgba(12, 28, 21, 0.45) 50%, rgba(12, 28, 21, 0.78) 100%);
}

.world .wrap { position: relative; z-index: 2; }

.world .label { color: var(--brass-bright); }

.world .city {
  font-family: "Caslon Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--paper);
  line-height: 1.15;
  margin: 1.2rem 0 1.4rem;
  transition: opacity 0.55s var(--ease);
  text-shadow: 0 2px 26px rgba(8, 20, 15, 0.55);
}
.world .city.fading { opacity: 0; }

.world .world-note {
  font-size: 0.95rem;
  color: rgba(247, 244, 237, 0.8);
  max-width: 46ch;
  margin: 0 auto;
}

.world .world-rule {
  width: 110px;
  margin: 1.8rem auto 0;
  border-top: 1px solid rgba(247, 244, 237, 0.8);
  border-bottom: 3px double rgba(247, 244, 237, 0.8);
  height: 7px;
  opacity: 0.85;
}

/* ---------- cinematic photo hero ---------- */

.photo-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(580px, 92vh, 940px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.photo-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.88) contrast(1.06) saturate(0.75);
  animation: heroscale 14s var(--ease) both;
}

@keyframes heroscale {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 21, 0.42) 0%, rgba(12, 28, 21, 0.30) 42%, rgba(12, 28, 21, 0.82) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(18, 43, 33, 0) 30%, rgba(10, 24, 18, 0.42) 100%);
}

.photo-hero .wrap { position: relative; z-index: 2; }

.photo-hero h1 {
  color: var(--paper);
  max-width: 20ch;
  margin: 1.6rem auto 2.1rem;
  text-shadow: 0 2px 30px rgba(8, 20, 15, 0.55);
}

.photo-hero .lead {
  color: rgba(247, 244, 237, 0.88);
  max-width: 54ch;
  margin: 0 auto;
  text-shadow: 0 1px 18px rgba(8, 20, 15, 0.6);
}

.photo-hero .label { color: var(--brass-bright); }

.photo-hero .ledger {
  border-color: rgba(247, 244, 237, 0.85);
  opacity: 0.9;
}

.photo-hero .label, .photo-hero h1, .photo-hero .lead, .photo-hero .ledger {
  animation-name: rise;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.photo-hero h1 { animation-delay: 0.15s; }
.photo-hero .lead { animation-delay: 0.32s; }
.photo-hero .ledger { animation-delay: 0.5s; }

/* ---------- photo banner (interior pages) ---------- */

.photo-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(340px, 52vh, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.photo-banner .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.85) contrast(1.05) saturate(0.7);
}

.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 21, 0.5) 0%, rgba(12, 28, 21, 0.72) 100%);
}

.photo-banner .wrap { position: relative; z-index: 2; }
.photo-banner h1 { color: var(--paper); margin-top: 1.4rem; text-shadow: 0 2px 26px rgba(8, 20, 15, 0.55); }
.photo-banner .label { color: var(--brass-bright); }
.photo-banner .ledger { border-color: rgba(247, 244, 237, 0.85); opacity: 0.9; }
.photo-banner .label, .photo-banner h1, .photo-banner .ledger {
  animation-name: rise;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.photo-banner h1 { animation-delay: 0.15s; }
.photo-banner .ledger { animation-delay: 0.32s; }

/* ---------- statement over dark water ---------- */

.statement-photo {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
}

.statement-photo .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.5) sepia(0.18) hue-rotate(90deg);
}

.statement-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 21, 0.55);
}

.statement-photo .wrap { position: relative; z-index: 2; }

.statement-photo .display {
  color: var(--paper);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-style: italic;
  max-width: 28ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(8, 20, 15, 0.6);
}

.statement-photo .orn { width: 42px; height: 42px; color: var(--brass-bright); margin: 0 auto 1.8rem; }
.statement-photo .label { color: var(--brass-bright); display: block; margin-bottom: 1.8rem; }

.statement-photo a.quiet {
  display: inline-block;
  margin-top: 2.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.4rem;
  transition: color 0.3s;
}
.statement-photo a.quiet:hover { color: var(--brass-bright); }

/* ---------- heritage timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.timeline > div {
  border-top: 1px solid var(--green);
  position: relative;
  padding-top: 1.5rem;
}
.timeline > div::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  opacity: 0.3;
}

.timeline .year {
  font-family: "Caslon Display", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--green);
  line-height: 1;
}

.timeline h3 {
  font-family: "Caslon Text", Georgia, serif;
  font-weight: 400;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0.9rem 0 0.7rem;
}

.timeline p { font-size: 0.96rem; line-height: 1.72; }

/* timeline on a green panel */
.panel .timeline > div { border-top-color: rgba(150, 121, 59, 0.55); }
.panel .timeline > div::after { background: var(--brass); opacity: 0.3; }
.panel .timeline .year { color: var(--paper); }
.panel .timeline h3 { color: var(--brass-bright); }
.panel .timeline p { color: rgba(247, 244, 237, 0.78); }

/* ledger ornament: the double rule of an audited statement */
.ledger {
  width: 110px;
  margin: 2.6rem auto 0;
  border-top: 1px solid var(--green);
  border-bottom: 3px double var(--green);
  height: 7px;
  opacity: 0.75;
}

/* ---------- chart figure ---------- */

figure.chart { margin: 0; }

figure.chart img {
  width: 100%;
  height: auto;
  box-shadow: 0 24px 50px -32px rgba(18, 43, 33, 0.55);
}

figure.chart figcaption {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: 0.88rem;
  text-align: center;
  color: rgba(35, 34, 28, 0.68);
}

/* ---------- record strip ---------- */

.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.record > div {
  border-top: 1px solid var(--green);
  position: relative;
  padding-top: 1.5rem;
}
.record > div::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  opacity: 0.3;
}

.record .figure {
  font-family: "Caslon Display", Georgia, serif;
  font-size: clamp(2.6rem, 4.5vw, 3.7rem);
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.record .cap {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(35, 34, 28, 0.66);
}

/* ---------- green practice panel, guilloche beneath ---------- */

.panel {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--paper);
}

.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 220px;
  background: url("img/guilloche.svg") center / cover no-repeat;
  pointer-events: none;
}

.panel .wrap { position: relative; z-index: 1; }

.panel .rule-label::before,
.panel .rule-label::after { background: rgba(150, 121, 59, 0.4); }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(150, 121, 59, 0.32);
  border: 1px solid rgba(150, 121, 59, 0.32);
}

.practice-grid > div {
  background: var(--green);
  padding: clamp(1.8rem, 3.6vw, 2.8rem);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.practice-grid > div:hover {
  background: var(--green-lift);
  transform: translateY(-3px);
}

.practice-grid .numeral {
  display: block;
  font-family: "Caslon Display", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 1.1rem;
  transition: color 0.4s var(--ease);
}
.practice-grid > div:hover .numeral { color: var(--brass-bright); }

.practice-grid h3 {
  font-family: "Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.42rem;
  color: var(--paper);
  margin-bottom: 0.8rem;
}

.practice-grid p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: rgba(247, 244, 237, 0.78);
}

/* ---------- statement ---------- */

.statement .display {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  max-width: 30ch;
  margin: 0 auto;
}

.statement .orn {
  width: 40px;
  height: 40px;
  color: var(--brass);
  margin: 0 auto 1.6rem;
}

.statement a.quiet {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.4rem;
  transition: color 0.3s, letter-spacing 0.4s var(--ease);
}
.statement a.quiet:hover { color: var(--brass); }

/* ---------- roman-numeral tenets (firm page) ---------- */

.tenets { list-style: none; max-width: 780px; margin: 0 auto; }

.tenets li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.6rem;
  padding: clamp(1.8rem, 3.4vw, 2.6rem) 0;
  border-top: var(--hairline);
}
.tenets li:last-child { border-bottom: var(--hairline); }

.tenets .numeral {
  font-family: "Caslon Display", Georgia, serif;
  font-size: 2rem;
  color: var(--brass);
  line-height: 1;
  padding-top: 0.2rem;
}

.tenets h3 {
  font-family: "Caslon Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.tenets p { font-size: 1rem; }

/* ---------- chairman ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.bio-facts {
  position: sticky;
  top: 7rem;
  border-top: 2px solid var(--green);
  padding-top: 1.4rem;
}

.bio-facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1.4rem;
}
.bio-facts dt:first-child { margin-top: 0; }
.bio-facts dd { font-size: 0.95rem; margin-top: 0.25rem; }

.bio-prose p + p { margin-top: 1.4rem; }

.bio-prose > p:first-of-type::first-letter {
  font-family: "Caslon Display", Georgia, serif;
  font-size: 4.6rem;
  line-height: 0.82;
  float: left;
  padding: 0.32rem 0.75rem 0 0;
  color: var(--green);
}

/* ---------- inquiries ---------- */

.inquiry-mark svg { width: 74px; height: 74px; color: var(--green); margin: 0 auto 2rem; }

a.address {
  font-family: "Caslon Display", Georgia, serif;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-style: italic;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  transition: border-color 0.3s, color 0.3s;
}
a.address:hover { border-bottom-color: var(--brass); color: var(--green-lift); }

.registry {
  margin-top: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(35, 34, 28, 0.6);
}

/* ---------- footer, guilloche above ---------- */

.site-foot {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: rgba(247, 244, 237, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 190px;
  background: url("img/guilloche.svg") center / cover no-repeat;
  pointer-events: none;
}

.site-foot .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.2rem;
  justify-items: center;
  text-align: center;
}

.site-foot svg { width: 54px; height: 54px; color: var(--brass); }

.site-foot .foot-name {
  font-family: "Caslon Text", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--paper);
}

.site-foot .legal {
  max-width: 62ch;
  font-size: 0.76rem;
  color: rgba(247, 244, 237, 0.6);
}

.site-foot .fine {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.42);
}

/* ---------- scroll reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .practice-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-facts { position: static; }
  .tenets li { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .site-head .wrap { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .site-nav { justify-content: center; gap: 1.05rem; }
  .site-nav a { font-size: 0.67rem; letter-spacing: 0.15em; }
  .record { gap: 1.6rem 2rem; grid-template-columns: repeat(2, 1fr); }
  .hero::before { width: 88vw; right: -30%; top: -4%; opacity: 0.04; }
  figure.chart img { aspect-ratio: 16 / 10; object-fit: cover; }
  .photo-hero { min-height: min(78vh, 640px); }
  .timeline { grid-template-columns: 1fr; }
  .split-hero .split, .split-hero > .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-slides { min-height: 320px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { margin: 1.5rem auto 1.6rem; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-copy .ledger { margin: 2.2rem auto 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .hero .label, .hero h1, .hero .lead, .hero .ledger { animation: none; }
  .photo-hero .bg { animation: none; }
  .live-hero .label, .live-hero h1, .live-hero .lead, .live-hero .ledger { animation: none; }
  .photo-hero .label, .photo-hero h1, .photo-hero .lead, .photo-hero .ledger,
  .photo-banner .label, .photo-banner h1, .photo-banner .ledger { animation: none; }
  .hero-copy .label, .hero-copy h1, .hero-copy .lead, .hero-copy .ledger,
  .hero-slides { animation: none; }
  .hero-slides .progress .bar.is-on::after { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand:hover svg { transform: none; }
  .practice-grid > div:hover { transform: none; }
}
