/* ==========================================================================
   CETA Advisory — c3ta.com
   Hand-written stylesheet. No framework, no build step.

   Palette and type are fixed below. Change a value here and it changes
   everywhere on the site.
   ========================================================================== */

:root {
  --off-white: #FCFAF8;   /* page background */
  --ink:       #14181F;   /* headlines, dark sections */
  --slate:     #344256;   /* buttons, links */
  --gold:      #B89E7A;   /* eyebrows and accents only */
  --warm:      #F5F1EA;   /* alternating section background */
  --rule:      #D8D5D0;   /* hairline borders */
  --card:      #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --page:  1200px;        /* shared container width — nav, sections, footer */
  --gutter: 1.5rem;
}

@media (min-width: 768px) {
  :root { --gutter: 3rem; }
}

/* ---------- reset ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

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

/* ---------- shared layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 6rem; }

@media (min-width: 768px) {
  .section { padding-block: 8rem; }
}

.section--warm { background: var(--warm); }
.section--ink  { background: var(--ink); color: var(--off-white); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.rule-short {
  width: 3rem;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0 0 2rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--off-white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus { left: 0; }

/* ---------- navbar ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s ease, border-color 0.5s ease,
              padding 0.5s ease, backdrop-filter 0.5s ease;
}

/* Solid once the page moves, or while the mobile menu is open. */
.nav.is-scrolled,
.nav.is-open {
  padding-block: 1rem;
  background: rgba(252, 250, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Home page only: light type while the bar sits over the dark hero. */
.nav--over .wordmark,
.nav--over .nav__links a { color: var(--off-white); }

.nav--over .nav__toggle span { background: var(--off-white); }

.nav--over.is-scrolled .wordmark,
.nav--over.is-scrolled .nav__links a,
.nav--over.is-open .wordmark,
.nav--over.is-open .nav__links a { color: var(--ink); }

.nav--over.is-scrolled .nav__toggle span,
.nav--over.is-open .nav__toggle span { background: var(--ink); }

.wordmark, .nav__links a, .nav__toggle span { transition: color 0.5s ease, background-color 0.5s ease; }

/* Inner pages start below the fixed bar. */
body.inner main { padding-top: 5.5rem; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span { color: var(--gold); }

.nav__links {
  display: none;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--gold); }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
}

.nav__toggle span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--ink);
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--rule);
  padding-block: 1.25rem 1.75rem;
}

.nav__mobile.is-open { display: block; }

@media (min-width: 900px) {
  .nav__mobile.is-open { display: none; }
}

.nav__mobile a {
  display: block;
  padding-block: 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(to bottom, #14181F 0%, #1A1F28 100%);
  color: var(--off-white);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-block: 9rem 6rem;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__label i {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

.hero__label span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  margin-bottom: 2rem;
}

/* The only italic on the entire site. */
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(252, 250, 248, 0.82);
  max-width: 42rem;
  margin-bottom: 3rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.25rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.88; }

.btn--full { width: 100%; }

.btn--slate { background: var(--slate); color: var(--off-white); }

.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- manifesto ---------- */

.manifesto { text-align: center; max-width: 52rem; margin-inline: auto; }

.manifesto h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.manifesto hr {
  width: 6rem;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0 auto 3rem;
}

.manifesto p {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(20, 24, 31, 0.72);
}

/* ---------- capabilities ---------- */

.cap__head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 5rem;
}

@media (min-width: 900px) {
  .cap__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cap__head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.cap__intro {
  max-width: 30rem;
  color: rgba(20, 24, 31, 0.72);
}

.cap__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2.5rem;
  row-gap: 3.5rem;
}

@media (min-width: 700px) {
  .cap__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.cap__item h3 {
  font-size: 1.5rem;
  margin: 0;
  transition: color 0.5s ease;
}

.cap__item:hover h3 { color: var(--slate); }
.cap__item:hover .cap__label { border-bottom-color: var(--slate); }

.cap__label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.5s ease;
}

.cap__num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
}

.cap__item p {
  font-weight: 300;
  color: rgba(20, 24, 31, 0.72);
}

/* ---------- commitments ---------- */

.commit__head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}

.commit__head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.commit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

.commit__item {
  border-top: 1px solid rgba(252, 250, 248, 0.22);
  padding-top: 2rem;
}

.commit__item h3 {
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.commit__item p {
  font-weight: 300;
  color: rgba(252, 250, 248, 0.74);
}

/* ---------- leadership ---------- */

.lead__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 5rem;
}

.lead__head h2 { font-size: clamp(2rem, 4vw, 3rem); }

.lead__body {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (min-width: 1000px) {
  .lead__body { flex-direction: row; gap: 4.5rem; align-items: flex-start; }
  .lead__photo { width: 33%; flex: none; }
  .lead__text  { width: 60%; }
}

.lead__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--warm);
}

.lead__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--slate);
  transition: color 0.2s ease;
}

.lead__link:hover { color: var(--gold); }

