/* About page — Chalk Studio–inspired layout
 * Typography map (per section):
 *  FK Grotesk (Trial): page body, logo, journey kicker, year tabs, timeline copy, Lattice Edit titles & body
 *  Arimo/Helvetica: nav links, Get in touch pill, card category rows, subscribe pill, join label & underlined links
 *  Montserrat 100–200: thin all-caps — inspire quote + “Believe in the same things we do?” */
@font-face {
  font-family: "FK Grotesk Trial";
  src: url("../fonts/FKGroteskTrial-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ab-bg: #F5F5F0;
  --ab-bg-2: #EBEBE6;
  --ab-text: #000000;
  --ab-muted: #666666;
  --ab-muted-light: #999999;
  --ab-font-fk: "FK Grotesk Trial", "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --ab-font-helv: "Arimo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* Alias: editorial grotesk (same as FK) */
  --ab-font-grotesk: var(--ab-font-fk);
  /* Light wide all-caps (inspire + join headline) — requires Montserrat weights enqueued */
  --ab-font-join: "Montserrat", var(--ab-font-helv), sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.page-about {
  font-family: var(--ab-font-fk);
  color: var(--ab-text);
  background: var(--ab-bg);
  overflow-x: hidden;
}

/* —— Header: logo = FK; nav = Arimo, uppercase; CTA pill = Arimo —— */
.ab-logo {
  font-family: var(--ab-font-fk);
}

.ab-header .ab-nav a:not(.ab-btn-cta) {
  font-family: var(--ab-font-helv);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.ab-btn-cta {
  font-family: var(--ab-font-helv);
}

/* —— Journey: years + copy = FK —— (kicker: .ab-timeline-kicker; panel .ab-sub: small label) */
.ab-year,
.ab-panel .ab-sub,
.ab-panel h2,
.ab-panel p {
  font-family: var(--ab-font-fk);
}

/* —— Inspire: Montserrat light, wide all-caps —— */
.ab-inspire-quote {
  font-family: var(--ab-font-join);
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
}

/* —— Lattice Edit: section title + cards + hint = FK; category meta = Arimo; subscribe = Arimo —— */
.ab-edit-top h2,
.ab-edit-hint,
.ab-card h3 {
  font-family: var(--ab-font-fk);
}

.ab-card-cat {
  font-family: var(--ab-font-helv);
}

.ab-subscribe-pill button {
  font-family: var(--ab-font-helv);
}

/* —— Join: label + links = Arimo; main question = Montserrat (see .ab-join-center h2) —— */
.ab-join-label,
.ab-join-links a {
  font-family: var(--ab-font-helv);
}

.page-about a {
  text-decoration: none;
  color: inherit;
}

/* —— Header (hero) —— */
.ab-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ab-logo {
  font-size: 1.45rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.5px;
}

.ab-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ab-nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.4px;
  transition: color 0.2s;
}

.ab-nav a:hover {
  color: #fff;
}

.ab-btn-cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a1a;
  background: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.2s;
}

.ab-btn-cta:hover {
  background: #f0f0ec;
  transform: translateY(-1px);
}

/* —— Hero —— */
.ab-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
}

.ab-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.ab-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.ab-hero h1 {
  position: relative;
  z-index: 10;
  max-width: 960px;
  text-align: center;
  font-family: var(--ab-font-fk);
  font-size: clamp(0.7rem, 1.05vw, 0.9rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
}

/* —— Timeline —— */
.ab-timeline {
  display: grid;
  grid-template-columns: minmax(100px, 0.9fr) minmax(280px, 1.2fr) minmax(200px, 1fr);
  gap: 48px 56px;
  padding: 120px 50px 130px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
  background: var(--ab-bg);
}

.ab-timeline-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}

/* Chalk: small lowercase section label (FK Regular) */
.ab-timeline-kicker {
  font-family: var(--ab-font-fk);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ab-muted);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: none;
  margin: 0;
}

