/* Hamza Chishti — v4 "Warm Editorial + Interactive"
   Tokens lifted verbatim from the design handoff. */

:root {
  --bg: #f6f3ec;
  --ink: #16130d;
  --body: #4a463b;
  --muted: #6b6656;
  --muted-2: #a29c8a;
  --hairline: rgba(22, 19, 13, 0.14);
  --hairline-soft: rgba(22, 19, 13, 0.1);
  --cream: #f6f3ec;

  /* hex fallbacks first, oklch for browsers that support it */
  --accent: #a2552f;
  --accent: oklch(0.55 0.14 42);
  --accent-bright: #d2794a;
  --accent-bright: oklch(0.68 0.14 42);
  --accent-select: #ad5c34;
  --accent-select: oklch(0.58 0.14 42);

  --maxw: 1200px;
  --pad: 40px;

  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-select); color: var(--cream); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

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

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- NAV */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  color: var(--cream);
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.nav.scrolled {
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(22, 19, 13, 0.12);
  color: var(--ink);
}
.nav__mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: inherit;
}
.nav__links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
.nav__links a { transition: opacity .2s ease; }
.nav__links a:not(.nav__cta):hover { opacity: 0.6; }
.nav__cta {
  color: var(--cream) !important;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--ink); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ------------------------------------------------------------- HERO */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #1c1a14;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 6, 4, 0.9) 0%,
    rgba(6, 6, 4, 0.35) 42%,
    rgba(6, 6, 4, 0.15) 70%,
    rgba(6, 6, 4, 0.45) 100%
  );
}
.hero__role {
  position: absolute;
  left: 0; right: 0;
  top: 88px;
  padding: 0 var(--pad);
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.82);
  pointer-events: none;
}
.hero__place {
  position: absolute;
  right: var(--pad);
  top: 88px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.72);
  pointer-events: none;
}
.x { color: var(--accent-bright); font-family: var(--display); }

.hero__foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 0 var(--pad) 56px;
  max-width: 1600px;
  margin: 0 auto;
  pointer-events: none;
}
.hero__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 17vw, 300px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0;
  text-align: center;
  color: var(--cream);
}
.hero__name .dot { color: var(--accent-bright); }
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.hero__intro {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 243, 236, 0.82);
  max-width: 42ch;
  margin: 0;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; pointer-events: auto; }

/* ------------------------------------------------------------ PILLS */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  padding: 15px 28px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pill--solid { background: var(--accent); color: var(--cream); }
.pill--solid:hover { background: var(--cream); color: var(--ink); }
.pill--ghost {
  padding: 15px 24px;
  font-weight: 600;
  border: 1px solid rgba(246, 243, 236, 0.4);
  color: var(--cream);
}
.pill--ghost:hover { border-color: var(--cream); }

/* ------------------------------------------------------------ INTRO */

