/* ==========================================================================
   Adaeze & Co. — Brass Docket. Tokens are LOCKED (handoff doc 04 §1).
   Three families only: Cormorant Garamond, IBM Plex Sans, IBM Plex Mono.
   Mobile-first: base styles target 375px, widened with min-width queries.
   Radii: 0px everywhere. No rounded corner may ever be added.
   ========================================================================== */

:root {
  --obsidian: #0A0A0A;
  --panel: #1F1F1F;
  --frame: #2A2A2A;
  --chalk: #EDEAE4;
  --chalk-dim: #A8A29A;
  --chalk-faint: #6E685F;
  --brass: #C9A227;
  --oxblood: #5A1F1B;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad-x: 6vw;
  --sec-pad: 56px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--obsidian);
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--brass);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

p a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--chalk);
  color: var(--obsidian);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- The frame ------------------------------------------------------------
   Signature: the page sits inside a ruled box. On small screens the double
   rule would read as noise, so it collapses to one left border (doc 04 §3). */

.frame {
  margin: 0 auto;
  border-left: 1px solid var(--frame);
}

.inner-rule {
  display: none;
}

@media (min-width: 900px) {
  .frame {
    position: relative;
    max-width: 1240px;
    border-right: 1px solid var(--frame);
  }

  /* second, inset hairline makes the frame double-ruled */
  .inner-rule {
    display: block;
    position: absolute;
    inset: 0 5px;
    border-left: 1px solid var(--panel);
    border-right: 1px solid var(--panel);
    pointer-events: none;
  }
}

/* --- Header --------------------------------------------------------------- */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--frame);
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--chalk);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand span {
  color: var(--brass);
  font-style: italic;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  transition: color 250ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--brass);
  text-decoration: none;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: 44px var(--pad-x) 40px;
  border-bottom: 1px solid var(--frame);
}

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass);
}

.lede {
  max-width: 520px;
  font-size: 16px;
  color: var(--chalk-dim);
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--panel);
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facts dt,
.f-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--chalk);
}

@media (min-width: 600px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* --- Section grid: 200px label column + content --------------------------- */

.sec {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--frame);
}

.sec-label {
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--frame);
}

.sec-label p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

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

@media (min-width: 900px) {
  .sec {
    grid-template-columns: 200px 1fr;
  }

  .sec-label {
    padding: var(--sec-pad) 24px;
    border-bottom: 0;
    border-right: 1px solid var(--frame);
  }
}

/* --- Expandable clauses 01–06 --------------------------------------------- */

.clause {
  border-bottom: 1px solid var(--panel);
  transition: border-color 250ms ease;
}

.clause-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 22px var(--pad-x);
  text-align: left;
}

.clause-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brass);
}

.clause-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.14;
  color: var(--chalk);
  transition: color 250ms ease;
}

.clause-tog {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  color: var(--brass);
}

.clause-head:hover .clause-title {
  color: var(--brass);
}

.clause-body {
  padding: 0 var(--pad-x) 24px;
  max-width: 66ch;
  font-size: 14px;
  color: var(--chalk-dim);
}

.clause-body p + p {
  margin-top: 12px;
}

.clause-body a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .clause-head {
    grid-template-columns: 40px 1fr auto;
    gap: 18px;
    padding: 26px 32px;
  }

  .clause-body {
    padding: 0 32px 26px 90px;
  }
}

/* --- Figures: sourced numerals -------------------------------------------- */

.figures {
  display: grid;
  grid-template-columns: 1fr;
}

.figure {
  padding: 26px var(--pad-x);
  border-bottom: 1px solid var(--panel);
}

.figure:last-child {
  border-bottom: 0;
}

.fig-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  color: var(--brass);
}

.fig-note {
  font-size: 14px;
  color: var(--chalk-dim);
  margin-top: 6px;
}

.fig-src {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-top: 10px;
}

@media (min-width: 900px) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
  }

  .figure {
    padding: 30px 26px;
    border-bottom: 0;
    border-left: 1px solid var(--panel);
  }

  .figure:first-child {
    border-left: 0;
  }
}

