/* ExpertFoundary Brand System V1.0 */

:root {
  /* Steel spectrum */
  --foundry-black: #080808;
  --carbon: #141414;
  --graphite: #242424;
  --gunmetal: #383838;
  --machined-steel: #737373;
  --titanium: #b5b5b5;
  --concrete: #e5e5e5;
  --porcelain: #f5f5f5;
  --pure-white: #ffffff;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* 8px spacing system */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --s16: 128px;

  --radius: 3px;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--concrete);
  background: var(--foundry-black);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* 12-column grid shell */

.grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s2);
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: var(--s4) var(--gutter);
  animation: fade-in 0.8s var(--ease) both;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.logo-lockup {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--machined-steel);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--s4);
}

.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--titanium);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--pure-white);
}

.nav a[aria-current="page"] {
  color: var(--pure-white);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Inner pages */

.site-header--page {
  position: absolute;
}

.page-hero {
  background:
    linear-gradient(180deg, var(--carbon) 0%, var(--foundry-black) 100%);
  border-bottom: 1px solid var(--graphite);
  padding-top: calc(var(--s12) + var(--s4));
  padding-bottom: var(--s10);
}

.page-hero-grid {
  width: 100%;
}

.page-hero-content {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .page-hero-content {
    grid-column: 1 / 10;
  }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pure-white);
  margin-bottom: var(--s3);
}

.section-intro--wide {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .section-intro--wide {
    grid-column: 1 / 10;
  }
}

.section-intro--wide .section-copy + .section-copy {
  margin-top: var(--s3);
}

/* AI practice */

.ai-practice {
  background: var(--graphite);
}

.ai-pillars {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gunmetal);
}

@media (min-width: 700px) {
  .ai-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ai-pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ai-pillars li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--gunmetal);
}

@media (min-width: 700px) {
  .ai-pillars li {
    padding: var(--s5) var(--s3) var(--s5) 0;
    border-bottom: none;
    border-right: 1px solid var(--gunmetal);
  }

  .ai-pillars li:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .ai-pillars li:nth-child(-n+2) {
    border-bottom: 1px solid var(--gunmetal);
  }
}

@media (min-width: 1100px) {
  .ai-pillars li {
    border-bottom: none !important;
    border-right: 1px solid var(--gunmetal);
    padding-right: var(--s3);
  }

  .ai-pillars li:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.ai-pillars h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: var(--s2);
}

.ai-pillars p {
  color: var(--titanium);
  font-size: 0.92rem;
  max-width: 18rem;
}

/* Credentials */

.credentials {
  background: var(--foundry-black);
}

.cred-columns {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gunmetal);
}

@media (min-width: 900px) {
  .cred-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cred-columns > li {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--gunmetal);
}

@media (min-width: 900px) {
  .cred-columns > li {
    padding: var(--s5) var(--s4) var(--s5) 0;
    border-bottom: none;
    border-right: 1px solid var(--gunmetal);
  }

  .cred-columns > li:last-child {
    border-right: none;
    padding-right: 0;
  }

  .cred-columns > li:first-child {
    padding-left: 0;
  }
}

.cred-columns h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: var(--s3);
}

.cred-list {
  display: grid;
  gap: var(--s2);
}

.cred-list li {
  position: relative;
  padding-left: var(--s3);
  color: var(--titanium);
  font-size: 0.95rem;
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--machined-steel);
}

/* Track record */

.track-record {
  background: var(--graphite);
}

.track-list {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gunmetal);
}

.track-list > li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--gunmetal);
  display: grid;
  gap: 4px;
}

@media (min-width: 800px) {
  .track-list > li {
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.8fr) 1.4fr;
    gap: var(--s3);
    align-items: baseline;
  }
}

.track-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.track-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--machined-steel);
}

.track-list p {
  color: var(--titanium);
  font-size: 0.95rem;
}

.partner-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
}

@media (min-width: 900px) {
  .partner-actions {
    grid-column: 9 / -1;
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
  }

  .partner .btn {
    grid-column: auto;
    justify-self: auto;
  }
}

.text-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--titanium);
  border-bottom: 1px solid var(--gunmetal);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--pure-white);
  border-color: var(--titanium);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--pure-white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0.5) 0%,
      rgba(8, 8, 8, 0.58) 40%,
      rgba(8, 8, 8, 0.94) 100%
    ),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=2400&q=80")
      center / cover no-repeat;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.03);
  animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--s16) var(--s10);
  animation: fade-up 0.9s 0.1s var(--ease) both;
}

.hero-content {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .hero-content {
    grid-column: 1 / 9;
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--pure-white);
  margin-bottom: var(--s4);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--porcelain);
  margin-bottom: var(--s3);
}

