/* ==========================================================================
   The Noteworthy Project — design system
   Palette is taken from the existing logo: navy #0A2648, orange #EA983D.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     Palette — "Concert". Ink, warm ivory, and brass.
     Every colour in the site comes from here and nowhere else, so a
     rethemed site is this block and nothing more. Alternates live in
     palette-*.css; load one after this file to try it.
     ------------------------------------------------------------------ */
  --deep:        #14110f;   /* warm near-black: dark sections, headings   */
  --deep-700:    #241e1a;
  --deep-500:    #4d423a;

  --accent:      #b08a46;   /* brass — on dark grounds and as a button    */
  --accent-600:  #8a6829;   /* darker brass — accent text on light        */
  --accent-100:  #f4ead6;

  --ground:      #f7f3ea;   /* warm ivory page                            */
  --ground-200:  #efe7d7;
  --paper:       #fffdf8;
  --ink:         #14110f;
  --ink-muted:   #6b6158;
  --rule:        #e3dac9;

  --ok:          #3d6b4f;
  --hold:        #8a6d3b;
  --tint:        #fdf8ea;   /* warm highlight panels */
  --tint-rule:   #e8dcc0;

  --wrap:        1160px;
  --gap:         clamp(1.25rem, 3vw, 2.5rem);
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(20,17,15,.05), 0 8px 28px -12px rgba(20,17,15,.20);
  --shadow-lg:   0 2px 4px rgba(20,17,15,.07), 0 24px 60px -24px rgba(20,17,15,.34);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--paper { background: var(--paper); }
.section--ground { background: var(--ground-200); }
.section--deep  { background: var(--deep); color: #ded5c6; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 0 0 .9rem;
}
.section--deep .eyebrow { color: var(--accent); }

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-muted); line-height: 1.6; }
.section--deep .lede { color: #b5aa99; }

.skip {
  position: absolute; left: -9999px;
  background: var(--deep); color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,234,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.45rem; }
.nav a {
  font-size: .82rem; font-weight: 600; color: var(--deep);
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-600); border-bottom-color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--rule);
    border-radius: 10px; padding: .5rem .7rem; font: inherit; color: var(--deep); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 100% 0 auto; margin: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); padding: .5rem 1.25rem 1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: .75rem; text-align: center; }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--sans);
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #14110f; box-shadow: 0 6px 18px -10px rgba(176,138,70,.95); }
.btn--primary:hover { background: var(--accent-600); color: #fffdf8; }
.btn--deep { background: var(--deep); color: #fff; }
.btn--deep:hover { background: var(--deep-700); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--deep); }
.section--deep .btn--ghost { color: #ded5c6; }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--deep); color: #ebe3d6; overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1.05fr .95fr;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: #bcb1a0; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__art { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero__art figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 3.5rem 1.6rem 1.4rem;
  background: linear-gradient(to top, rgba(20,17,15,.86), rgba(20,17,15,0));
  color: #fff;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.15;
}
.hero__credit {
  margin-top: .7rem; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-muted);
}

/* Two arrows, opposite directions — the whole thesis as a graphic. */
.flow { display: grid; gap: 1rem; margin-top: 2.5rem; }
.flow__row { display: flex; align-items: center; gap: .85rem; font-size: .97rem; color: #cdc3b2; }
.flow__arrow {
  flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(176,138,70,.18); color: var(--accent); font-size: 1.05rem;
}

/* --- stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.stat__n {
  font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  line-height: 1; color: var(--accent); font-weight: 600;
}
.stat__l { font-size: .9rem; color: var(--ink-muted); margin-top: .4rem; }
.section--deep .stat__l { color: #a99d8b; }

/* --- pillars ------------------------------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }
.pillar {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.pillar__tag {
  align-self: flex-start; font: 600 .75rem/1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px;
  background: var(--accent-100); color: var(--accent-600); margin-bottom: 1.1rem;
}
.pillar ul { margin: 0 0 1.5rem; padding-left: 1.1rem; color: var(--ink-muted); }
.pillar li { margin-bottom: .45rem; }
.pillar .btn { margin-top: auto; align-self: flex-start; }

/* --- steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--deep); color: var(--accent);
  font: 600 1.1rem/1 var(--serif); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-muted); font-size: .97rem; }

/* --- listing cards ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a {
  font: 500 .9rem/1 var(--sans); padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--deep); text-decoration: none;
}
.filters a:hover { border-color: var(--accent); }
.filters a[aria-current="page"] { background: var(--deep); border-color: var(--deep); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; background: var(--ground-200); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media svg { width: 42%; height: auto; opacity: .55; color: var(--deep-500); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.card__meta { font-size: .88rem; color: var(--ink-muted); margin: 0 0 .9rem; }
.card__body .btn { margin-top: auto; align-self: flex-start; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  align-self: flex-start;   /* card bodies are flex columns; without this the pill spans the card */
  font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: .38rem .7rem; border-radius: 999px; margin-bottom: .7rem;
}
.badge--ready { background: #e6efe7; color: var(--ok); }
.badge--lead  { background: var(--accent-100); color: var(--accent-600); }
.badge--held  { background: #f1e9d6; color: var(--hold); }
.badge--movers{ background: var(--ground-200); color: var(--ink-muted); text-transform: none; letter-spacing: 0; }

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--deep); }
.field .hint { font-size: .85rem; color: var(--ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: .75rem .9rem;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--deep-500); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.check input { width: auto; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.panel {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: var(--shadow);
}

.flash { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.75rem; font-weight: 500; }
.flash--ok   { background: #e8f0e9; color: #2c5540; border: 1px solid #c6dccb; }
.flash--err  { background: #fbeaea; color: #8a2b2b; border: 1px solid #eecccc; }

/* --- events ------------------------------------------------------------- */
.events { display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
}
.event__when {
  font: 600 .85rem/1.4 var(--sans); color: var(--accent-600);
  text-align: center; padding-right: 1.25rem; border-right: 1px solid var(--rule); min-width: 108px;
}
.event__what h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.event__what p { font-size: .92rem; color: var(--ink-muted); margin: 0; }

/* --- quote -------------------------------------------------------------- */
.quote {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.35; color: var(--deep); text-wrap: balance;
}
.section--deep .quote { color: #fff; }
.quote cite { display: block; font: 500 .95rem/1.5 var(--sans); color: var(--ink-muted); font-style: normal; margin-top: 1.25rem; }
.section--deep .quote cite { color: #a99d8b; }

/* --- prose -------------------------------------------------------------- */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--deep); color: #a89c8b; padding-block: 3.5rem 2.5rem; font-size: .93rem; }
.site-footer a { color: #ded5c6; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em;
                   text-transform: uppercase; margin-bottom: .9rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: .5rem; }
.footer__logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer__legal {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8a7f6f;
}

.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.empty {
  border: 1px dashed var(--rule); border-radius: var(--radius);
  padding: 3rem 1.5rem; text-align: center; color: var(--ink-muted);
}
