/* ============================================================
   Cognitive Edge Coaching — single-page site
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --ink: #16202c;
  --ink-soft: #3a4754;
  --ink-muted: #6b7884;
  --rule: #e4dccd;
  --accent: #2c5f7c;
  --accent-deep: #1f4659;
  --accent-soft: #d7e4ec;
  --gold: #a87c3e;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 760px;

  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent-deep);
}

em {
  font-style: italic;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(22, 32, 44, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  border-bottom-color: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.nav__logo {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  font-size: 14px;
  padding: 11px 20px;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: all 0.25s var(--ease);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px 32px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.nav__mobile a {
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font-display);
}

@media (max-width: 860px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__mobile.is-open {
    display: flex;
  }
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  padding: 110px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section--narrow .container {
  max-width: var(--maxw-narrow);
}

.section__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 28ch;
}

.section__lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 18px;
}

.prose p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 62ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__image {
  position: absolute;
  inset: 0 0 0 38%;
  pointer-events: none;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero__image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(250, 247, 242, 0.92) 35%,
    rgba(250, 247, 242, 0) 65%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding-top: 200px;
  padding-bottom: 120px;
}

@media (max-width: 860px) {
  .hero__image {
    inset: 0;
    opacity: 0.4;
  }
  .hero__image-fade {
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(250, 247, 242, 0.85) 40%,
      rgba(250, 247, 242, 0.95) 100%
    );
  }
  .hero__inner {
    padding-top: 150px;
    padding-bottom: 90px;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 18ch;
}

.hero__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--accent-deep);
  margin: 0 0 28px;
  max-width: 34ch;
}

.hero__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 40px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__fineprint {
  font-size: 13.5px;
  color: var(--ink-muted);
  max-width: 44ch;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ============================================================
   Is this you
   ============================================================ */
.prompts {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.prompts li {
  background: var(--bg-alt);
  padding: 28px 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  position: relative;
  padding-left: 56px;
  counter-increment: prompt;
}

.prompts li::before {
  content: counter(prompt, decimal-leading-zero);
  position: absolute;
  left: 28px;
  top: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.prompts {
  counter-reset: prompt;
}

.prompts__close {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  max-width: 50ch;
}

@media (max-width: 720px) {
  .prompts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Framework
   ============================================================ */
.framework__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 24px 0 64px;
}

.framework__strip > div {
  padding: 22px 18px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: center;
  border-right: 1px solid var(--rule);
}

.framework__strip > div:last-child {
  border-right: 0;
}

.framework__strip span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .framework__strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .framework__strip > div {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(22, 32, 44, 0.18);
}

.card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}

.card__num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.card__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--accent-deep);
  margin: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

.card__detail {
  color: var(--ink-muted) !important;
  font-size: 14.5px !important;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 6px !important;
}

/* ============================================================
   Different (two-column)
   ============================================================ */
.different__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .different__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}

.about__portrait {
  position: sticky;
  top: 100px;
}

.about__portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(22, 32, 44, 0.35);
  display: block;
}

.about__caption {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  text-align: center;
}

.credentials {
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.credentials li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__portrait {
    position: static;
    max-width: 280px;
  }
  .credentials {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Who
   ============================================================ */
.who__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.who__item {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.who__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
}

.who__item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

.who__item--wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .who__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .who__item--wide {
    grid-column: auto;
  }
}

/* ============================================================
   Consultation
   ============================================================ */
.consultation__inner {
  max-width: var(--maxw-narrow);
  text-align: center;
}

.consultation__inner .eyebrow,
.consultation__inner .section__heading {
  margin-left: auto;
  margin-right: auto;
}

.consultation__inner .section__heading {
  max-width: none;
}

.consultation__inner .prose {
  margin: 0 auto 36px;
}

.consultation__inner .prose p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.consultation__note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* ============================================================
   Contact form (inside consultation section, on light)
   ============================================================ */
.contact {
  max-width: 520px;
  margin: 36px auto 0;
  text-align: left;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 540px) {
  .contact__row {
    grid-template-columns: 1fr;
  }
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__field span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact__field input,
.contact__field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact__field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 95, 124, 0.12);
}

.contact__field input:invalid:not(:placeholder-shown),
.contact__field textarea:invalid:not(:placeholder-shown) {
  border-color: #c97777;
}

.contact__submit {
  margin-top: 6px;
  align-self: stretch;
}

.contact__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.contact__thanks {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  animation: fadeIn 0.5s var(--ease);
}

.contact__thanks-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 12px;
}

.contact__thanks-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 44ch;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #0f1820;
  color: rgba(255, 255, 255, 0.65);
  padding: 56px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}

.footer__logo {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(1) brightness(1.1);
  opacity: 0.9;
}

.footer__disclaimer {
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copy {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ============================================================
   Reveal-on-scroll animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   Small screen padding adjustments
   ============================================================ */
@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 140px 0 80px;
  }
  body {
    font-size: 16px;
  }
}