.lede {
  font-size: 1rem;
  color: var(--titanium);
  margin-bottom: var(--s5);
  max-width: 28rem;
}

/* Buttons — white primary per brand */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--pure-white);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--pure-white);
  color: var(--foundry-black);
}

.btn-primary:hover {
  background: var(--concrete);
}

/* Sections */

.section {
  padding-block: var(--s12);
  border-top: 1px solid var(--graphite);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--machined-steel);
  margin-bottom: var(--s3);
  grid-column: 1 / -1;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--pure-white);
  margin-bottom: var(--s3);
}

.section-copy {
  color: var(--titanium);
  max-width: 36rem;
  font-size: 1rem;
}

.section-intro {
  grid-column: 1 / -1;
  margin-bottom: var(--s8);
}

@media (min-width: 900px) {
  .section-intro {
    grid-column: 1 / 8;
  }
}

/* About / pillars */

.about {
  background: var(--carbon);
}

.pillars {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gunmetal);
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillars li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--gunmetal);
}

@media (min-width: 800px) {
  .pillars li {
    padding: var(--s5) var(--s4) var(--s5) 0;
    border-bottom: none;
    border-right: 1px solid var(--gunmetal);
  }

  .pillars li:last-child {
    border-right: none;
    padding-right: 0;
  }

  .pillars li:first-child {
    padding-left: 0;
  }
}

.pillar-media {
  margin: 0 0 var(--s3);
  overflow: hidden;
  border-radius: var(--radius);
}

.pillar-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--machined-steel);
  margin-bottom: var(--s2);
}

.pillars h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: var(--s2);
}

.pillars p {
  color: var(--titanium);
  font-size: 0.95rem;
  max-width: 22rem;
}

/* Philosophy */

.philosophy {
  background: var(--foundry-black);
}

.philosophy-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gunmetal);
}

@media (min-width: 800px) {
  .philosophy-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .philosophy-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.philosophy-list li {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--gunmetal);
}

@media (min-width: 800px) {
  .philosophy-list li {
    padding: var(--s5) var(--s3) var(--s5) 0;
    border-right: 1px solid var(--gunmetal);
  }

  .philosophy-list li:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
}

@media (min-width: 1100px) {
  .philosophy-list li {
    border-bottom: none;
    border-right: 1px solid var(--gunmetal);
    padding-right: var(--s3);
  }

  .philosophy-list li:nth-child(2n) {
    border-right: 1px solid var(--gunmetal);
    padding-right: var(--s3);
  }

  .philosophy-list li:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.philosophy-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--machined-steel);
  margin-bottom: var(--s2);
}

.philosophy-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: var(--s2);
}

.philosophy-list p {
  color: var(--titanium);
  font-size: 0.95rem;
  max-width: 18rem;
}

/* Vision */

.vision {
  background: var(--carbon);
}

.vision blockquote {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .vision blockquote {
    grid-column: 1 / 11;
  }
}

.vision blockquote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--porcelain);
}

/* Ventures */

.ventures {
  background: var(--graphite);
}

.venture-list {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gunmetal);
}

.venture-item {
  display: grid;
  gap: var(--s2);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--gunmetal);
}

@media (min-width: 700px) {
  .venture-item {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    align-items: baseline;
    gap: var(--s4);
  }
}

.venture-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  color: var(--pure-white);
}

.venture-desc {
  color: var(--titanium);
  font-size: 1rem;
  max-width: 40rem;
}

/* Partner */

.partner {
  background: var(--carbon);
}

.partner-grid {
  align-items: end;
  row-gap: var(--s5);
}

.partner-copy {
  grid-column: 1 / -1;
}

.partner .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 900px) {
  .partner-copy {
    grid-column: 1 / 8;
  }

  .partner .btn {
    grid-column: 9 / -1;
    justify-self: end;
  }
}

/* Footer */

.site-footer {
  background: var(--foundry-black);
  border-top: 1px solid var(--graphite);
  padding-block: var(--s6);
}

.footer-grid {
  align-items: end;
  row-gap: var(--s4);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--pure-white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.footer-tag {
  font-size: 0.9rem;
  color: var(--machined-steel);
}

.footer-grid > div {
  grid-column: 1 / -1;
}

.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gunmetal);
}

@media (min-width: 700px) {
  .footer-grid > div {
    grid-column: 1 / 7;
  }

  .footer-copy {
    grid-column: 8 / -1;
    justify-self: end;
    text-align: right;
  }
}

/* Motion — restrained */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .site-header,
  .hero-grid,
  .hero-media {
    animation: none !important;
  }

  .hero-media {
    transform: none;
  }

}
