/* ==========================================================================
   nicolevp.com — Nicole Villemarette-Pittman
   Palette is a starting point, not a decision. Retune the tokens below and
   nothing else in this file needs to change.
   ========================================================================== */

:root {
  /* Surfaces — deep evergreen-teal */
  --bg:            #0b1a1c;
  --bg-alt:        #0f2225;
  --bg-deep:       #071214;
  --bg-raised:     #142b2e;

  /* One warm copper accent (--brass kept as the token name so the rest of the file is unchanged) */
  --brass:         #c38a5f;
  --brass-bright:  #dba882;
  --brass-soft:    rgba(195, 138, 95, 0.16);
  --brass-line:    rgba(195, 138, 95, 0.40);

  /* Ink */
  --ink:           #eef3f2;
  --ink-2:         #adc2c0;
  --ink-3:         #7a9492;

  --rule:          rgba(173, 194, 192, 0.13);

  /* Type */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --shell:   1120px;
  --gutter:  clamp(20px, 5vw, 48px);
  --band-y:  clamp(72px, 11vw, 148px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05vw + 14px, 19px);
  line-height: 1.68;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass-bright); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--bg-deep); padding: 12px 20px; font-family: var(--sans);
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 26, 28, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.topbar__name {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.topbar__nav a {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; color: var(--ink-2);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta {
  color: var(--brass-bright) !important;
  border: 1px solid var(--brass-line); border-radius: 2px; padding: 7px 15px;
}
.topbar__cta:hover { background: var(--brass-soft); }
@media (max-width: 720px) {
  .topbar__nav a:not(.topbar__cta) { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.hero__portrait { justify-self: end; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; justify-self: start; }
}
h1 {
  font-size: clamp(2.9rem, 7.2vw, 5rem);
  line-height: 1.02; font-weight: 400; letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
.hero__lede {
  font-size: clamp(1.28rem, 2.3vw, 1.72rem);
  line-height: 1.34; font-weight: 400; color: var(--ink);
  max-width: 26ch; margin: 0 0 1.1em;
  border-left: 2px solid var(--brass); padding-left: clamp(16px, 2vw, 24px);
}
.hero__sub { color: var(--ink-2); max-width: 54ch; margin: 0 0 2.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.83rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 2px;
  background: var(--brass); color: #0b1017; border: 1px solid var(--brass);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--brass-bright); color: #0b1017; }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--brass-line); }

/* portrait */
/* Source headshot is 400x400. The frame stays at or below that so the image
   is never upscaled. */
.portrait {
  --portrait-size: 280px;
  margin: 0; position: relative;
  width: min(var(--portrait-size), 62vw); aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--brass-line), 0 16px 40px rgba(0, 0, 0, 0.38);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait__monogram {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.4rem);
  letter-spacing: 0.06em; color: var(--brass); opacity: 0.55;
}
.portrait--fallback .portrait__monogram { display: flex; }

/* ---------- bands ---------- */
section[id] { scroll-margin-top: 84px; }
.band { padding: var(--band-y) 0; border-top: 1px solid var(--rule); }
.band--alt { background: var(--bg-alt); }
.band--contact { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 clamp(26px, 3.6vw, 44px);
  display: flex; align-items: center; gap: 14px;
}
.eyebrow__num { color: var(--brass); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.16; font-weight: 400; letter-spacing: -0.015em;
  margin: 0 0 clamp(22px, 3vw, 34px); max-width: 24ch;
}
h3 {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 8px;
}

.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.35em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.pull {
  color: var(--ink) !important;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.5;
  border-left: 2px solid var(--brass); padding-left: clamp(16px, 2vw, 24px);
  max-width: 60ch; margin-top: clamp(28px, 4vw, 44px);
}

/* ---------- sectors table ---------- */
.sectors { width: 100%; border-collapse: collapse; text-align: left; }
.sectors thead th {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 0 14px; border-bottom: 1px solid var(--brass-line);
}
.sectors tbody th {
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem; color: var(--ink);
  width: 27%; padding: 26px 32px 26px 0; vertical-align: top; letter-spacing: 0.01em;
}
.sectors tbody td { color: var(--ink-2); padding: 26px 0; vertical-align: top; font-size: 0.97rem; line-height: 1.62; }
.sectors tbody tr + tr th, .sectors tbody tr + tr td { border-top: 1px solid var(--rule); }

@media (max-width: 780px) {
  .sectors, .sectors tbody, .sectors tr, .sectors th, .sectors td { display: block; width: auto; }
  .sectors thead { display: none; }
  .sectors tbody tr { padding: 22px 0; border-top: 1px solid var(--rule); }
  .sectors tbody tr:first-child { border-top: 1px solid var(--brass-line); }
  .sectors tbody tr + tr th, .sectors tbody tr + tr td { border-top: 0; }
  .sectors tbody th { padding: 0 0 8px; color: var(--brass-bright); }
  .sectors tbody td { padding: 0; }
}

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--rule); background: var(--bg-deep); }
.facts__row {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--rule);
}
.facts__row > div { background: var(--bg-deep); padding: clamp(22px, 3vw, 34px) clamp(12px, 2vw, 24px); }
.facts__row > div:first-child { padding-left: 0; }
.facts dt {
  font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 400;
  line-height: 1.05; color: var(--brass-bright); letter-spacing: -0.01em;
}
.facts dd {
  margin: 8px 0 0; font-family: var(--sans); font-size: 0.8rem; line-height: 1.45;
  letter-spacing: 0.03em; color: var(--ink-2);
}
@media (max-width: 720px) {
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__row > div:nth-child(odd) { padding-left: 0; }
}

/* ---------- table group rows ---------- */
.sectors tbody tr.sectors__group th {
  width: auto; padding: 40px 0 12px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--brass-bright);
  border-top: 0 !important; border-bottom: 1px solid var(--brass-line);
}
.sectors tbody tr.sectors__group:first-child th { padding-top: 8px; }
.sectors tbody tr.sectors__group + tr th, .sectors tbody tr.sectors__group + tr td { border-top: 0; }
@media (max-width: 780px) {
  .sectors tbody tr.sectors__group { padding: 32px 0 0; border-top: 0 !important; }
  .sectors tbody tr.sectors__group th { padding: 0 0 10px; }
  .sectors tbody tr.sectors__group + tr { border-top: 0; }
  .sectors tbody th { color: var(--ink); width: auto; }
}
@media (max-width: 520px) {
  .topbar__name { letter-spacing: 0.08em; font-size: 0.74rem; }
}