.lead__text h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.lead__text p {
  font-weight: 300;
  color: rgba(20, 24, 31, 0.8);
  margin-bottom: 1.25rem;
}

/* ---------- insights cards ---------- */

.ins__head { margin-bottom: 3rem; }

.ins__head h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.ins__head p {
  color: rgba(20, 24, 31, 0.62);
  max-width: 34rem;
}

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

@media (min-width: 700px) {
  .ins__grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Card is a flex column so every divider and arrow lands on one baseline. */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
}

.card:hover { border-color: rgba(184, 158, 122, 0.55); }

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card__cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.card__time {
  font-size: 0.75rem;
  color: rgba(20, 24, 31, 0.42);
}

.card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.card__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(20, 24, 31, 0.62);
  flex: 1 0 auto;
}

.card__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.card__foot svg {
  color: rgba(20, 24, 31, 0.32);
  transition: color 0.3s ease, transform 0.3s ease;
}

.card:hover .card__foot svg {
  color: var(--gold);
  transform: translateX(4px);
}

/* ---------- insights index header ---------- */

.ins-page__head { padding-block: 3rem 4rem; }

.ins-page__head h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
}

.ins-page__head p {
  color: rgba(20, 24, 31, 0.7);
  max-width: 34rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(20, 24, 31, 0.55);
  transition: color 0.2s ease;
}

.back:hover { color: var(--gold); }

.divider { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- article ---------- */

.article { padding-block: 3rem 6rem; }

.article__inner { max-width: 44rem; margin-inline: auto; }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 24, 31, 0.42);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.article .card__cat { display: block; margin-bottom: 1.25rem; }

.article__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(20, 24, 31, 0.3);
}

.article h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.article__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(20, 24, 31, 0.72);
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* Hairline between an article's header and its body. */
.article__accent {
  height: 1px;
  margin-block: 3.5rem;
  background: linear-gradient(to right,
    rgba(184, 158, 122, 0.6), rgba(184, 158, 122, 0.2), transparent);
}

.article__nav {
  max-width: 44rem;
  margin: 4.5rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.artnav__grid { display: grid; }

.article__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .article__nav { grid-template-columns: repeat(2, 1fr); }
}

.artnav {
  display: block;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
}

.artnav:hover { border-color: rgba(184, 158, 122, 0.55); }

.artnav--next { text-align: right; }

.artnav__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(20, 24, 31, 0.42);
}

.artnav--next .artnav__label { justify-content: flex-end; }

.artnav h4 {
  font-size: 1.1rem;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.artnav:hover h4 { color: var(--gold); }

.article__all {
  grid-column: 1 / -1;
  margin-top: 1rem;
  text-align: center;
}

.article__all a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(20, 24, 31, 0.42);
  transition: color 0.2s ease;
}

.article__all a:hover { color: var(--gold); }

.article__body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(20, 24, 31, 0.86);
  margin-bottom: 1.6rem;
}

.article__body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 3.25rem;
  margin-bottom: 1.4rem;
}

.article__body blockquote {
  margin: 2.75rem 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--gold);
}

.article__body blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}


/* ---------- contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

.contact h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 2rem;
}

.contact__intro {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(20, 24, 31, 0.7);
  max-width: 28rem;
  margin-bottom: 3rem;
}

.contact__detail { margin-bottom: 2rem; }

.contact__detail h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact__detail a { color: rgba(20, 24, 31, 0.8); text-decoration: none; }
.contact__detail a:hover { color: var(--gold); }

.form {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 2rem;
}

@media (min-width: 768px) {
  .form { padding: 3rem; }
}

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 1px var(--slate);
}

.field--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .field--row { grid-template-columns: repeat(2, 1fr); }
}

/* Spam honeypot — hidden from people, visible to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(20, 24, 31, 0.5);
}

.form__status {
  margin-top: 1.25rem;
  padding: 1rem;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid var(--rule);
}

.form__status[hidden] { display: none; }

.form__status.is-ok    { border-color: var(--gold); color: var(--ink); }
.form__status.is-error { border-color: #B44; color: #8A2A2A; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--off-white);
  padding-block: 4rem 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

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

.footer .wordmark { color: var(--off-white); }

.footer__about {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(252, 250, 248, 0.6);
  max-width: 26rem;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer li { margin-bottom: 0.75rem; }

.footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(252, 250, 248, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer li a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(252, 250, 248, 0.1);
  font-size: 0.75rem;
  color: rgba(252, 250, 248, 0.4);
}

@media (min-width: 800px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

.footer__bottom a { color: var(--gold); text-decoration: none; }
.footer__bottom a:hover { color: rgba(252, 250, 248, 0.6); }

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

.prose { max-width: 42rem; margin-inline: auto; }

.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}

.prose .updated {
  font-size: 0.85rem;
  color: rgba(20, 24, 31, 0.5);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.prose p, .prose li {
  color: rgba(20, 24, 31, 0.82);
  margin-bottom: 1.1rem;
}

.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.1rem; }

.prose a { color: var(--slate); }

.center-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 6rem;
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
