/* ============================================================
   Beyond Capital — Landing page
   ============================================================ */

@import url("./colors_and_type.css");

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

html { scroll-behavior: smooth; }

body {
  background: var(--bc-white);
  color: var(--bc-black);
  font-family: var(--bc-font-sans);
  font-size: var(--bc-text-base);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--bc-black); color: var(--bc-white); }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
}

@media (min-width: 1024px) {
  .wrap { padding: 0 96px; }
}
@media (min-width: 1280px) {
  .wrap { padding: 0 140px; }
}
@media (min-width: 1600px) {
  .wrap { padding: 0 180px; max-width: 1600px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Reveal animation (scroll into view) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--bc-ease-out),
    transform 700ms var(--bc-ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

/* Hero entries get a longer, softer ease-in for a more cinematic feel */
.hero .reveal {
  transform: translateY(24px);
  transition:
    opacity 1200ms cubic-bezier(0.16, 0.84, 0.3, 1),
    transform 1200ms cubic-bezier(0.16, 0.84, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO + HEADER
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  color: var(--bc-white);
  overflow: hidden;
  background: var(--bc-graphite);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* ---- Hero backdrop — image with subtle ken-burns zoom ------- */

.hero__scape {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bc-graphite);
}
.hero__scape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.png") center center / cover no-repeat;
  transform-origin: center center;
  animation:
    heroFadeIn 1400ms ease-out 0s 1 backwards,
    heroZoom 16s ease-in-out infinite alternate,
    heroBrightness 10s ease-in-out infinite alternate;
  will-change: transform, filter, opacity;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.25); }
}
@keyframes heroBrightness {
  0%   { filter: brightness(2.5); }
  100% { filter: brightness(0.8); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.18) 80%, rgba(0,0,0,0.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0) 25%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scape::before { animation: none !important; }
}

/* ---------- Header / nav ---------- */

.nav {
  position: relative;
  z-index: 5;
  padding: 28px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo svg {
  width: 132px;
  height: auto;
  fill: currentColor;
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--bc-white);
  opacity: 1;
  transition: opacity var(--bc-dur) var(--bc-ease-out);
}
.nav__links a:hover { opacity: 0.7; }

/* Hamburger button — desktop hidden */
.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  z-index: 12;
  margin-right: -8px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--bc-white);
  margin: 5px 0;
  border-radius: 1px;
  transition:
    transform var(--bc-dur) var(--bc-ease-out),
    opacity var(--bc-dur) var(--bc-ease-out),
    background var(--bc-dur) var(--bc-ease-out);
  transform-origin: center;
}

@media (max-width: 760px) {
  /* Show the burger */
  .nav__burger { display: inline-block; }

  /* Drawer: full-width overlay below the top bar, hidden by default */
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 80px 28px 40px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(24px) saturate(1.05);
    -webkit-backdrop-filter: blur(24px) saturate(1.05);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity var(--bc-dur) var(--bc-ease-out),
      transform var(--bc-dur) var(--bc-ease-out);
  }
  .nav__links a {
    width: 100%;
    padding: 18px 0;
    font-size: 24px;
    font-family: var(--bc-font-display-ink);
    letter-spacing: -0.01em;
    color: var(--bc-white);
    opacity: 1;
    border-bottom: 0.5px solid rgba(255,255,255,0.12);
  }
  .nav__links a:first-child { border-top: 0.5px solid rgba(255,255,255,0.12); }

  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Burger becomes an X when open */
  .nav.is-open .nav__burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav.is-open .nav__burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav.is-open .nav__burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ---------- Hero content ---------- */

.hero__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 100px 0 140px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
  width: 100%;
}

/* Body statement — Denim Ink display sans, the brand voice */
.hero__statement {
  font-family: var(--bc-font-display-ink);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--bc-white);
  margin: 0;
  max-width: 1100px;
  text-wrap: pretty;
}

/* Edge line — Denim sans, sits under the paragraph */
.hero__edge {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 1100px;
  text-wrap: pretty;
}
.hero__edge em {
  /* nested em (e.g. "people.") gets the same serif italic; treat as a tonal highlight */
  font-style: italic;
  color: var(--bc-white);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
}


