/* BASIC INSTINCT — basicinstinct.studio

   Type follows the deck:
     wordmark  Avenir LT Pro Black        (cover wordmark only)
     display   ITC Avant Garde Pro Bold   (titles, subheads, statements) / Book (bios)
     mono      Space Mono                 (body copy, labels)
   Avenir LT Pro and ITC Avant Garde Pro are commercial fonts. Until licensed web files are added
   (see fonts/README.txt) the stacks below fall back to Mulish and League Spartan, the closest free matches. */

:root {
  --bg: #050507;
  --bg2: #0b0d14;
  --fg: #f2f3f7;
  --muted: #a2a7b8;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #2a4bff;
  --glow: #7aa2ff;
  --pad: clamp(20px, 5vw, 72px);
  --wordmark: "Avenir LT Pro", "Mulish", "Avenir Next", "Avenir", system-ui, sans-serif;
  --display: "ITC Avant Garde Gothic Pro", "League Spartan", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: #000; padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 900px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.solid {
  background: rgba(5, 5, 7, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--wordmark); font-weight: 900; letter-spacing: 0.04em;
  font-size: 15px; text-decoration: none;
}
.nav__links {
  display: flex; gap: 26px; align-items: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}
.nav__links a { text-decoration: none; opacity: 0.8; }
.nav__links a:hover { opacity: 1; }

.btn {
  display: inline-block; background: var(--fg); color: #000 !important; opacity: 1 !important;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 16px 34px; text-decoration: none; border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--glow); transform: translateY(-2px); }
.btn--sm { padding: 8px 16px; font-size: 11px; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.005em;
  margin-bottom: 0.5em;
}
.slash { color: var(--glow); }
.kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--glow);
  margin-bottom: 1.4em;
}
.big {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 48px); line-height: 1.1; margin: 1em 0;
}
.big--sm { font-size: clamp(20px, 2.5vw, 32px); line-height: 1.2; max-width: 36ch; }
.big--accent { color: var(--glow); }
.lede {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2vw, 26px); line-height: 1.35; margin: 1em 0; max-width: 40ch;
}
.lede--strong { color: #fff; }
.body { color: #d6d9e4; margin: 1.2em 0; max-width: 62ch; }
.note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 1.6em; max-width: 70ch; }
.note a { color: var(--glow); }
.poem { font-family: var(--mono); font-size: clamp(18px, 2.2vw, 26px); line-height: 1.8; margin: 1.2em 0; }
cite {
  font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--glow);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 60%;
  transform: scale(1.08); animation: drift 24s ease-in-out infinite alternate; filter: saturate(1.1);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(5, 5, 7, 0.35) 45%, rgba(5, 5, 7, 0.25));
}
.hero__inner { position: relative; z-index: 2; padding: 0 var(--pad) clamp(60px, 10vh, 110px); width: 100%; }
.hero__title {
  font-family: var(--wordmark); font-weight: 900;
  font-size: clamp(56px, 18vw, 300px); line-height: 0.88; letter-spacing: -0.02em; margin-left: -0.03em;
}
.hero__sub { margin-top: 28px; font-size: clamp(12px, 1.4vw, 17px); text-transform: uppercase; letter-spacing: 0.14em; }
.hero__scroll {
  position: absolute; z-index: 2; right: var(--pad); bottom: 28px; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; opacity: 0.7;
}
@keyframes drift { to { transform: scale(1.18) translateY(-2%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.section > .wrap { position: relative; z-index: 2; }
.section > [class$="__bg"] { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.28; z-index: 0; }
.section > [class$="__bg"]::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--bg), transparent 25%, transparent 75%, var(--bg));
}
.art__bg { opacity: 0.92 !important; background-position: 72% center !important; }
.art__bg::after { background: linear-gradient(var(--bg), transparent 14%, transparent 86%, var(--bg)) !important; }
.art .body { font-size: clamp(15px, 1.4vw, 19px); color: #fff; max-width: 58ch; }

/* premise: mono lead-in, big statement, light body, accent close; all centered */
.premise { text-align: center; padding: clamp(100px, 14vw, 190px) 0 clamp(120px, 16vw, 220px); }
.premise .wrap { max-width: 1180px; }
.premise__lead {
  font-family: var(--mono); font-weight: 400; text-transform: uppercase;
  font-size: clamp(11px, 1.55vw, 21px); letter-spacing: 0.22em; line-height: 1.6;
}
.premise__big {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.005em;
  max-width: 21em; margin: clamp(48px, 7vw, 96px) auto 0; text-wrap: balance;
}
.premise__body {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(17px, 2vw, 26px); line-height: 1.7;
  margin: clamp(40px, 6vw, 80px) auto 0;
}
.premise__accent {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--glow);
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1.1;
  margin: clamp(48px, 7vw, 96px) auto 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.grid-2--rev { grid-template-columns: 0.8fr 1.2fr; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.photo--tall img { aspect-ratio: 3 / 4; }
/* transparent cut-out (no frame): shows at its natural proportions straight on the page */
.photo--cutout img { height: auto; object-fit: contain; border-radius: 0; }

/* stats */
.stats { margin: 2.5em 0 1em; }
.stats > div {
  display: grid; grid-template-columns: minmax(190px, 0.5fr) 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 54px); line-height: 1; white-space: nowrap; }
.stats dd { font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.5; }
.stats small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0.04em; }

