/* ============================================
   MC SQUARE — Stylesheet
   Aesthetic: refined industrial seriousness
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colours — official MC Square Corporate Identity */
  --navy:     #050F41;   /* Primary — official CI navy */
  --navy2:    #0A1858;   /* Secondary dark — alternating panels */
  --steel:    #D2FAEB;   /* Mint accent — official CI mint */
  --steel-d:  #9AD9C5;   /* Darker mint — hover, dividers */
  --bone:     #F5F5F1;   /* Page background */
  --cream:    #EDEDE7;   /* Alternating section background */
  --slate:    #5A6470;   /* Secondary text */
  --ink:      #14181F;   /* Body text */
  --white:    #FFFFFF;   /* White */

  /* Typography */
  --wm:       'IBM Plex Sans', sans-serif;
  --display:  'Inter', sans-serif;
  --body:     'Inter', sans-serif;
  --mono:     'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1180px;
  --nav-height: 80px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ---------- Navigation ---------- */
.nav-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(210,250,235,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--wm);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  border: 1px solid rgba(210,250,235,0.4);
  padding: 9px 18px;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--steel);
  color: var(--navy) !important;
  border-color: var(--steel);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 22px;
}
.eyebrow.light { color: rgba(210,250,235,0.7); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 350;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(210,250,235,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: var(--white);
  max-width: 880px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.22;
  font-weight: 300;
}
.hero h1 em {
  color: var(--steel);
  font-weight: 300;
}
.hero-sub {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(210,250,235,0.75);
  margin-top: 30px;
  max-width: 720px;
  line-height: 1.55;
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.light { background: var(--bone); }
section.cream { background: var(--cream); }
section.dark { background: var(--navy); color: var(--white); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark .eyebrow { color: rgba(210,250,235,0.7); }

.section-intro {
  max-width: 760px;
  margin-bottom: 60px;
}
.section-intro p {
  font-size: 1.1rem;
  color: var(--slate);
}
section.dark .section-intro p { color: rgba(210,250,235,0.85); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  border: 1px solid var(--navy);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy2); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--navy);
  transition: all 0.3s ease;
}
.btn-secondary:hover { letter-spacing: 0.22em; }

.btn-on-dark {
  display: inline-block;
  border: 1px solid var(--steel);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-on-dark:hover { background: var(--steel); color: var(--navy); }

/* ---------- Grids ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* ---------- Pillars ---------- */
.pillar {
  background: var(--white);
  padding: 44px 38px;
  border-left: 2px solid var(--steel);
  transition: all 0.35s ease;
}
.pillar:hover {
  border-left-color: var(--navy);
  transform: translateY(-2px);
}
.pillar-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--slate);
  margin-bottom: 22px;
}
.pillar h3 { margin-bottom: 18px; font-weight: 500; }
.pillar p { color: var(--slate); font-size: 0.97rem; line-height: 1.7; }
.pillar-quote {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--steel-d);
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Checkmarks (FAD mindset filter) ---------- */
.checkmark-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 50px;
  margin-top: 30px;
}
.checkmark { padding-left: 36px; position: relative; }
.checkmark::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 500;
}
.checkmark h4 { font-weight: 500; margin-bottom: 8px; font-size: 1rem; }
.checkmark p { color: var(--slate); font-size: 0.93rem; line-height: 1.6; }

/* ---------- Case index cards ---------- */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
.case-card {
  display: block;
  padding: 36px 0;
  border-top: 1px solid rgba(20,24,31,0.1);
  transition: all 0.3s ease;
}
.case-card:last-child { border-bottom: 1px solid rgba(20,24,31,0.1); }
.case-card:hover { padding-left: 24px; }
.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 30px;
}
.case-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--ink);
  flex: 1;
}
.case-card .case-period {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
  white-space: nowrap;
  text-transform: uppercase;
}
.case-card .case-summary {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.case-card .case-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--navy);
  text-transform: uppercase;
}

/* ---------- Case detail ---------- */
.case-detail { max-width: 760px; margin: 0 auto; }
.case-detail .case-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.case-detail h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 350;
  margin-bottom: 28px;
  line-height: 1.3;
}
.case-detail .case-engagement {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--steel-d);
}
.case-detail p { font-size: 1.02rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.4em; }
.case-detail .roles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--steel-d);
  font-size: 0.95rem;
  color: var(--slate);
}
.case-detail .roles strong {
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.case-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 60px;
  transition: color 0.25s ease;
}
.case-back:hover { color: var(--navy); }