/* ============================================================
   SECTION BASICS
   ============================================================ */

section { position: relative; }

.section {
  padding: 140px 0;
}
@media (max-width: 720px) {
  .section { padding: 88px 0; }
}

.section--dark {
  background: var(--bc-graphite);
  color: var(--bc-white);
}
.section--paper {
  background: var(--bc-paper);
  color: var(--bc-black);
}

.eyebrow {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--bc-black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.section--dark .eyebrow { color: var(--bc-white); }

.section__title {
  font-family: var(--bc-font-display-ink);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 28px;
  text-wrap: balance;
}
.section__title em {
  font-family: var(--bc-font-display-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ============================================================
   ANGEL NETWORK
   ============================================================ */

.angel {
  background: var(--bc-paper);
  color: var(--bc-black);
}

.angel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
}
.angel__title em { color: var(--bc-black); }

.angel__intro { max-width: 880px; }

.angel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.angel__lede {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--bc-black);
  max-width: 720px;
  margin-top: 24px;
}

.angel__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bc-black);
}

.angel__copy p strong {
  color: var(--bc-black);
  font-weight: 500;
}

.angel__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}
.angel__price .v {
  font-family: var(--bc-font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--bc-black);
}
.angel__price .v small {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-size: 18px;
  color: var(--bc-black);
  letter-spacing: 0;
  margin-left: 4px;
}
.angel__price .meta {
  font-size: 16px;
  color: var(--bc-black);
  letter-spacing: 0;
  line-height: 1.45;
}

.angel__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 0 48px;
  border-left: none;
  border-top: none;
}
.angel__card-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.angel__card .btn { min-width: 0; flex: 1 1 auto; }

.hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .hero__ctas { flex-direction: column; align-items: stretch; align-self: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .angel__card-ctas { flex-direction: column; align-items: stretch; }
  .angel__card .btn { width: 100%; }
}
.angel__card-label {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bc-black);
  opacity: 0.65;
  margin-bottom: 24px;
}

.angel__ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-width: 180px;
  height: 48px;
  border-radius: var(--bc-radius-pill);
  font-family: var(--bc-font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--bc-dur) var(--bc-ease-out),
    color var(--bc-dur) var(--bc-ease-out),
    border-color var(--bc-dur) var(--bc-ease-out),
    transform var(--bc-dur-fast) var(--bc-ease-out);
}
.btn:active { transform: scale(0.99); }

.btn--primary-glass {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bc-black);
  border: 0.5px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary-glass:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
  }
}

.btn--secondary-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--bc-white);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
@media (hover: hover) and (pointer: fine) {
  .btn--secondary-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.38);
  }
}

.btn--primary {
  background: var(--bc-black);
  color: var(--bc-white);
  border: 0.5px solid var(--bc-black);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--bc-ink);
    border-color: var(--bc-ink);
  }
}

.btn--secondary {
  background: transparent;
  color: var(--bc-black);
  border: 0.5px solid var(--bc-black);
}
@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover {
    background: var(--bc-black);
    color: var(--bc-white);
  }
}

@media (max-width: 900px) {
  .angel__grid { gap: 48px; }
  .angel__body { grid-template-columns: 1fr; gap: 48px; }
  .angel__card {
    padding: 20px 0 0;
    border-left: none;
    border-top: 0.5px solid var(--bc-silver);
  }
}


/* ============================================================
   PORTFOLIO
   ============================================================ */

.portfolio__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 80px;
  max-width: 880px;
}
.portfolio__meta {
  font-size: 17px;
  color: var(--bc-black);
  max-width: 560px;
  line-height: 1.4;
}

