/* =========================================================
   BLACC PEPPER CREATIVE — core styles
   Palette from logo: black, white, lime dot (#D7DF23)
   Type: Grift variable (self-hosted)
   Straight lines, square corners. Titles: uppercase,
   Medium + Bold/green phrases. Lime dot as signature.
   ========================================================= */

/* ---------- Grift (variable font, weights 100–900) ----------
   Self-hosted from /fonts. Check your Grift licence covers web use. */
@font-face {
  font-family: "Grift";
  src: url("../fonts/Grift-VF.woff") format("woff"),
       url("../fonts/Grift Variable-VF.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #111213;
  --bg-2: #18191A;
  --bg-3: #1F2022;
  --light: #F3F3EF;
  --ink: #111213;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(17,18,19,.14);
  --white: #FFFFFF;
  --text: rgba(255,255,255,.74);
  --text-dark: #45474A;
  --muted: rgba(255,255,255,.5);
  --lime: #D7DF23;

  --font: "Grift", "Futura", "Avenir Next", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 400;
  font-size: clamp(16px, 1.05vw, 17.5px); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--white); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lime { color: var(--lime); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Signature: lime dot + title weights ---------- */
.pep { color: var(--lime); font-weight: inherit; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }
.dot.dark { background: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.light .tag { color: var(--ink); }
.tag.dark { color: var(--ink); }

.title { font-size: clamp(2rem, 4.2vw, 3.9rem); font-weight: 500; text-transform: uppercase; line-height: 1.02; letter-spacing: -.02em; }
.title.dark, .light .title { color: var(--ink); }
/* Title weights: .m = Grift Medium, .b = Grift Bold, .g = green Grift Bold */
.title .m, .hero-title .m { font-weight: 500; }
.title .b, .hero-title .b { font-weight: 700; }
.title .g, .hero-title .g { font-weight: 700; color: var(--lime); }
.sub { color: var(--text); max-width: 520px; font-size: 1.06rem; font-weight: 300; }
.light .sub { color: var(--text-dark); }
.head { margin-bottom: clamp(44px, 5vw, 72px); display: grid; gap: 22px; justify-items: start; }
.head .tag { margin-bottom: 0; }
.sub.wide { max-width: none; }
.head.split { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }

/* ---------- Buttons (square, uppercase) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.05em 1.7em; border: 1.5px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: .8em 1.25em; font-size: .78rem; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--white); }
.btn-line { border-color: var(--white); color: var(--white); background: transparent; }
.btn-line:hover { background: var(--white); color: var(--ink); }
.btn.full { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; border-bottom: 1px solid var(--line); background: rgba(17,18,19,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: padding .3s, background .3s; }
.site-header.scrolled { padding: 10px 0; background: rgba(17,18,19,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(120px, 11vw, 150px); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a:not(.btn) { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--white); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(130px, 14vw, 180px) 0 0;
  background: radial-gradient(60% 55% at 88% 18%, rgba(215,223,35,.1), transparent 70%), var(--bg);
}
.hero-title { font-size: clamp(2.4rem, 6vw, 5.8rem); text-transform: uppercase; font-weight: 500; line-height: .98; letter-spacing: -.03em; margin-bottom: clamp(20px, 2.4vw, 32px); }
.hero-title .ln { display: block; }
.hero-title .ln.sm { font-size: .7em; line-height: 1.02; }
.hero-foot { display: grid; gap: 18px; justify-items: start; }
.hero-lead { font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--white); }
.hero-body { font-size: clamp(1.02rem, 1.2vw, 1.15rem); font-weight: 300; color: rgba(255,255,255,.78); }
.hero-foot .hero-cta { margin-top: 12px; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); padding-bottom: 6px; border-bottom: 1.5px solid var(--lime); transition: gap .3s var(--ease), color .25s; }
.hero-cta:hover { gap: 18px; color: var(--lime); }
.disciplines { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(48px, 6vw, 80px); padding: 26px 0; border-top: 1px solid var(--line); }
.disciplines li { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.light { background: var(--light); color: var(--text-dark); }
.light h2, .light h3 { color: var(--ink); }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why-img { aspect-ratio: 16 / 10; overflow: hidden; background: #dcdcd6; }
.why-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.why-body { display: grid; justify-items: start; }
.why .title { font-size: clamp(1.5rem, 3.1vw, 2.9rem); margin-bottom: clamp(24px, 2.6vw, 36px); }
.nowrap { white-space: nowrap; }
.why-copy { display: grid; gap: 18px; font-weight: 300; font-size: 1.04rem; color: var(--text-dark); max-width: 560px; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #E4E4DF 0 12px, #DCDCD6 12px 24px); }
.ph span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(17,18,19,.5); background: var(--light); padding: 6px 10px; }

/* What we do — pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pillar { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); background: var(--bg); transition: background .4s var(--ease); }
.pillar:first-child { border-left: 0; }
.pillar:hover { background: var(--lime); }
.pillar:hover h3, .pillar:hover p, .pillar:hover strong, .pillar:hover span, .pillar:hover .pep { color: var(--ink); }
.pillar:hover li { border-color: rgba(17,18,19,.2); }
.p-num { font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.pillar h3 { font-size: clamp(2.4rem, 4vw, 3.8rem); text-transform: uppercase; letter-spacing: -.035em; margin-top: clamp(24px, 4vw, 64px); }
.pillar > p { font-weight: 300; }
.pillar ul { margin-top: auto; padding-top: 10px; }
.pillar li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; transition: border-color .4s; }
.pillar strong { color: var(--white); font-weight: 600; font-size: 1.02rem; }
.pillar li span { color: var(--muted); font-size: .9rem; }

/* How we work — timeline (light) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1.5px; background: var(--ink); }
.timeline li { position: relative; padding-top: 44px; }
.node { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--light); border: 2px solid var(--ink); }
.node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lime); }
.t-step { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark); font-weight: 500; }
.timeline h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); text-transform: uppercase; margin: 10px 0 12px; }
.timeline p { font-size: .98rem; font-weight: 300; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
.founder-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #1d1f21; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.founder-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: rgba(17,18,19,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.founder-copy { display: grid; justify-items: start; gap: 18px; }
.founder-copy .tag { margin-bottom: 0; }
.founder-copy .title { margin-bottom: 10px; font-size: clamp(2rem, 3.9vw, 3.6rem); }
.founder-copy > p:not(.tag) { max-width: 560px; font-weight: 300; font-size: 1.04rem; }

/* Start a project */
.contact { background: var(--lime); color: rgba(17,18,19,.8); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .title { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-bottom: 24px; }
.contact-intro > p:not(.tag) { font-size: 1.08rem; max-width: 460px; }
.direct { margin-top: 36px; border-top: 1px solid rgba(17,18,19,.2); }
.direct li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(17,18,19,.2); flex-wrap: wrap; }
.direct span { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.direct a { color: var(--ink); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--ink); padding: clamp(24px, 3.4vw, 44px); }
.brief h3 { grid-column: 1 / -1; font-size: clamp(1.3rem, 1.9vw, 1.7rem); text-transform: uppercase; margin-bottom: 6px; }
.field { display: grid; gap: 8px; }
.field.full, .brief .full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: var(--bg-2); border: 1px solid var(--line); padding: 14px 16px;
  transition: border-color .25s;
}
.field select { appearance: none; background-image: radial-gradient(circle, var(--lime) 4px, transparent 4.5px); background-position: calc(100% - 20px) 50%; background-size: 10px 10px; background-repeat: no-repeat; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field .invalid { border-color: #ff6b6b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.consent a, .footer-base a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover, .footer-base a:hover { color: var(--lime); }
.form-note.ok { color: var(--lime); }
.form-note.err { color: #ff8a8a; }
.brief button[disabled] { opacity: .6; cursor: wait; }
.form-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* Footer */
.site-footer { background: #0B0B0C; padding: clamp(64px, 8vw, 110px) 0 28px; }
.footer-big { font-size: clamp(2.4rem, 6.4vw, 6rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.04em; line-height: 1; color: var(--white); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: clamp(40px, 5vw, 64px); }
.f-logo { width: 170px; flex: none; }
.f-contact { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); }
.f-contact h4 { font-size: 1em; letter-spacing: 0; font-weight: 700; color: var(--lime); }
.f-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; }
.f-line > li { display: flex; align-items: center; }
.f-line > li + li::before { content: ""; width: 1px; height: 16px; background: var(--line); margin: 0 18px; }
.f-line a { transition: color .25s; }
.f-line a:hover { color: var(--lime); }
.f-line span { color: var(--muted); }
.socials { gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--white); transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.to-top-link { color: var(--white); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; }
.to-top-link:hover { color: var(--lime); }

/* Floating back-to-top button */
.to-top { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 40; width: 50px; height: 50px; display: grid; place-items: center; background: var(--ink); color: var(--lime); border: 1px solid rgba(215,223,35,.6); font-size: 1.3rem; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lime); color: var(--ink); }

/* Privacy policy page */
.policy-hero { padding: clamp(140px, 14vw, 190px) 0 clamp(48px, 6vw, 80px); background: radial-gradient(60% 55% at 88% 18%, rgba(215,223,35,.1), transparent 70%), var(--bg); }
.policy-hero .title { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.policy-meta { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.policy-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.policy-toc { position: sticky; top: 110px; }
.policy-toc ol { display: grid; gap: 8px; counter-reset: toc; }
.policy-toc a { color: var(--text-dark); font-size: .95rem; transition: color .2s; }
.policy-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy-body { max-width: 760px; color: var(--text-dark); }
.policy-body .lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink); font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.policy-body h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); text-transform: uppercase; margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--line-dark); scroll-margin-top: 100px; }
.policy-body p { margin-bottom: 14px; }
.policy-body ul { margin: 0 0 16px; display: grid; gap: 8px; }
.policy-body li { position: relative; padding-left: 22px; }
.policy-body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(17,18,19,.25); }
.policy-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy-body strong { color: var(--ink); font-weight: 600; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .timeline::before { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 7px; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; cursor: pointer; z-index: 60; padding: 0 12px; }
  .menu-toggle span { display: block; height: 2px; background: var(--white); transition: transform .3s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; height: 100dvh; background: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 0 var(--gutter); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav a:not(.btn) { font-size: 2.2rem; font-weight: 700; letter-spacing: -.01em; }
  .nav .btn { margin-top: 12px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .head.split { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .f-contact { padding-left: 0; border-left: 0; }
  .founder-grid, .contact-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 480px; width: 100%; }
}

@media (max-width: 600px) {
  .policy-toc { display: none; }
  .br-desk { display: none; }
  .disciplines { gap: 8px 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(3) { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline li { padding: 0 0 32px 44px; }
  .timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1.5px; background: var(--ink); }
  .timeline li:last-child::before { display: none; }
  .brief { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .f-contact { padding-left: 0; border-left: 0; flex-direction: column; align-items: flex-start; }
  .f-line { flex-direction: column; align-items: flex-start; gap: 10px; }
  .f-line > li + li::before { display: none; }
  .socials { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