/* --- People --------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: 1fr;
}

.person {
  padding: 26px var(--pad-x);
  border-bottom: 1px solid var(--panel);
}

.person:last-child {
  border-bottom: 0;
}

.portrait {
  aspect-ratio: 3 / 3.4;
  background: var(--panel);
  border: 1px solid var(--frame);
  margin-bottom: 16px;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(0.18);
}

.person h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.2;
}

.person-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin: 6px 0 10px;
}

.person p {
  font-size: 14px;
  color: var(--chalk-dim);
}

@media (min-width: 900px) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }

  .person {
    padding: 30px 26px;
    border-bottom: 0;
    border-left: 1px solid var(--panel);
  }

  .person:first-child {
    border-left: 0;
  }
}

/* --- Priced rows, lists, prose -------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--panel);
}

.row:last-child {
  border-bottom: 0;
}

.row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.14;
}

.row p {
  grid-column: 2 / -1;
  font-size: 14px;
  color: var(--chalk-dim);
  margin-top: 8px;
}

.area-block {
  padding: 30px var(--pad-x) 34px;
  border-bottom: 1px solid var(--frame);
}

.area-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.area-block h2 .clause-num {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}

.area-block h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin: 22px 0 6px;
}

.area-block p {
  font-size: 15px;
  color: var(--chalk-dim);
  max-width: 68ch;
}

.area-block p + p {
  margin-top: 10px;
}

.prose {
  max-width: 680px;
  padding: 34px var(--pad-x) 44px;
}

.prose p {
  font-size: 16px;
  color: var(--chalk-dim);
  margin-bottom: 18px;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--chalk);
  margin: 32px 0 10px;
}

.prose h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin: 24px 0 6px;
}

.prose ul {
  margin: 0 0 18px;
}

.prose li {
  font-size: 15px;
  color: var(--chalk-dim);
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--panel);
  position: relative;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
}

.note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--chalk-dim);
  border-top: 1px solid var(--panel);
  padding-top: 14px;
  margin-top: 26px;
}

.placeholder {
  color: var(--chalk-faint);
  font-style: italic;
}

/* --- Insights index ------------------------------------------------------- */

.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--panel);
  color: var(--chalk);
}

.post:last-child {
  border-bottom: 0;
}

.post:hover {
  background: #0E0E0E;
  text-decoration: none;
}

.post-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

.post h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.15;
  transition: color 250ms ease;
}

.post:hover h3 {
  color: var(--brass);
}

.post p {
  font-size: 14px;
  color: var(--chalk-dim);
  max-width: 64ch;
}

@media (min-width: 700px) {
  .post {
    grid-template-columns: 150px 1fr;
    gap: 4px 24px;
    padding: 24px 32px;
  }

  .post p {
    grid-column: 2;
  }
}

/* --- Enquiries: form + offices -------------------------------------------- */

.enq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 30px var(--pad-x) 40px;
}

.field {
  display: block;
  margin-bottom: 24px;
}

.field label,
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  margin-bottom: 4px;
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--frame);
  transition: border-color 250ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field select {
  color: var(--chalk);
}

.field select option {
  background: var(--obsidian);
  color: var(--chalk);
}

/* Visible focus: the underline turns brass and doubles in weight. */
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--brass);
  box-shadow: 0 1px 0 0 var(--brass);
  outline: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color 250ms ease, color 250ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brass);
  color: var(--obsidian);
  text-decoration: none;
}

.form-note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--chalk-dim);
  margin-top: 16px;
  max-width: 46ch;
}

.offices h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin-bottom: 2px;
}

.offices li {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--panel);
}

.offices li:last-child {
  border-bottom: 0;
}

.offices p,
.offices address {
  font-style: normal;
  font-size: 14px;
  color: var(--chalk-dim);
}

.offices .f-label {
  display: block;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .enq {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 34px 32px 46px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 15px;
  }
}

/* --- Article -------------------------------------------------------------- */

.article {
  max-width: 680px;
  padding: 34px var(--pad-x) 56px;
}

.article-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--panel);
}

.article h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.2;
  margin: 34px 0 10px;
}

.article p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--chalk-dim);
  margin-bottom: 18px;
}

.article ul {
  margin-bottom: 18px;
}

.article li {
  font-size: 15px;
  color: var(--chalk-dim);
  padding: 8px 0 8px 20px;
  position: relative;
}

.article li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
}

.article .draft-flag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--frame);
  padding: 8px 12px;
  margin-bottom: 22px;
}

.article .note {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--chalk-dim);
  border-top: 1px solid var(--panel);
  padding-top: 16px;
  margin-top: 34px;
}

/* --- Quote / callout ------------------------------------------------------ */

.pull {
  border-left: 1px solid var(--brass);
  padding: 4px 0 4px 18px;
  margin: 26px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--chalk);
}

/* --- Footer --------------------------------------------------------------- */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px var(--pad-x);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-faint);
}

.site-foot a {
  color: var(--chalk-dim);
}

/* --- 404 ------------------------------------------------------------------ */

.notfound {
  padding: 60px var(--pad-x) 72px;
  border-bottom: 1px solid var(--frame);
}

.notfound-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--chalk-faint);
}

.notfound h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  margin: 10px 0 16px;
}

.notfound p {
  max-width: 460px;
  color: var(--chalk-dim);
  font-size: 15px;
  margin-bottom: 26px;
}

.notfound .btn-row {
  margin-top: 8px;
}

/* --- Scroll reveal: opacity only, never movement -------------------------- */

.reveal {
  transition: opacity 400ms ease;
}

html.js .reveal {
  opacity: 0;
}

html.js .reveal.in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  html.js .reveal {
    opacity: 1;
    transition: none;
  }

  * {
    transition-duration: 0.001ms !important;
  }
}
