/* Ascendria Consulting — editorial magazine, centered serif stack */
:root {
  --teal:       #3f5a65;
  --teal-deep:  #2a3e47;
  --ink:        #243740;
  --gold:       #f8d42e;
  --gold-deep:  #c9a61a;
  --paper:      #f4f2ea;
  --paper-2:    #ebe7dc;
  --white:      #f8f6f0;
  --line:       #d9d4c6;
  --muted:      #5b6d75;
  --near:       #f6f3ea;

  --serif:      "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:       "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw:       1080px;
  --measure:    640px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --radius:     12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .pull-quote, .belief-copy, .contact-email {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

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

#practice, #quote, #focus, #faq, #contact, #top {
  scroll-margin-top: 88px;
}

.stack, .stack-narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stack-narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--near); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: var(--teal); color: var(--near);
  box-shadow: 0 14px 28px -16px rgba(36,55,64,.5);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}

/* Header — magazine masthead */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(244,242,234,.9);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -22px rgba(36,55,64,.45);
}

.masthead {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; z-index: 2; }
.brand img { border-radius: 8px; }
.brand-name {
  font-size: 26px; font-weight: 600; color: var(--teal);
  letter-spacing: 0.01em;
}

.nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--gold-deep); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav .nav-cta {
  letter-spacing: .04em; text-transform: none; font-size: 13px; font-weight: 600;
  color: var(--teal); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px;
}
.nav .nav-cta::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px; justify-self: end;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--teal); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — centered serif stack */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(248,212,46,.12), transparent 62%),
    var(--paper);
}

.hero-motion {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-slash {
  position: absolute; left: 50%; top: 46%;
  width: min(920px, 140%); height: auto;
  transform: translate(-50%, -50%);
  opacity: .55;
}
.slash-path {
  fill: none; stroke: url(#goldLine); stroke-width: 1.4;
  stroke-dasharray: 820; stroke-dashoffset: 820;
  animation: drawSlash 3.2s var(--ease) .2s forwards;
}
.slash-soft { opacity: .45; animation-delay: .7s; stroke-width: .9; }
.slash-dot {
  fill: var(--gold);
  opacity: 0;
  animation: fadeDot 1.4s ease 1.6s forwards;
}
.hero-pulse {
  position: absolute; left: 50%; top: 48%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(248,212,46,.45);
  animation: pulseGold 3.6s ease-out 1.8s infinite;
  opacity: .85;
}

@keyframes drawSlash {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeDot {
  to { opacity: .9; }
}
@keyframes pulseGold {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(248,212,46,.4); }
  70%  { transform: scale(1.15); box-shadow: 0 0 0 22px rgba(248,212,46,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(248,212,46,0); }
}

.hero .container { position: relative; z-index: 2; }

.folio {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 18px;
}
.eyebrow {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 6.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: .96;
}
.hero h1 em {
  font-style: italic; font-weight: 500; color: var(--teal);
}

.draw-rule {
  display: block; width: 88px; height: 2px; margin: 34px 0 28px;
  background: var(--gold);
  transform-origin: center;
  animation: growRule 1.6s var(--ease) .5s both;
}
@keyframes growRule {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 36px;
}

/* Contents */
.contents {
  border-block: 1px solid var(--line);
  background: var(--white);
}
.contents-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 18px 24px;
}
.contents a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.contents a span {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--gold-deep); letter-spacing: 0; font-weight: 600;
}

/* Sections */
.section { padding: 104px 0; }
.kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: var(--ink); font-weight: 500;
}
.deck {
  color: var(--muted); margin-top: 18px; font-size: 1.05rem;
  max-width: 40em;
}

/* Chapter stack */
.chapter-stack {
  display: grid; gap: 18px;
  margin-top: 56px;
  max-width: 720px;
}
.chapter {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px 34px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.chapter-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; color: var(--gold-deep); margin: 0 0 10px;
}
.chapter h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  color: var(--ink); margin-bottom: 12px;
}
.chapter p { color: var(--muted); font-size: 1rem; }

/* Oversized pull-quote */
.quote-band {
  background: var(--teal);
  color: var(--near);
  padding: 112px 0 108px;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(248,212,46,.08), transparent 42%),
    repeating-linear-gradient(-18deg, transparent 0 46px, rgba(248,212,46,.045) 46px 47px);
  pointer-events: none;
}
.quote-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.quote-kicker {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 28px;
}
.pull-quote {
  position: relative;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  font-style: italic; font-weight: 500;
  line-height: 1.12;
  color: #f8f6f0;
  max-width: 16ch;
}
.q-mark {
  display: block;
  font-size: .72em; line-height: 1; color: var(--gold);
  opacity: .85; margin-bottom: .08em;
  animation: markRise 2s var(--ease) both;
}
@keyframes markRise {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: none; opacity: .85; }
}
.quote-attr {
  margin-top: 28px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(246,243,234,.72); font-weight: 600;
}
.quote-rule {
  display: block; width: 64px; height: 2px; margin-top: 28px;
  background: var(--gold);
  animation: growRule 1.8s var(--ease) .4s both;
}

