/* ============================================================
   WFPULSE — SITE STYLES
   Page-level layout, components, and section styles.
   Tokens live in tokens.css; this file uses them.
   ============================================================ */

/* ---------- LAYOUT ---------- */
.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.section {
  padding: 120px 0;
}

.section--paper-100 { background: var(--paper-100); }
.section--ink {
  background: var(--ink-1000);
  color: var(--paper-50);
}
.section--ink-900 {
  background: var(--ink-900);
  color: var(--paper-50);
}

.rule-top { border-top: 1px solid var(--rule); }
.rule-btm { border-bottom: 1px solid var(--rule); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 28px 0;
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-500);
  position: relative;
}
.nav__mark::before,
.nav__mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.nav__mark::before {
  inset: 6px;
  background: var(--paper-50);
}
.nav__mark::after {
  inset: 11px;
  background: var(--ink-900);
}
.nav__name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__link {
  font-size: 14px;
  color: var(--ink-700);
  text-decoration: none;
}
.nav__link-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-400);
  margin-right: 6px;
}
.nav__link:hover { color: var(--accent-deep); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero__status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 56px;
}
.hero__status-live {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6B8E5A;
  display: inline-block;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: stretch;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 124px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.hero__title em {
  font-style: italic;
  color: var(--sage-700);
}
.hero__lede {
  margin: 36px 0 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
}
.hero__lede strong { font-weight: 500; }
.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
}
.hero__portrait-wrap {
  position: relative;
}
.hero__portrait {
  aspect-ratio: 4/5;
  border-radius: 4px;
}
.hero__annotation {
  position: absolute;
  left: -40px;
  bottom: 32px;
  background: var(--paper-50);
  border: 1px solid var(--rule);
  padding: 16px 20px;
  max-width: 240px;
  box-shadow: var(--sh-3);
}
.hero__rail {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero__rail-num {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero__rail-label { margin-top: 8px; }

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  overflow: hidden;
  background: var(--paper-100);
}
.marquee__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-500);
  letter-spacing: -0.01em;
}
.marquee__sep {
  margin-left: 56px;
  color: var(--ink-300);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTION HEADER ---------- */
.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.section-head__title em {
  color: var(--sage-700);
  font-style: italic;
}
.section-head__eyebrow { margin-bottom: 24px; }

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
}
.about__portrait {
  aspect-ratio: 3/4;
  border-radius: 4px;
}
.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.about__title em {
  color: var(--sage-300);
  font-style: italic;
}
.about__copy {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--paper-200);
  margin: 0;
}
.about__meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(251, 248, 241, 0.15);
}
.about__meta-label {
  margin-bottom: 8px;
  color: var(--sage-300);
}
.about__meta-value {
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- SERVICES ---------- */
.services__list {
  margin-top: 64px;
}
.services__row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 160px;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.services__row:last-child { border-bottom: 1px solid var(--rule); }
.services__num { color: var(--ink-900); }
.services__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.services__desc {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.6;
}
.services__investment { text-align: right; }
.services__investment-label { margin-bottom: 4px; }
.services__investment-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
}

/* ---------- PROCESS ---------- */
.process__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.process__step {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.process__num {
  color: var(--sage-700);
  margin-bottom: 24px;
}
.process__step-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.process__step-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
}

/* ---------- WORK ---------- */
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
}
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.work__item:nth-child(even) { transform: translateY(48px); }
.work__meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.work__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.work__sub { margin-top: 4px; }
.work__kpi {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--sage-700);
}

/* Case card — abstract editorial cover for each engagement */
.case-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 4px;
}
.case-card__art {
  position: absolute;
  inset: 0;
}
.case-card__art svg {
  width: 100%;
  height: 100%;
}
.case-card__label {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.case-card__name {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ---------- EXPERIENCE ---------- */
.xp__list { margin-top: 64px; }
.xp__row {
  display: grid;
  grid-template-columns: 180px 1fr 1.4fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.xp__row:last-child { border-bottom: 1px solid var(--rule); }
.xp__period { color: var(--ink-900); }
.xp__role {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.xp__company { margin-top: 4px; }
.xp__desc {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  margin: 0;
  padding: 32px;
  background: var(--paper-100);
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--sage-500);
}
.testimonial__quote {
  margin: 16px 0 32px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-700);
}
.testimonial__cite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--ink-950);
}
.testimonial__name {
  font-weight: 500;
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 96px;
}
.faq__list { width: 100%; }
.faq__item {
  border-top: 1px solid var(--rule);
}
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__btn {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.faq__q {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
}
.faq__sign {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-400);
}
.faq__a {
  margin: 0;
  padding-bottom: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 600px;
  display: none;
}
.faq__item[data-open="true"] .faq__a { display: block; }
.faq__item[data-open="true"] .faq__sign::before { content: "—"; }
.faq__item:not([data-open="true"]) .faq__sign::before { content: "+"; }

/* ---------- CONTACT ---------- */
.contact__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 1100px;
}
.contact__title em {
  color: var(--sage-300);
  font-style: italic;
}
.contact__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact__form .input {
  color: var(--paper-50);
  border-bottom-color: rgba(251, 248, 241, 0.2);
}
.contact__form .input::placeholder { color: rgba(251, 248, 241, 0.4); }
.contact__form .span-2 { grid-column: span 2; }
.contact__form textarea.input { resize: vertical; }
.contact__send {
  background: var(--sage-300);
  color: var(--ink-900);
  margin-top: 16px;
  width: fit-content;
  border: none;
}
.contact__send:hover { background: var(--sage-500); color: var(--paper-50); }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__detail-label { color: var(--sage-300); }
.contact__detail-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px 64px;
  background: var(--ink-900);
  color: var(--ink-400);
  border-top: 1px solid rgba(251, 248, 241, 0.1);
  display: flex;
  justify-content: space-between;
}

/* ---------- RESPONSIVE ----------
   The base layout is designed at 1440px. These breakpoints
   gracefully collapse the grid down for tablet and mobile. */
@media (max-width: 1100px) {
  .nav { padding: 24px 0; }
  .nav__links { gap: 24px; }
  .hero { padding: 56px 0 40px; }
  .container { padding: 0 32px; }
  .footer { padding: 24px 32px; }
  .hero__title { font-size: 88px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__rail { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__copy { grid-template-columns: 1fr; }
  .about__meta { grid-template-columns: 1fr; }
  .services__row { grid-template-columns: 60px 1fr; gap: 16px; }
  .services__desc, .services__investment { grid-column: 2; text-align: left; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1fr; }
  .work__item:nth-child(even) { transform: none; }
  .xp__row { grid-template-columns: 100px 1fr; }
  .xp__desc { grid-column: 1 / -1; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__title { font-size: 64px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head__title { font-size: 48px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__cta .t-mono { display: none; }
  .hero__title { font-size: 56px; }
  .hero__rail { grid-template-columns: 1fr; }
  .hero__annotation { left: 16px; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__form .span-2 { grid-column: 1; }
  .process__grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 12px; }
}