.intro { padding-block: 110px 40px; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 32px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}
.intro__statement em { font-style: italic; color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
}
.stats__n { font-family: var(--serif); font-size: 46px; line-height: 1; }
.stats__l { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------- FIELD NOTES */

.section { padding-block: 100px; }
.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
h2.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.01em;
  margin: 0;
}
.section__sub { font-size: 13px; color: var(--muted); }

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.tab {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(22, 19, 13, 0.24);
  border-radius: 100px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.notes__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  min-height: 280px;
}
.notes__kicker {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.notes__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.notes__body { font-size: 17px; line-height: 1.75; color: var(--body); margin: 0; }
.notes__aside { border-left: 1px solid var(--hairline); padding-left: 40px; }
.notes__aside-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.notes__pt {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 16px;
  line-height: 1.45;
}
.notes__pt .arrow { color: var(--accent); font-family: var(--display); font-weight: 800; }

/* --------------------------------------------------------- MARQUEE */

.marquee {
  overflow: hidden;
  padding: 8px 0;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 8px;
  animation: tick 40s linear infinite;
}
.marquee__set { display: flex; gap: 8px; }
.marquee__cell {
  width: 280px;
  height: 200px;
  overflow: hidden;
  background: #26221a;
}
.marquee__cell img { width: 100%; height: 100%; object-fit: cover; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------- STORIES */

.stories__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(22, 19, 13, 0.24);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.story {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background .2s ease;
}
.story:hover { background: rgba(22, 19, 13, 0.03); }
.story__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  color: var(--muted-2);
}
.story__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.story__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.story__meta { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------- VOICES */

.voices { background: var(--ink); color: var(--cream); }
.voices h2.display { color: var(--cream); margin-bottom: 52px; }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice {
  margin: 0;
  border: 1px solid rgba(246, 243, 236, 0.16);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.voice blockquote {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 24px;
  color: var(--cream);
}
.voice figcaption {
  margin-top: auto;
  font-size: 13px;
  color: rgba(246, 243, 236, 0.62);
}
.voice figcaption .name { color: var(--accent-bright); font-weight: 600; }

/* ------------------------------------------------------ MENTORSHIP */

.mentor__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.mentor__aside { position: sticky; top: 100px; }
.mentor__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 20px 0;
  text-wrap: balance;
}
.mentor__p { font-size: 16px; line-height: 1.7; color: var(--body); margin: 0; }

.faq { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink);
}
.faq__icon {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
  padding: 0 0 26px;
  max-width: 60ch;
}
.faq__a[hidden] { display: none; }

/* --------------------------------------------------------- CONNECT */

.connect { background: var(--accent); color: var(--cream); }
.connect .wrap { padding-block: 110px; }
.connect__h {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}
.connect__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}
.connect__p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(246, 243, 236, 0.9);
  margin: 0 0 28px;
  max-width: 38ch;
}
.news { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.news input {
  flex: 1;
  min-width: 200px;
  background: rgba(246, 243, 236, 0.14);
  border: 1px solid rgba(246, 243, 236, 0.4);
  border-radius: 100px;
  padding: 15px 22px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.news input::placeholder { color: rgba(246, 243, 236, 0.6); }
.news input:focus { border-color: var(--cream); }
.news button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 100px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.news button:hover { background: var(--cream); color: var(--ink); }
.news__done { font-family: var(--serif); font-size: 26px; }

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.social {
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(246, 243, 236, 0.5);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.social--solid {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  font-weight: 700;
}

.foot {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.7);
  border-top: 1px solid rgba(246, 243, 236, 0.28);
  padding-top: 28px;
}
.foot__mark { font-family: var(--serif); font-size: 18px; text-transform: none; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------- RESPONSIVE */

@media (max-width: 1000px) {
  .notes__panel { grid-template-columns: 1fr; gap: 40px; }
  .notes__aside { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 32px; }
  .voices__grid { grid-template-columns: 1fr; }
  .mentor__grid { grid-template-columns: 1fr; gap: 40px; }
  .mentor__aside { position: static; }
  .connect__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 820px) {
  :root { --pad: 24px; }

  .nav__links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    color: var(--ink);
    padding: 88px 24px 32px;
    font-size: 15px;
    letter-spacing: 0.06em;
    transform: translateY(-100%);
    transition: transform .35s ease;
    box-shadow: 0 20px 50px rgba(22, 19, 13, 0.18);
  }
  .nav__links a {
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__cta {
    border-bottom: none !important;
    margin-top: 20px;
    text-align: center;
    align-self: flex-start;
    padding: 14px 26px;
  }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav.open { color: var(--ink); }

  .hero__role { gap: 10px; font-size: 11px; top: 76px; }
  .hero__place { display: none; }
  .hero__foot { padding-bottom: 40px; }
  .hero__row { flex-direction: column; align-items: flex-start; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stats__n { font-size: 38px; }

  .intro { padding-block: 80px 32px; }
  .section { padding-block: 72px; }

  .story {
    grid-template-columns: 32px 1fr;
    gap: 6px 16px;
    padding: 22px 0;
  }
  .story__title { grid-column: 2; }
  .story__cat { grid-column: 2; }
  .story__meta { grid-column: 2; }

  .connect .wrap { padding-block: 80px; }
  .foot { margin-top: 56px; }
}

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