/* work */
.section > .work__bg {
  left: auto; right: -6%; width: 62%;
  background-size: auto 82%; background-position: center 40%; background-repeat: no-repeat;
  opacity: 0.55;
}
.work__bg::after { display: none; }
.work__bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 5, 7, 0.62) 48%, transparent 100%); }
.work__sub {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.3vw, 32px); line-height: 1.45; margin: 0.4em 0 0;
}
.journey { margin: 3.2em 0 0; }
.journey li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.journey span { color: var(--glow); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; padding-top: 4px; }
.journey p { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.6; color: #e1e4ee; }
.work__aim { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.6; color: #e1e4ee; max-width: 1100px; margin: 3.5em 0 0; }
.work__format { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 56ch; margin: 2em 0 0; }

/* refs */
.refs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5em; }
.refs__grid figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.refs__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.refs__grid figure:hover img { transform: scale(1.05); }
.refs__grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
}

/* evidence + rows */
.evidence { margin: 2em 0; }
.evidence li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.evidence li:last-child { border-bottom: 1px solid var(--line); }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--glow); padding-top: 4px; }
.evidence p { color: #e1e4ee; }

.rows { margin: 2em 0; }
.rows > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--glow); padding-top: 4px; }
.rows dd { color: #e1e4ee; max-width: 70ch; }
.rows--research dd cite { margin-left: 6px; }

/* approach */
.approach__bg { background-size: auto 100% !important; background-position: right center !important; background-repeat: no-repeat; opacity: 0.32 !important; }
.approach__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 30%, rgba(5, 5, 7, 0.3) 70%, transparent 100%); }
.approach__lede, .learn__lede, .prototype__lede { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.6; color: #e1e4ee; max-width: 37em; margin: 1.6em 0; }
.approach .rows, .learn .rows, .research .rows { margin: 3em 0 2.4em; }
.approach .rows > div, .learn .rows > div, .research .rows > div { padding: 26px 0 28px; }
.approach .rows dt, .learn .rows dt, .research .rows dt { padding-top: 6px; }
.approach .rows dd, .learn .rows dd, .research .rows dd { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.6; max-width: none; }
.learn__note { font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; color: var(--muted); max-width: 52em; margin: 2em 0 0; }
.approach__close { max-width: 22em; margin: 1.1em 0 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3.5em 0 2em; border-top: 1px solid var(--line); }
.steps li { padding: 26px 22px 26px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; margin-right: 0; }
.num { display: block; color: var(--glow); text-transform: uppercase; font-size: 13px; font-weight: 400; letter-spacing: 0.1em; margin-bottom: 14px; }
.steps p { font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: #d6d9e4; }
.prototype__lede { max-width: 48em; }

/* team */
.team { background: linear-gradient(180deg, var(--bg), #07103a 40%, #0a1f9a 100%); }
.team__bg { opacity: 0.18 !important; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 3em; }
.card {
  padding: 26px; background: rgba(5, 8, 30, 0.55); border: 1px solid rgba(160, 185, 255, 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 3px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--glow); }
.card h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1.15; margin-bottom: 12px; }
.card p { font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.55; color: #d3d9f2; }

/* research */
.research__bg { opacity: 0.35 !important; }

/* support */
.support__bg { opacity: 0.3 !important; background-position: left center !important; }
.ticks { margin: 1.2em 0; max-width: 460px; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 2px; background: var(--glow); }
.cta { margin-top: 2.5em; }

/* footer */
.footer { padding: 60px var(--pad); text-align: center; border-top: 1px solid var(--line); }
.footer__logo { font-family: var(--wordmark); font-weight: 900; font-size: clamp(28px, 5vw, 56px); letter-spacing: -0.02em; }
.footer p { margin-top: 12px; }
.footer .mono { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.footer .mono a { text-decoration: none; border-bottom: 1px solid var(--line); }
.footer .mono a:hover { color: var(--fg); }
.footer .small { font-size: 10px; text-transform: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .refs__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  body { font-size: 15px; }
  .nav__links a:not(.btn) { display: none; }
  .grid-2, .grid-2--rev { grid-template-columns: 1fr; }
  .photo--tall img { aspect-ratio: 4 / 3; }
  .refs__grid figure { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(n + 3) { border-top: 0; }
  .journey li, .rows > div, .evidence li, .stats > div { grid-template-columns: 1fr; gap: 6px; }
  .section > .work__bg { left: 0; right: 0; width: auto; background-size: auto 60%; background-position: 70% 25%; opacity: 0.35; }
  .art__bg { opacity: 0.55 !important; background-position: 80% 70% !important; }
  .approach__bg { background-position: 70% center !important; opacity: 0.3 !important; }
  .approach__bg::before { background: linear-gradient(90deg, rgba(5, 5, 7, 0.75), rgba(5, 5, 7, 0.35)); }
}

@media (max-width: 520px) {
  .refs__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

/* ---------- fundraising sections: development fund, budget + timings, public work, future ---------- */
.accent { color: var(--glow); white-space: nowrap; }
.h2--sm { font-size: clamp(28px, 3.8vw, 52px); }
.h3 {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--glow); margin: 2em 0 1em; max-width: none;
}
.h3 small { display: block; color: var(--muted); font-weight: 400; margin-top: 6px; letter-spacing: 0.04em; text-transform: none; font-size: 13px; }

/* development fund */
.fund { background: radial-gradient(circle at 80% 0, #101a55 0, transparent 55%), var(--bg2); }
/* softened so the busy photo reads as a wash of colour behind the text, not as detail competing with it */
.section > .fund__bg { inset: -14px; opacity: 0.3; filter: blur(3px); }
.fund__lede { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.6; color: #e1e4ee; max-width: 44em; margin: 1.4em 0 0; }
.fund__lede--close { margin-top: 0; color: #fff; }
.fund__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: 1.5em; align-items: start; }
.ticks--wide { max-width: none; }
.fund .ticks li, .beyond .ticks li { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #e1e4ee; }
.fund .ticks li::before, .beyond .ticks li::before { top: 24px; }

/* working budget + timings */
.timings { background: radial-gradient(circle at 20% 0, #101a55 0, transparent 55%), var(--bg2); }
.timings__cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); margin-top: 1em; }
.total { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 8vw, 112px); line-height: 1; color: var(--glow); margin: 0 0 0.25em; }
.schedule { margin-top: 3em; }
.weeks li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: #e1e4ee; }
.weeks li:last-child { border-bottom: 1px solid var(--line); }
.weeks span { color: var(--glow); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.budget { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.budget th { text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px; font-weight: 400; }
.budget th:last-child, .budget td:last-child { text-align: right; }
.budget td { padding: 11px 0; border-top: 1px solid var(--line); position: relative; vertical-align: top; }
.budget tbody td:last-child { white-space: nowrap; padding-left: 16px; }
.budget tfoot td { border-top: 2px solid var(--fg); font-weight: 700; font-size: 18px; padding-top: 16px; }
.budget .bar { display: block; height: 2px; background: var(--glow); width: 0; margin-top: 6px; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* the public work & beyond, future instinct */
.beyond .photo img { aspect-ratio: 16 / 9; }
.beyond .h2--sm { font-size: clamp(26px, 3.1vw, 44px); }
.section > .future__bg { opacity: 0.5; background-position: 50% 40%; }
.future { padding-top: clamp(60px, 8vw, 110px); }
/* two text columns with a clear gutter in the middle, where the triangle in the background image sits */
.future__grid { display: grid; grid-template-columns: 1fr clamp(160px, 20vw, 320px) 1fr; row-gap: 36px; margin-top: 2.5em; }
.future__grid > div:nth-child(odd) { grid-column: 1; }
.future__grid > div:nth-child(even) { grid-column: 3; }
.future__grid > div { border-top: 1px solid var(--line); padding-top: 18px; }
.future__grid h3 { font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.12em; color: var(--glow); margin-bottom: 10px; }
.future__grid p { font-family: var(--display); font-weight: 400; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; color: #d6d9e4; }

@media (max-width: 900px) {
  .fund__cols, .timings__cols { grid-template-columns: 1fr; }
  .weeks li { grid-template-columns: 1fr; gap: 6px; }
  /* on narrow screens the image becomes a band above the text so nothing overlaps it */
  .section > .future__bg { bottom: auto; height: 300px; opacity: 0.6; background-position: 50% 35%; }
  .future__bg::after { background: linear-gradient(var(--bg), transparent 18%, transparent 55%, var(--bg)); }
  .future .wrap { padding-top: 250px; }
  .future__grid { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .future__grid > div:nth-child(odd), .future__grid > div:nth-child(even) { grid-column: auto; }
}
@media (max-width: 560px) {
  .future__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .budget .bar { transition: none; }
}