.ab-years {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-year {
  background: none;
  border: none;
  font-family: var(--ab-font-fk);
  cursor: pointer;
  text-align: left;
  padding: 4px 0;
  color: var(--ab-muted-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.25s, font-size 0.25s, font-weight 0.25s;
}

.ab-year:hover {
  color: var(--ab-muted);
}

.ab-year.is-active {
  color: var(--ab-text);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ab-timeline-panels {
  min-height: 200px;
}

.ab-panel {
  display: none;
  animation: abFade 0.35s ease;
}

.ab-panel.is-visible {
  display: block;
}

@keyframes abFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ab-panel .ab-sub {
  font-size: 0.78rem;
  color: var(--ab-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.ab-panel h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--ab-text);
  font-family: var(--ab-font-grotesk);
}

.ab-panel p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ab-muted);
  max-width: 38em;
}

.ab-sketch {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ab-sketch svg {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

/* —— Inspiration —— */
.ab-inspire {
  background: var(--ab-bg-2);
  padding: 100px 40px 110px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.1fr) 1fr;
  gap: 32px 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.ab-inspire-img {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-inspire-img img {
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

.ab-inspire-quote {
  text-align: center;
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 200;
  letter-spacing: 0.32em;
  line-height: 1.85;
  text-transform: uppercase;
  color: #3a3a3a;
  padding: 0 8px;
}

/* —— Lattice Edit carousel —— */
.ab-edit {
  background: var(--ab-bg);
  padding: 90px 50px 100px;
}

.ab-edit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto 32px;
}

.ab-edit-top h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.02em;
}

.ab-edit-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-edit-hint {
  font-size: 0.8rem;
  color: var(--ab-muted);
  margin-right: 6px;
}

.ab-edit-arrows {
  display: flex;
  gap: 8px;
}

.ab-edit-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.7rem;
  transition: border-color 0.2s, color 0.2s;
}

.ab-edit-btn:hover {
  border-color: #999;
  color: #111;
}

.ab-edit-track-wrap {
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.ab-edit-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ab-edit-track::-webkit-scrollbar {
  display: none;
}

.ab-edit-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.ab-card {
  flex: 0 0 min(28%, 320px);
  min-width: min(28%, 320px);
  max-width: 320px;
}

.ab-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 14px;
}

.ab-card-cat {
  font-size: 0.75rem;
  color: var(--ab-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ab-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ab-text);
}

.ab-subscribe-pill {
  text-align: center;
  margin-top: 40px;
}

.ab-subscribe-pill button {
  font-family: var(--ab-font-helv);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333;
  background: var(--ab-bg-2);
  border: 1px solid #d8d8d0;
  padding: 16px 40px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.ab-subscribe-pill button:hover {
  background: #e5e5df;
  border-color: #c8c8c0;
}

/* —— Join us —— */
.ab-join {
  background: #fff;
  padding: 100px 40px 110px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 500px) 1fr;
  gap: 32px 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.ab-join-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ab-join-img img {
  max-width: 75%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.1));
}

.ab-join-center {
  text-align: center;
}

.ab-join-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ab-muted);
  margin-bottom: 12px;
  display: block;
}

/* Chalk “Join us” headline: hairline weight + wide tracking (Montserrat Thin/ExtraLight) */
.ab-join-center h2 {
  font-family: var(--ab-font-join);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 200; /* 100 = Thin; use 200 if 100 is hard to read on your display */
  letter-spacing: 0.3em;
  line-height: 1.7;
  margin-bottom: 28px;
  text-transform: uppercase;
  color: #1a1a1a;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
}

.ab-join-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
}

.ab-join-links a {
  font-size: 0.88rem;
  color: var(--ab-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.ab-join-links a:hover {
  color: var(--ab-text);
  border-bottom-color: var(--ab-text);
}

@media (max-width: 1024px) {
  .ab-timeline {
    grid-template-columns: 1fr 1fr;
    padding: 80px 32px 90px;
  }
  .ab-sketch {
    grid-column: 1 / -1;
    order: 3;
  }
  .ab-years {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .ab-year.is-active {
    font-size: 1.35rem;
  }
  .ab-inspire {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ab-inspire-img:first-child { order: 1; }
  .ab-inspire-quote { order: 0; }
  .ab-inspire-img:last-child { order: 2; }
  .ab-join {
    grid-template-columns: 1fr;
  }
  .ab-join-img { order: 1; }
  .ab-join-center { order: 0; }
}

@media (max-width: 768px) {
  .ab-header {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .ab-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
  }
  .ab-hero h1 {
    letter-spacing: 0.2em;
    font-size: 0.65rem;
  }
  .ab-timeline {
    grid-template-columns: 1fr;
  }
  .ab-card {
    flex: 0 0 80%;
    min-width: 80%;
  }
}

/* ========== WordPress: About template only (.dl-page-about-chalk from body_class) ========== */
/* Hide default theme header; this page has .ab-header inside the hero */
body.dl-page-about-chalk .header,
body.dl-page-about-chalk .menu-toggle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile: open the theme overlay menu (same as main site) */
.ab-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.ab-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.22);
}
@media (max-width: 900px) {
  .ab-header .ab-nav { display: none; }
  .ab-header .ab-menu-trigger { display: flex; }
}

.dl-page-about-chalk .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
