/* ==========================================================================
   Authentic AF Club — authenticaf.club
   Plain CSS, no build step. Tokens up top; sections in page order below.
   ========================================================================== */

:root {
  --bone: #F2ECE1;
  --tint: #E7DFD0;
  --ink: #151311;
  --accent: #E8451F;
  --mute: #5A544B;
  --mute-dark: #B8B0A4;
  --line-dark: #4A4540;
  --copy-dark: #D8D1C5;

  --display: 'Anton', 'Helvetica Neue', Arial, sans-serif;
  --display-light: 'Antonio', 'Anton', 'Helvetica Neue', Arial, sans-serif;
  --head: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --wrap: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.dark { background-color: var(--ink); color: var(--bone); }
.tint { background-color: var(--tint); }
.accent { color: var(--accent); }
.fill-accent { fill: var(--accent); }
.stroke-accent { stroke: var(--accent); }

/* grit textures */
.grit-d { background-image: url(assets/grit-dark.png); }
.grit-l { background-image: url(assets/grit-light.png); }

.skip {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 16px; background: var(--ink); color: var(--bone);
  border-radius: 999px; z-index: 100;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 20px;
}
.dark .eyebrow { color: var(--mute-dark); }
.h2 {
  font-family: var(--head); font-weight: 800;
  font-size: clamp(40px, 4.6vw, 64px); line-height: .96; letter-spacing: -.04em;
}
.h2-lg { font-size: clamp(44px, 5.2vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 60px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--accent); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--bone); color: var(--ink); }
.btn-ghost-bone { border: 2px solid var(--bone); color: var(--bone); }
.btn-ghost-bone:hover { background: var(--bone); color: var(--ink); }
.btn-ghost-ink { border: 2px solid var(--ink); color: var(--ink); height: 56px; padding: 0 24px; font-size: 15px; }
.btn-ghost-ink:hover { background: var(--ink); color: var(--bone); }
.btn-lg { height: 64px; padding: 0 30px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 88px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background-color: var(--bone); border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 26px; letter-spacing: .01em; text-transform: uppercase;
}
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 40px; font-size: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.nav-cta { height: 48px; padding: 0 22px; font-size: 15px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 88px);
  background: var(--ink); color: var(--bone);
  padding: clamp(28px, 3.2vw, 46px) var(--gutter) clamp(24px, 2.5vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.hero-photo {
  position: absolute; inset: -6% -6%; width: 112%; height: 112%;
  object-fit: cover; transform: rotate(-4deg);
  filter: grayscale(1) contrast(1.12); z-index: 0;
}
.hero-scrim { position: absolute; inset: 0; background: rgba(21, 19, 17, .42); z-index: 1; }
.hero-title, .hero-foot { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 12.2vw, 176px); line-height: .88; letter-spacing: -.012em;
  text-transform: uppercase; display: flex; flex-direction: column;
  max-width: var(--wrap); margin-inline: auto; width: 100%;
}
.hero-title .line { display: block; }
.hero-title .light {
  font-family: var(--display-light); font-weight: 300; letter-spacing: -.035em;
  color: var(--accent);
}
.hero-title .light .mut { opacity: .55; }
.hero-title .light b { font-family: var(--display); font-weight: 400; line-height: .6; }
.hero-title .hy { display: none; }

.hero-foot {
  max-width: var(--wrap); margin-inline: auto; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 48px;
}
.hero-sub { max-width: 560px; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* ---------- Marquee ---------- */
.marquee {
  height: 72px; background-color: var(--accent); color: var(--ink);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group {
  display: flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--display); font-size: 26px; letter-spacing: .06em; text-transform: uppercase;
}
.ast {
  width: 18px; height: 18px; flex-shrink: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) center/2.5px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/100% 2.5px no-repeat;
  position: relative;
}
.ast::before, .ast::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 2.5px; height: 100%;
  background: var(--ink); transform: translate(-50%, -50%) rotate(45deg);
}
.ast::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Hand-drawn rules ---------- */
.rule { width: 100%; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-linecap: round; }
.rule-soft { height: 14px; stroke: #6B645B; stroke-width: 2px; }
.rule-top { position: absolute; top: -6px; left: 0; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(48px, 5.5vw, 80px) 0; }
.manifesto-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.manifesto .h2 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; line-height: 1; }
.manifesto-lead { padding-top: 44px; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.01em; }
.pulse { font-family: var(--serif); font-style: italic; font-size: 1.2em; color: var(--accent); }
.manifesto-bottom { margin-top: clamp(40px, 5vw, 72px); padding-top: 40px; position: relative; }
.manifesto-bottom .rule-soft { position: absolute; top: 0; left: 0; }
.manifesto-copy { max-width: 900px; font-size: clamp(16px, 1.5vw, 22px); color: var(--copy-dark); margin-bottom: 24px; }
.senses {
  display: flex; flex-wrap: wrap; gap: 0 40px;
  font-family: var(--display); font-size: clamp(56px, 6.7vw, 96px); line-height: 1; letter-spacing: .005em; text-transform: uppercase;
}

