/* ==========================================================================
   Nyansapo Chambers — warm chambers theme
   Deep forest green carries the page; ivory text, gold accents, photography
   glowing out of the dark. Paper sections give the eye daylight.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f5efe2;
  --paper-deep: #ece3d1;
  --ink: #20261f;
  --ink-soft: #5a6055;
  --hairline: #dcd3bd;
  --hairline-strong: #b8ae96;

  --forest: #17352a;
  --forest-deep: #0f2a20;
  --cream: #f2ead9;
  --cream-soft: #c3cfc0;

  --gold: #b3893c;        /* accents on paper */
  --gold-soft: #d3ab63;   /* accents on green */
  --gold-deep: #77571c;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Satoshi", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.09rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain, barely there. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 520;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.012em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold-soft); color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: min(76rem, 90vw); margin-inline: auto; }

.section { padding: 5.5rem 0 6rem; }

.section-deep {
  background: var(--forest);
  color: var(--cream);
  font-size: 1.1rem;
}
.section-deep h2, .section-deep h3, .section-deep h4 { color: var(--cream); }

/* Section labels: italic serif, a voice rather than a stamp */
.label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 420;
  color: var(--gold-deep);
  margin: 0 0 0.7rem;
}
.section-deep .label { color: var(--gold-soft); }

.rule-double {
  border-top: 1px solid rgba(211, 171, 99, 0.45);
  border-bottom: 1px solid rgba(211, 171, 99, 0.2);
  height: 5px;
}

/* ---------- Emblem & glyphs ---------- */
.emblem { fill: var(--gold-soft); }
.emblem-sm { width: 26px; height: 26px; }
.emblem-md { width: 92px; height: 92px; margin: 0 auto 1.1rem; }

.glyph {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  color: var(--gold);
  transition: color 0.25s ease;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-gold { background: var(--gold-soft); color: #231a08; border-color: var(--gold-soft); }
.btn-gold:hover { background: #e2bd77; border-color: #e2bd77; transform: translateY(-1px); }

.btn-ink { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-ink:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.7rem; }

.text-link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--gold-deep); }
.hero .text-link, .section-deep .text-link { color: var(--cream); }
.hero .text-link:hover, .section-deep .text-link:hover { color: var(--gold-soft); }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest);
  border-bottom: 1px solid rgba(242, 234, 217, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-name, .brand-sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand-name { color: var(--cream); }
.brand-sub { color: var(--gold-soft); }

.site-nav { display: flex; gap: 1.9rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
  padding: 0.2rem 0;
}
.site-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--forest);
  background-image:
    radial-gradient(56rem 34rem at 82% 6%, rgba(211, 171, 99, 0.16), transparent 62%),
    radial-gradient(40rem 26rem at 8% 96%, rgba(211, 171, 99, 0.07), transparent 60%);
  padding: 6.5rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold-soft);
  margin-bottom: 2.1rem;
}

.hero h1 {
  font-size: clamp(3rem, 6.2vw, 5rem);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 2rem;
  color: var(--cream);
  max-width: 13ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-soft);
}

.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.62;
  color: var(--cream-soft);
  max-width: 34ch;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.9rem; flex-wrap: wrap; }

/* ---------- Image plates ---------- */
.plate { margin: 0; position: relative; }
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.03) brightness(1.03);
}

/* Hero portrait of the study */
.plate-hero img {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  border: 1px solid rgba(211, 171, 99, 0.3);
  box-shadow: 0 3rem 5rem -3rem rgba(0, 0, 0, 0.6);
  filter: saturate(0.9) contrast(1.02) brightness(1.1);
}
.plate-hero figcaption {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream-soft);
}
.plate-hero figcaption::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--gold-soft);
  vertical-align: 0.32em;
  margin-right: 0.7rem;
}

/* Framed plates on green (weaver, columns) */
.plate-frame {
  border: 1px solid rgba(242, 234, 217, 0.2);
  border-radius: 12px;
  padding: 0.55rem;
}
.plate-frame img { aspect-ratio: 3 / 4; border-radius: 8px; }
.plate-frame figcaption {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cream-soft);
  text-align: center;
  padding: 0.85rem 0.5rem 0.35rem;
}
.plate-low { margin-bottom: 2.2rem; }
.plate-low img { aspect-ratio: 4 / 3; }

/* Approach: wide consultation plate on paper */
.plate-approach { margin: 0 0 3rem; }
.plate-approach img {
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  object-position: 50% 55%;
}
.plate-approach figcaption {
  margin-top: 0.95rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Section head ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 20rem);
  gap: 2.2rem;
  align-items: end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.9rem;
  margin-bottom: 2.8rem;
}
.section-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 0.9;
  color: var(--gold);
}
.section-head-text h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  margin: 0;
}
.section-aside {
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: right;
  margin: 0 0 0.35rem;
}
.section-deep .section-head { border-bottom-color: rgba(242, 234, 217, 0.3); }
.section-deep .section-no { color: var(--gold-soft); }
.section-deep .section-aside { color: var(--cream-soft); }

/* ---------- Practice index (paper) ---------- */
.group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid var(--ink);
  padding: 1.7rem 0 0.5rem;
}
.group-label h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.group-count {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin: 0;
}