/* ---------- AI table (FAD page) ---------- */
.ai-table {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--steel-d);
}
.ai-row {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  border-bottom: 1px solid var(--steel-d);
}
.ai-row:last-child { border-bottom: none; }
.ai-row.head { background: var(--navy); color: var(--white); }
.ai-row.head .ai-cell {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
.ai-row.highlight { background: rgba(210,250,235,0.35); }
.ai-cell { padding: 22px 26px; font-size: 0.96rem; line-height: 1.6; }
.ai-cell:first-child { font-weight: 500; color: var(--ink); border-right: 1px solid var(--steel-d); }
.ai-cell:nth-child(2) { border-right: 1px solid var(--steel-d); color: var(--slate); }
.ai-row.highlight .ai-cell { color: var(--ink); }

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 80px;
  padding: 60px 0;
  border-top: 1px solid var(--steel-d);
  border-bottom: 1px solid var(--steel-d);
}
.stat { text-align: left; }
.stat-value {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 200;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}
section.dark .stat-value { color: var(--steel); }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
section.dark .stat-label { color: rgba(210,250,235,0.6); }

/* ---------- About portrait + quote ---------- */
.portrait-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 50px;
}
.portrait-block img {
  border-radius: 2px;
  width: 100%;
  height: auto;
  filter: contrast(1.02);
}
.portrait-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
}

/* ---------- Pull quote (Marco's declaration) ---------- */
.pullquote {
  background: var(--white);
  border-left: 3px solid var(--navy);
  padding: 36px 44px;
  margin: 60px 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.pullquote em { font-style: italic; }

/* ---------- Career timeline ---------- */
.timeline {
  margin: 40px 0;
  border-top: 1px solid var(--steel-d);
}
.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--steel-d);
  align-items: baseline;
}
.timeline-year {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.timeline-event {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
}
.timeline-event strong { color: var(--navy); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}
.contact-block {
  padding: 36px;
  background: var(--white);
  border-left: 2px solid var(--steel);
}
.contact-block h3 {
  font-size: 1rem;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--slate);
}
.contact-block .address { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.contact-direct { margin-bottom: 60px; }
.contact-direct .email {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  display: inline-block;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px;
}
.contact-direct .email:hover { color: var(--navy2); }
.contact-direct .linkedin {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.contact-direct .linkedin:hover { color: var(--navy); }

/* ---------- Trading list ---------- */
.trading-items { margin: 50px 0; }
.trading-item {
  padding: 36px 0;
  border-top: 1px solid var(--steel-d);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.trading-item:last-of-type { border-bottom: 1px solid var(--steel-d); }
.trading-item h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0; }
.trading-item p { color: var(--slate); font-size: 1rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(210,250,235,0.85); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p {
  color: rgba(210,250,235,0.6);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(210,250,235,0.6);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(210,250,235,0.85);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 6px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(210,250,235,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(210,250,235,0.5);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Two-door block ---------- */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--steel-d);
  margin-top: 50px;
}
.door {
  padding: 50px 44px;
  background: var(--white);
  transition: all 0.35s ease;
  display: block;
}
.door:first-child { border-right: 1px solid var(--steel-d); }
.door:hover { background: var(--navy); color: var(--white); }
.door:hover h3, .door:hover .door-num, .door:hover .door-arrow,
.door:hover p { color: rgba(210,250,235,0.9); }
.door-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 24px;
  display: block;
  transition: color 0.35s ease;
}
.door h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 14px; color: var(--ink); transition: color 0.35s ease; }
.door p { color: var(--slate); font-size: 0.97rem; line-height: 1.7; margin-bottom: 24px; transition: color 0.35s ease; }
.door-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.35s ease;
}

/* ---------- Operating model block (FAD page) ---------- */
.operating-model {
  background: var(--white);
  border-left: 3px solid var(--steel);
  padding: 40px 44px;
  margin: 50px 0 0;
}
.operating-model h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.operating-model p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 14px;
}
.operating-model p:last-child { margin-bottom: 0; }

/* ---------- Transparency note (FAD page) ---------- */
.transparency {
  background: var(--white);
  border-left: 3px solid var(--navy);
  padding: 32px 36px;
  margin-top: 30px;
}
.transparency h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.transparency p { font-size: 0.97rem; color: var(--ink); line-height: 1.7; margin-bottom: 0; }

/* ---------- Scroll reveal (JS-only enhancement) ---------- */
html.js .reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .three-col { grid-template-columns: 1fr; gap: 50px; }
  .stats-row { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .doors { grid-template-columns: 1fr; }
  .door:first-child { border-right: none; border-bottom: 1px solid var(--steel-d); }
  .checkmark-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait-block { grid-template-columns: 1fr; gap: 30px; }
  .portrait-block img { max-width: 280px; }
  .trading-item { grid-template-columns: 1fr; gap: 12px; }
  .ai-row { grid-template-columns: 1fr; }
  .ai-cell:first-child, .ai-cell:nth-child(2) { border-right: none; border-bottom: 1px solid var(--steel-d); }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 70px 0; }
  .hero { padding: 80px 0 90px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px 36px;
    gap: 22px;
    border-top: 1px solid rgba(210,250,235,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-logo img { height: 36px; }
  .nav-logo-text { font-size: 15px; letter-spacing: 0.14em; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .case-card-header { flex-direction: column; gap: 6px; }
  .pullquote { font-size: 1.1rem; padding: 28px 30px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .door { padding: 36px 28px; }
  .pillar { padding: 32px 26px; }
  .contact-block { padding: 26px; }
}
