/* ============================================================
   The 23 Fund — site styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #151c30;
  --navy-deep:   #0d111c;
  /* accent — Stanford Cardinal Red */
  --indigo:      #8c1515;
  --indigo-soft: #cf5963;
  --ink:         #151c30;
  --muted:       #5b6275;
  --line:        #e5e6ea;
  --bg:          #ffffff;
  --bg-alt:      #f7f7f9;
  --white:       #ffffff;

  --maxw: 1180px;
  --radius: 7px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.h-xl { font-size: clamp(2rem, 4.2vw, 3.05rem); }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.lead { font-size: 1.06rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn--dark   { background: var(--navy); color: #fff; }
.btn--dark:hover  { background: var(--indigo); transform: translateY(-2px); }
.btn--light  { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--indigo); color: #fff; transform: translateY(-2px); }
.btn--ghost  { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(13,17,28,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s var(--ease);
}
.site-header.is-solid { background: rgba(13,17,28,.97); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--indigo-soft);
  transition: width .25s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after,
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; width: 30px; height: 30px; position: relative; }
.nav__toggle span {
  position: absolute;
  left: 3px; right: 3px;
  height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 9px; }
.nav__toggle span:nth-child(2) { top: 15px; }
.nav__toggle span:nth-child(3) { top: 21px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 140px 0 90px;
  background: var(--navy-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,28,.55) 0%, rgba(13,17,28,.35) 45%, rgba(13,17,28,.78) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.hero h1 .rotator {
  display: inline-block;
  color: var(--indigo-soft);
  min-width: 1ch;
}
.hero h1 .rotator span {
  display: inline-block;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero h1 .rotator.is-out span { opacity: 0; transform: translateY(-8px); }
.hero__sub {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  font-weight: 300;
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__scroll::before {
  content: "";
  display: block;
  width: 1px; height: 42px;
  margin: 0 auto 12px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.7));
}

/* ============================================================
   Feature rows (image + text)
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(21,28,48,.4);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature__body h2 { margin-bottom: 20px; }
.feature__body p { color: var(--muted); margin-bottom: 14px; }
.feature__body .btn { margin-top: 16px; }
.feature + .feature { margin-top: 96px; }

/* ============================================================
   Value pillars
   ============================================================ */
.value-head { max-width: 620px; margin-bottom: 60px; }
.value-head h2 { margin-bottom: 18px; }
.value-head p { color: var(--muted); }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 38px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -28px rgba(21,28,48,.45);
  border-color: transparent;
}
.pillar__num {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--indigo);
  margin-bottom: 22px;
}
.pillar h3 { font-size: 1.32rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 104px 0;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,21,21,.6), transparent 65%);
  top: -260px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta .eyebrow { color: var(--indigo-soft); }
.cta h2 { color: #fff; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,.78); margin-bottom: 34px; font-weight: 300; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 178px 0 86px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: rgba(255,255,255,.78);
  font-weight: 300;
}

/* ============================================================
   Team
   ============================================================ */
.team-group { margin-top: 70px; }
.team-group:first-child { margin-top: 0; }
.team-group__label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 34px;
}
.team-group__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 26px;
}
.member__photo {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 5;
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform .55s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.05); }
.member__name {
  margin-top: 16px;
  font-size: 1.04rem;
  font-weight: 600;
}
.member__role {
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.member__li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-top: 11px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--navy);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.member__li:hover { background: var(--indigo); color: #fff; }
.member__li svg { width: 15px; height: 15px; }

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.company {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.company:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -30px rgba(21,28,48,.5);
  border-color: transparent;
}
.company__media {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* screenshots & photos fill the whole box */
.company__media--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* transparent wordmark logos stay contained with breathing room */
.company__media--logo { padding: 24px 30px; }
.company__media--logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.company__media--text span {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy);
}
.company__body {
  flex: 1;
  padding: 24px 28px 30px;
  border-left: 3px solid transparent;
  transition: border-color .35s var(--ease);
}
.company:hover .company__body { border-left-color: var(--indigo); }
.company__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}
.company__desc { color: var(--muted); font-size: .95rem; }

/* whole card is a link when the company has a website */
a.company { text-decoration: none; color: inherit; }
.company__arrow {
  flex: none;
  width: 17px; height: 17px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
a.company:hover .company__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--indigo);
}
a.company:hover .company__name { color: var(--indigo); }