.area-list {
  list-style: none;
  margin: 0 0 2.6rem;
  padding: 0;
  columns: 3;
  column-gap: 3rem;
}
.area-list li { break-inside: avoid; }
.area-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 0.62rem 0.15rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.area-link > span:first-child {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 520;
  line-height: 1.35;
  transition: color 0.25s ease;
}
.area-arrow {
  font-family: var(--serif);
  color: var(--gold);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.area-link:hover > span:first-child,
.area-link:focus-visible > span:first-child { color: var(--gold-deep); }
.area-link:hover .area-arrow,
.area-link:focus-visible .area-arrow { opacity: 1; transform: none; }
.area-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.ledger-hint {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1.4rem 0 0;
}

/* ---------- The chambers (green) ---------- */
.pull-quote {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 42rem;
  margin: 0 0 3.4rem;
}
.pull-quote::before {
  content: "";
  display: block;
  width: 3.4rem;
  height: 2px;
  background: var(--gold-soft);
  margin-bottom: 1.8rem;
}

.chambers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.66fr) minmax(0, 0.89fr);
  gap: 3rem;
  align-items: start;
}

.chambers-copy p { font-size: 1.12rem; color: var(--cream-soft); max-width: 46ch; }
.chambers-copy p.drop-cap { color: var(--cream); }
.chambers-copy p.drop-cap::first-letter {
  font-size: 3.5em;
  font-weight: 500;
  font-style: normal;
  float: left;
  line-height: 0.78;
  padding: 0.06em 0.14em 0 0;
  color: var(--gold-soft);
}
.pull-line {
  border-top: 1px solid rgba(242, 234, 217, 0.28);
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--cream);
  max-width: 30ch;
}

.values div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.1rem;
  border-bottom: 1px solid rgba(242, 234, 217, 0.16);
  padding: 1.05rem 0;
}
.values div:first-child { border-top: 1px solid rgba(242, 234, 217, 0.16); }
.values dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-top: 0.3em;
}
.values dd { margin: 0; font-size: 1.02rem; color: var(--cream-soft); }

/* ---------- Approach briefs (paper) ---------- */
.briefs li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 1.8rem;
  border-top: 1px solid var(--hairline-strong);
  padding: 2.1rem 0;
}
.briefs li:last-child { border-bottom: 1px solid var(--hairline-strong); }
.brief-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--gold);
}
.briefs h3 { font-size: 1.4rem; font-weight: 540; margin-bottom: 0.35rem; }
.briefs p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Contact (green, arch at rest behind) ---------- */
#contact { position: relative; overflow: hidden; }
.band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(0.25) saturate(0.9);
}
.contact-wrap { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4.5rem;
  align-items: start;
}

.contact-details dl div {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 1.4rem;
  border-bottom: 1px solid rgba(242, 234, 217, 0.16);
  padding: 1rem 0;
}
.contact-details dl div:first-child { border-top: 1px solid rgba(242, 234, 217, 0.35); }
.contact-details dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-top: 0.3em;
}
.contact-details dd { margin: 0; font-size: 1.06rem; color: var(--cream); }
.contact-details a {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.contact-details a:hover { color: var(--gold-soft); }

.contact-note {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream-soft);
  margin: 1.8rem 0 0;
  max-width: 34ch;
}

/* Form on green: underline fields */
.consult-form h3 { font-size: 1.55rem; font-weight: 540; margin-bottom: 1.8rem; }

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

.field { margin-bottom: 1.6rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-bottom: 0.15rem;
}
.optional { color: var(--cream-soft); opacity: 0.7; text-transform: none; letter-spacing: 0.04em; font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 234, 217, 0.38);
  border-radius: 0;
  padding: 0.55rem 0.1rem 0.6rem;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder {
  font-style: italic;
  color: rgba(242, 234, 217, 0.45);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-soft);
  box-shadow: 0 1px 0 var(--gold-soft);
}
.field select {
  appearance: none;
  color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23c3cfc0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  padding-right: 1.6rem;
  cursor: pointer;
}
.field select option { color: var(--ink); background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream-soft);
  padding: 0 0 2.4rem;
}
.footer-inner {
  text-align: center;
  padding-top: 3.4rem;
}
.footer-emblem { margin: 0 auto 1.1rem; }
.footer-name {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 1.7rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
}
.footer-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 5px;
}
.footer-nav span { color: var(--gold-soft); }

.footer-legal {
  border-top: 1px solid rgba(242, 234, 217, 0.14);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: var(--gold-soft);
  color: #231a08;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  border-radius: 3px;
}
.skip-link:focus { top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section { padding: 4rem 0 4.5rem; }
  .section-head { grid-template-columns: auto minmax(0, 1fr); }
  .section-aside { grid-column: 2; text-align: left; margin-top: 0.6rem; }

  .hero { padding: 4.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .plate-hero img { aspect-ratio: 16 / 10; }

  .area-list { columns: 2; column-gap: 2.4rem; }

  .chambers-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .area-list { columns: 1; }

  .values div,
  .contact-details dl div { grid-template-columns: 1fr; gap: 0.15rem; }

  .briefs li { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.1rem; }
  .brief-no { font-size: 2.1rem; }

  .header-inner { gap: 1.2rem; }
  .site-nav { gap: 1.15rem; }
  .header-inner .btn { order: 3; }

  .footer-legal { justify-content: center; text-align: center; }
}