/* ---------- engagements ---------- */
/* No item numbers: the section eyebrow already carries a counter, and two
   numbering systems stacked read as an outline rather than a list. */
.engagements {
  list-style: none; margin: clamp(26px, 3.6vw, 40px) 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.engagements li {
  background: var(--bg-alt);
  padding: clamp(24px, 3.4vw, 36px) 0;
}
.engagements h3 {
  margin: 0 0 10px;
  position: relative; padding-left: 20px;
}
.engagements h3::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 10px; height: 1px; background: var(--brass);
}
.engagements p {
  margin: 0; padding-left: 20px;
  color: var(--ink-2); max-width: 62ch; font-size: 0.97rem;
}

/* ---------- contact ---------- */
.contact__grid {
  display: grid; gap: clamp(40px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__name { font-size: 1.5rem; margin: 0 0 4px; }
.contact__role { font-family: var(--sans); font-size: 0.88rem; color: var(--brass-bright); margin: 0 0 14px; letter-spacing: 0.02em; }
.contact__org { color: var(--ink-2); margin: 0 0 20px; font-size: 0.97rem; line-height: 1.55; }
.contact__links { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.contact__links a { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.02em; border-bottom: 1px solid var(--brass-line); padding-bottom: 2px; }
.contact__note { color: var(--ink-3); font-size: 0.93rem; max-width: 34ch; margin: 0; }

.contact__form {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 3px;
  padding: clamp(24px, 3.6vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--sans); font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.field .opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; opacity: 0.7; }
.field input, .field textarea {
  width: 100%; background: var(--bg-deep); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 13px 15px; font-family: var(--sans); font-size: 0.95rem; line-height: 1.5;
  transition: border-color 0.16s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--brass-line); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c96a5a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { width: 100%; cursor: pointer; margin-top: 6px; }
.btn--submit[disabled] { opacity: 0.55; cursor: progress; }

.formstatus {
  font-family: var(--sans); font-size: 0.88rem; line-height: 1.5;
  margin: 16px 0 0; min-height: 1.2em; color: var(--ink-2);
}
.formstatus[data-state="ok"]  { color: var(--brass-bright); }
.formstatus[data-state="err"] { color: #e0917f; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); background: var(--bg-deep); padding: 34px 0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--sans); font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.03em;
}
.footer a { color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.footer a:hover { color: var(--brass-bright); }

/* ---------- in-place editor (loaded for signed-in editors only) ---------- */
.editbar {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 16px; border-radius: 4px;
  background: var(--bg-raised); border: 1px solid var(--brass-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--sans); font-size: 0.82rem; color: var(--ink-2);
}
.editbar__who { color: var(--ink-3); }
.editbar__status { flex: 1 1 220px; min-width: 0; }
.editbar__status[data-state="ok"] { color: var(--brass-bright); }
.editbar__status[data-state="err"] { color: #e0917f; }
.editbar__btn {
  font: inherit; font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
  padding: 8px 14px; border-radius: 2px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule);
}
.editbar__btn:hover { border-color: var(--brass-line); }
.editbar__btn--primary { background: var(--brass); border-color: var(--brass); color: #0b1017; }
.editbar__btn--primary:hover { background: var(--brass-bright); }
.editbar__btn[disabled] { opacity: 0.5; cursor: default; }
.editbar__link { font-size: 0.78rem; color: var(--ink-3); }

.is-editing [data-edit] {
  outline: 1px dashed var(--brass-line); outline-offset: 4px; border-radius: 1px;
  cursor: text; transition: outline-color 0.15s ease;
}
.is-editing [data-edit]:hover { outline-color: var(--brass); }
.is-editing [data-edit]:focus { outline: 2px solid var(--brass-bright); background: var(--brass-soft); }
.is-editing [data-edit].is-dirty { outline-style: solid; outline-color: var(--brass); }
.is-editing body { padding-bottom: 120px; }
.is-editing [data-edit].is-conflict { outline: 2px solid #e0917f; }