/* Lens list */
.lens-list {
  list-style: none; margin: 56px auto 0; padding: 0;
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.lens {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background .3s var(--ease), transform .3s var(--ease), padding .3s var(--ease);
}
.lens-idx {
  font-family: var(--serif); font-style: italic;
  font-size: 1.7rem; color: var(--gold-deep); line-height: 1.1;
}
.lens-body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--ink); margin-bottom: 8px;
}
.lens-body p { color: var(--muted); }

/* Belief */
.belief {
  background: var(--teal-deep);
  color: var(--near);
  padding: 88px 0;
  text-align: center;
}
.belief-label {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 18px;
}
.belief-copy {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-style: italic; color: #f8f6f0;
  line-height: 1.28;
}

/* FAQ */
.faq-wrap { max-width: 720px; margin: 40px auto 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink); transition: color .2s var(--ease);
}
.faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--gold-deep); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); font-size: 1rem; margin: 0 0 22px; padding-right: 24px; text-align: left; }

/* Contact */
.contact { padding-bottom: 112px; }
.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-style: italic; color: var(--teal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.contact-addr {
  margin-top: 14px; color: var(--muted); font-size: .98rem;
}
.contact-form {
  max-width: 560px; margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
  text-align: left;
  box-shadow: 0 24px 50px -36px rgba(36,55,64,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 12px 14px; font: inherit; font-size: 15px; width: 100%;
  resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,90,101,.16);
}
.contact-form .btn { justify-self: start; }

/* Footer — dark band, near-white text */
.site-footer {
  background: var(--teal-deep);
  color: var(--near);
  padding: 64px 0 40px;
  border-top: 1px solid #1e2e35;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.site-footer .brand-name { color: #f8f6f0; }
.footer-tag {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: rgba(248,246,240,.82); margin: 0;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: rgba(248,246,240,.72);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s;
}
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(248,246,240,.58); font-size: 14px;
  margin-top: 8px; padding-top: 22px;
  border-top: 1px solid rgba(248,246,240,.14);
  width: 100%; max-width: 520px;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slash-path, .slash-dot, .hero-pulse, .draw-rule, .quote-rule, .q-mark { animation: none; }
  .slash-path { stroke-dashoffset: 0; }
  .slash-dot { opacity: .9; }
  .hero-pulse { display: none; }
}

/* Hover — after reveal.in so transforms are not locked */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--teal-deep);
    box-shadow: 0 18px 34px -14px rgba(36,55,64,.55);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    color: var(--teal);
  }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
  .nav .nav-cta:hover {
    background: var(--teal); color: var(--near); border-color: var(--teal);
  }
  .contents a:hover { color: var(--ink); }
  .js .reveal.in.chapter:hover,
  .chapter:hover {
    transform: translateY(-5px);
    border-color: #cfc9b8;
    box-shadow: 0 22px 40px -28px rgba(36,55,64,.4);
  }
  .js .reveal.in.lens:hover,
  .lens:hover {
    background: var(--white);
    transform: translateY(-3px);
    padding-left: 18px; padding-right: 18px;
  }
  .faq-q:hover { color: var(--teal); }
  .contact-email:hover {
    color: var(--ink);
    border-bottom-color: var(--gold-deep);
    transform: translateY(-1px);
  }
  .footer-nav a:hover { color: #fff; }
  .js .reveal.in.contact-form:hover,
  .contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px -32px rgba(36,55,64,.42);
  }
}

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; justify-content: flex-start;
    background: rgba(244,242,234,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 2px; font-size: 14px;
    border-bottom: 1px solid var(--line);
    letter-spacing: .12em;
  }
  .nav a::after { display: none; }
  .nav .nav-cta {
    text-align: center; margin-top: 14px;
    border: 1px solid var(--teal); color: var(--teal);
  }
}

@media (max-width: 720px) {
  .hero { padding: 132px 0 72px; min-height: auto; }
  .section { padding: 72px 0; }
  .quote-band { padding: 88px 0 80px; }
  .belief { padding: 72px 0; }
  .contact { padding-bottom: 80px; }
  .chapter { padding: 28px 22px 26px; }
  .lens { grid-template-columns: 1fr; gap: 6px; padding: 24px 4px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-form .btn { width: 100%; justify-self: stretch; }
  .contents-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 16px 20px;
  }
  .contents a { justify-content: center; }
}

@media (max-width: 420px) {
  .container, .masthead { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 2.7rem; }
  .chapter-stack { gap: 14px; margin-top: 40px; }
  .section { padding: 64px 0; }
}
