/* ----------------------------------------------------------------------------
   Not A Camp — studio site
   Self-hosted company fonts: Inter, JetBrains Mono, Clash Display.
---------------------------------------------------------------------------- */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/DMSans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/DMMono-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/DMMono-500.woff2") format("woff2");
}

:root {
  --bg: #08080a;
  --fg: #f5f5f6;
  --muted: #a1a1aa;
  --faint: #6b6b76;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.018);
  --display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--fg); }

/* --- ambient background: vignette + hairline grid ----------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(100% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* --- shared container --------------------------------------------------- */
.nav, .section, .footer {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}
.nav__mark {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--fg);
  border-radius: 4px;
  transform: rotate(45deg);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 30px);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.nav__links a { color: var(--muted); transition: color 0.18s ease; }
.nav__links a:hover { color: var(--fg); }
.ext { opacity: 0.6; margin-left: 2px; }

/* --- type helpers ------------------------------------------------------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
}

/* --- sections ----------------------------------------------------------- */
.section { padding-block: clamp(64px, 11vw, 132px); }
.section__head { margin-bottom: clamp(32px, 5vw, 52px); }
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

/* --- hero --------------------------------------------------------------- */
.hero {
  padding-top: clamp(56px, 12vw, 120px);
  padding-bottom: clamp(48px, 9vw, 96px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
.hero__lede {
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.62;
  color: var(--muted);
  margin: 0 0 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero forced line break only on wider screens; let it flow on mobile */
.hero__title br { display: none; }
@media (min-width: 720px) { .hero__title br { display: inline; } }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.btn--primary:hover { background: #fff; }
.btn--lg { padding: 15px 26px; font-size: 1rem; font-family: var(--mono); }

/* --- work grid ---------------------------------------------------------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.035);
}
.card__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 46px;
  margin-bottom: 22px;
  color: var(--fg);
}
.card__logo svg { height: 34px; width: auto; }
.card__logo--tall svg { height: 42px; }
.card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card__desc { margin: 0 0 18px; color: var(--muted); font-size: 0.96rem; }
.card__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- approach ----------------------------------------------------------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: none;
}
.principle { border-top: 1px solid var(--line); padding-top: 22px; }
.principle__no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.principle__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.principle__desc { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* --- contact ------------------------------------------------------------ */
.contact { text-align: center; }
.contact__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 30px;
}
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::before { display: none; }

/* --- footer ------------------------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.footer__brand { color: var(--fg); font-family: var(--mono); font-weight: 500; letter-spacing: -0.03em; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); transition: color 0.18s ease; }
.footer__links a:hover { color: var(--fg); }

/* --- reveal animation --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- responsive --------------------------------------------------------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