.portfolio__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 0.5px solid var(--bc-silver);
  border-radius: var(--bc-radius-pill);
  background: transparent;
  margin-bottom: 56px;
}
.portfolio__tab {
  font-family: var(--bc-font-sans);
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--bc-black);
  background-color: transparent;
  border: none;
  padding: 0 24px;
  height: 40px;
  border-radius: var(--bc-radius-pill);
  cursor: pointer;
  transition:
    color var(--bc-dur) var(--bc-ease-out),
    opacity var(--bc-dur) var(--bc-ease-out);
  opacity: 0.5;
}
@media (hover: hover) and (pointer: fine) {
  .portfolio__tab:hover { opacity: 0.85; }
}
.portfolio__tab.is-active {
  background-color: var(--bc-black);
  color: var(--bc-white);
  opacity: 1;
}

@media (max-width: 760px) {
  .portfolio__tabs { display: flex; width: 100%; }
  .portfolio__tab { flex: 1 1 0; padding: 0 16px; }
}

/* Panels — fade between when toggled */
.portfolio__panel { animation: panelFadeIn 320ms var(--bc-ease-out); }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.logo-grid__cell {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 0.5px solid var(--bc-silver);
  border-bottom: 0.5px solid var(--bc-silver);
  transition: background var(--bc-dur) var(--bc-ease-out);
}
.logo-grid__cell:hover {
  background: var(--bc-foam);
}
.logo-grid__cell img {
  max-height: 70px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: opacity var(--bc-dur) var(--bc-ease-out), filter var(--bc-dur) var(--bc-ease-out);
}
.logo-grid__cell:hover img {
  opacity: 1;
  filter: grayscale(0%);
}
/* drop the right border on last column */
.logo-grid__cell:nth-child(4n) { border-right: none; }
/* empty trailing cell: no stroke */
.logo-grid__cell:empty { border-bottom: none; border-right: none; }

@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid__cell:nth-child(4n) { border-right: 0.5px solid var(--bc-silver); }
  .logo-grid__cell:nth-child(3n) { border-right: none; }
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid__cell:nth-child(3n) { border-right: 0.5px solid var(--bc-silver); }
  .logo-grid__cell:nth-child(2n) { border-right: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bc-graphite);
  color: var(--bc-white);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 40px;
}
#team {
  scroll-margin-top: 120px;
}
.footer__scape {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(35% 40% at 92% 8%, rgba(242, 236, 228, 0.18) 0%, transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(135, 133, 122, 0.18) 0%, transparent 60%);
  filter: blur(40px);
}
.footer .wrap { position: relative; z-index: 1; }

.footer__statement {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.footer__mark {
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
  opacity: 0.9;
}

/* Team list — 2-col grid on desktop */
.footer__team {
  list-style: none;
  margin: 24px 0 80px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}
.footer__team li {
  border-top: 0.5px solid rgba(255,255,255,0.12);
}
.footer__team a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
  transition: transform var(--bc-dur) var(--bc-ease-out), color var(--bc-dur) var(--bc-ease-out);
}
.footer__team a:hover { transform: translateX(4px); }
.footer__team .name {
  font-family: var(--bc-font-sans);
  font-size: 17px;
  line-height: 1.2;
  color: var(--bc-white);
  letter-spacing: 0;
}
.footer__team .role {
  font-family: var(--bc-font-sans);
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0;
}
.footer__team a:hover .role { color: rgba(255,255,255,0.9); }

/* Bottom row — share the same 2-col grid as the team list so the
   contact (info@) aligns to the second name column above it. */
.footer__bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  align-items: center;
  padding-top: 0;
}
.footer__contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer__label {
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.footer__email {
  font-family: var(--bc-font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--bc-white);
  display: inline-block;
  transition: opacity var(--bc-dur) var(--bc-ease-out);
  border-bottom: 0.5px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.footer__email:hover { opacity: 0.7; }

/* Social row — inline on one line */
.footer__social {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--bc-white);
  opacity: 0.9;
  transition: opacity var(--bc-dur) var(--bc-ease-out), transform var(--bc-dur) var(--bc-ease-out);
}
.footer__social a:hover { opacity: 1; transform: translateX(2px); }
.footer__social svg { width: 16px; height: 16px; opacity: 0.8; }

@media (max-width: 900px) {
  .footer__team { grid-template-columns: 1fr; column-gap: 0; }
  .footer__bottom { grid-template-columns: 1fr; gap: 48px; align-items: flex-start; }
  .footer__contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}