/* ---------- Section head (shared) ---------- */
section { position: relative; }
.services, .approach, .work { padding: clamp(48px, 5.5vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 40px; }
.section-note { max-width: 380px; font-size: 18px; line-height: 1.45; color: var(--mute); }
.section-note.wide { max-width: 480px; font-size: 20px; color: #3E3933; }

.underlined { position: relative; display: inline-block; }
.underlined svg { position: absolute; left: 0; bottom: -.14em; width: 100%; height: .2em; fill: none; stroke: var(--accent); stroke-width: 5px; stroke-linecap: round; }
.circled { position: relative; display: inline-block; padding: 0 .1em; }
.circled svg {
  position: absolute; left: -.22em; top: -.2em; width: calc(100% + .44em); height: calc(100% + .4em);
  fill: none; stroke: var(--accent); stroke-width: 4px; stroke-linecap: round;
}

/* ---------- Services index ---------- */
.index { border-top: 2px solid var(--ink); }
.index a {
  display: flex; align-items: center; gap: 40px; height: 96px; padding: 0 8px;
  border-bottom: 2px solid var(--ink); transition: padding-left .2s ease;
}
.index a:hover { padding-left: 24px; }
.index .num { width: 64px; font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--mute); }
.index .name { flex-grow: 1; font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.03em; }
.index .arrow { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Approach ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile {
  min-height: 320px; padding: 28px; background-color: var(--bone);
  border: 2px solid var(--ink); border-radius: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transform: rotate(var(--rot, 0deg));
}
.tile h3 { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 10px; }
.tile p { font-size: 16px; color: var(--mute); }

/* ---------- Collective ---------- */
.collective { padding: clamp(48px, 5.5vw, 80px) 0; }
.collective-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.collective-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.parts { display: flex; flex-direction: column; gap: 4px; line-height: .98; }
.parts em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .62em; color: var(--mute-dark); margin-right: .16em; }
.collective-right { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 40px; }
.collective-lead { font-size: 20px; color: var(--copy-dark); margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--bone);
  display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  transform: rotate(var(--rot, 0deg));
}
.pills li.dashed { border-style: dashed; }
.nos { border-top: 1px solid var(--line-dark); }
.nos li {
  display: flex; align-items: center; gap: 16px; height: 64px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -.02em;
}
.nos svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 3px; stroke-linecap: round; flex-shrink: 0; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card-art {
  height: 460px; border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transform: rotate(var(--rot, 0deg)); transition: transform .2s ease;
}
.card:hover .card-art { transform: rotate(0deg) scale(1.01); }
.art-ink { background-color: var(--ink); color: var(--bone); }
.art-accent { background-color: var(--accent); color: var(--ink); }
.art-tint { background-color: var(--tint); border: 2px solid var(--ink); }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pulse-line { width: 100%; max-width: 365px; fill: none; stroke: var(--accent); stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.big-af { font-family: var(--display); font-size: clamp(150px, 18vw, 260px); line-height: .8; letter-spacing: -.02em; align-self: flex-end; }
.blob { width: 240px; height: 240px; align-self: center; fill: none; stroke: var(--ink); stroke-width: 3px; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.client { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.kind { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }

/* ---------- CTA ---------- */
.cta { background-color: var(--accent); color: var(--ink); padding: clamp(48px, 5.5vw, 80px) 0; }
.cta-lead { max-width: 1000px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; margin-bottom: clamp(48px, 6vw, 96px); }
.cta-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.cta-title { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 10.4vw, 150px); line-height: .88; letter-spacing: .005em; text-transform: uppercase; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.cta-tag { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Footer ---------- */
.footer { padding: clamp(44px, 4vw, 56px) 0 40px; }
.footer-mark {
  font-family: var(--display); font-size: clamp(76px, 10.4vw, 150px); line-height: .88; letter-spacing: .005em;
  text-transform: uppercase; white-space: nowrap; margin-bottom: clamp(40px, 5vw, 80px);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  border-top: 1px solid var(--line-dark); padding-top: 32px; font-size: 15px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.foot-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); }
.foot-muted { color: var(--copy-dark); }
.foot-right { align-items: flex-end; text-align: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-art { height: 360px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-foot { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta-actions { align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav { height: 64px; }
  .wordmark { font-size: 20px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bone); border-bottom: 2px solid var(--ink);
  }
  body.nav-open .nav-links a { display: block; width: 100%; padding: 18px var(--gutter); border-top: 1px solid var(--ink); font-size: 22px; }

  .hero { min-height: calc(100svh - 64px); }
  .hero-photo { inset: -12% -100% -12% -20%; width: 220%; height: 124%; }
  .hero-scrim { background: rgba(21, 19, 17, .5); }
  .collective-left { gap: 20px; }
  .hero-title { font-size: 22vw; line-height: .88; }
  .hero-title .light { display: block; }
  .hero-title .hy { display: inline; }
  .hero-title .tail { display: block; text-align: right; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .btn { height: 56px; font-size: 15px; }

  .marquee { height: 56px; }
  .marquee-group { font-size: 19px; gap: 22px; padding-right: 22px; }
  .ast { width: 14px; height: 14px; }

  .manifesto-top { grid-template-columns: 1fr; gap: 20px; }
  .manifesto-lead { padding-top: 0; }
  .senses { flex-direction: column; gap: 0; }

  .index a { height: 64px; gap: 16px; padding: 0 4px; }
  .index .num { width: 32px; font-size: 12px; }
  .index .arrow { width: 22px; height: 22px; }

  .tiles { gap: 12px; }
  .tile { min-height: 200px; padding: 18px; border-radius: 18px; }
  .tile svg { width: 48px; height: 48px; }
  .tile h3 { font-size: 20px; }
  .tile p { font-size: 13px; }

  .collective-grid { grid-template-columns: 1fr; gap: 28px; }
  .collective-right { padding-top: 0; }
  .parts { font-size: 38px; }
  .pills li { height: 40px; padding: 0 16px; font-size: 14px; }
  .nos li { height: 56px; font-size: 21px; }

  .work-grid { grid-template-columns: 1fr; }
  .card-art { height: 280px; padding: 20px; border-radius: 18px; }
  .blob { width: 170px; height: 170px; }
  .client { font-size: 20px; }
  .kind { font-size: 12px; }

  .footer-mark { white-space: normal; display: flex; flex-direction: column; line-height: .86; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; font-size: 14px; }
  .foot-right { align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 86px; }
}