/* corner badge — e.g. "Realized Investment" */
.company__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 5px 14px -4px rgba(21,28,48,.55);
}

/* ============================================================
   Founder cards (Companies page)
   ============================================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.founder {
  position: relative;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.founder:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px -32px rgba(21,28,48,.5);
  border-color: transparent;
}
.founder__photo {
  flex: none;
  width: 184px;
  align-self: stretch;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.founder__monogram {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.founder__monogram::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  margin: 12px auto 0;
  background: var(--indigo);
  border-radius: 2px;
}
.founder__body {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  flex: 1;
  min-width: 0;
}
.founder__name {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.founder__title {
  margin-top: 4px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--indigo);
}
.founder__cofounder {
  margin-top: 6px;
  font-size: .76rem;
  color: var(--muted);
}
.founder__blurb {
  margin: 14px 0 20px;
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
}
.founder__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.founder__stats div { display: flex; flex-direction: column; gap: 4px; }
.founder__stats dt,
.founder__stats span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 2.1em;
  line-height: 1.25;
}
.founder__stats strong {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.founder__arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 18px; height: 18px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.founder:hover .founder__arrow { opacity: 1; transform: translate(0,0); color: var(--indigo); }
.founder:hover .founder__name { color: var(--indigo); }
.founder__badge {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .founders-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .founder { flex-direction: column; }
  .founder__photo { width: 100%; height: 180px; }
  .founder__stats { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .founder__stats dt, .founder__stats span { min-height: 0; }
}

/* ============================================================
   Company list (Companies page)
   ============================================================ */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.list-head h2 { margin: 0; }
.company-search {
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  min-width: 250px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.company-search:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(140,21,21,.12);
}
.company-list { border-top: 2px solid var(--ink); }
.company-row {
  display: grid;
  grid-template-columns: 66px 1.3fr 2fr 22px;
  gap: 26px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .2s var(--ease);
}
.company-row:hover { background: #fff; }
.company-row__icon {
  width: 66px; height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-row__icon img { width: 100%; height: 100%; }
.company-row__icon--photo img { object-fit: cover; }
.company-row__icon--logo img { object-fit: contain; padding: 7px; }
.company-row__name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.company-row:hover .company-row__name { color: var(--indigo); }
.company-row__desc { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.company-row__people { margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.company-row__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.company-row__stats div { display: flex; flex-direction: column; gap: 5px; }
.company-row__stats span {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.company-row__stats strong { font-size: .84rem; font-weight: 700; color: var(--ink); }
.company-row__arrow {
  width: 20px; height: 20px;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.company-row:hover .company-row__arrow { color: var(--indigo); transform: translate(2px,-2px); }
.list-empty { padding: 36px 0; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .company-row { grid-template-columns: 56px 1fr; gap: 14px 16px; }
  .company-row__icon { width: 56px; height: 56px; }
  .company-row__name { font-size: 1.25rem; }
  .company-row__arrow { display: none; }
  .company-row__stats { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .company-row__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.portfolio-note {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro p { color: var(--muted); }
.contact-cards { margin-top: 36px; display: grid; gap: 16px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact-card:hover { border-color: var(--indigo); transform: translateX(4px); }
.contact-card span {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 600;
}
.contact-card a, .contact-card strong { font-size: 1.05rem; font-weight: 600; }

.form { display: grid; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__field label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.form__field textarea { resize: vertical; min-height: 140px; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(140,21,21,.13);
}
.form button { width: 100%; justify-content: center; }
.form__status {
  font-size: .95rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.form__status.is-ok  { display: block; background: #e9f7ef; color: #1f7a44; }
.form__status.is-err { display: block; background: #fdecec; color: #c0392b; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 280px; font-weight: 300; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: .95rem;
  padding: 5px 0;
  color: rgba(255,255,255,.78);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-social:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: translateY(-2px);
}
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  box-shadow: 0 10px 26px -8px rgba(21,28,48,.55);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--indigo); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature--flip .feature__media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .section { padding: 78px 0; }
  body { font-size: 16px; }
  .nav__links {
    position: fixed;
    inset: 92px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13,17,28,.99);
    padding: 14px 28px 26px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; font-size: .9rem; }
  .nav__toggle { display: block; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 40px; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
