/* ==========================================================================
   Exilium Ventures
   Palette: cream ground, navy ink, gold accent.
   Display type: Source Serif 4. Text: IBM Plex Sans. Deal data: IBM Plex Mono.
   Completed transactions are set as formal navy deal panels.
   ========================================================================== */

:root {
  /* Ground */
  --cream:       #f7f2e7;
  --cream-2:     #efe8d8;   /* alternating bands */
  --cream-3:     #e9e0cc;   /* inputs, wells */

  /* Navy — ink on cream, and the ground of deal panels */
  --navy:        #15243d;
  --navy-lit:    #24395c;

  /* Type on cream */
  --ink:         #15243d;
  --body:        #3e4a5f;
  --muted:       #6b7488;

  /* Type on navy */
  --on-navy:      #f4efe3;
  --on-navy-soft: #bcc5d4;

  /* Gold — two weights: small type needs the darker one to stay legible */
  --gold:        #a4813a;
  --gold-lit:    #c8a049;   /* on navy only */
  --gold-text:   #806222;   /* small caps labels on cream */

  /* Structure */
  --rule:        #ddd2ba;
  --rule-strong: #c6b795;

  --measure: 62ch;
  --max: 1160px;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; line-height: 1.15; }

p {
  margin: 0 0 1.15em;
  color: var(--body);
  max-width: var(--measure);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-text); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Mono label — the utility voice of the site */
.label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-accent { color: var(--gold-text); }

.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 56ch;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

@media (max-width: 640px) { .container { padding: 0 22px; } }

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 640px) { .header-inner { padding: 22px 22px; flex-wrap: wrap; } }

/* The header wordmark carries the brand, so it is set larger than the footer's */
.site-header .wordmark { font-size: 1.95rem; }
.site-header .wordmark small { font-size: 0.72rem; letter-spacing: 0.2em; margin-top: 9px; }

@media (max-width: 640px) {
  .site-header .wordmark { font-size: 1.6rem; }
}

.wordmark {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}

.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.primary-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }

.primary-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; margin-top: 16px; border-top: 1px solid var(--rule); }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav a { display: block; padding: 15px 0; border-bottom: none; }
}

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

.hero { padding: 100px 0 0; border-bottom: 1px solid var(--rule); }

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}

.hero h1 { max-width: 17ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 40px; }
.hero-inner { padding-bottom: 64px; }

.hero.compact { padding-top: 68px; }
.hero.compact .hero-inner { padding-bottom: 48px; }
.hero.compact h1 { max-width: 20ch; }

/* Capability strip — what we do, without naming clients */
.capability-strip {
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.capability-strip div {
  padding: 22px 28px 22px 0;
  border-right: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

.capability-strip div + div { padding-left: 28px; }
.capability-strip div:last-child { border-right: none; }

.capability-strip strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .capability-strip { grid-template-columns: 1fr; }
  .capability-strip div,
  .capability-strip div + div {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 18px 0;
  }
  .capability-strip div:last-child { border-bottom: none; }
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }
section.alt { background: var(--cream-2); }
section.tight { padding: 60px 0; }

.section-head { max-width: 62ch; margin-bottom: 50px; }
.section-head .label { display: block; margin-bottom: 18px; }

/* ---------- Pillars ---------- */

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: border-top-color 0.25s ease;
}

.pillar-card:hover { border-top-color: var(--gold); }

.pillar-card h3 { margin-bottom: 14px; }
.pillar-card p { flex-grow: 1; }

.pillar-card .go {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-text);
}

/* ---------- Deal panels ---------- */

.deal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

@media (max-width: 820px) { .deal-grid { grid-template-columns: 1fr; } }

.deal-grid.single { grid-template-columns: 1fr; }

.deal {
  background: var(--navy);
  color: var(--on-navy);
  border-top: 3px solid var(--gold);
  padding: 46px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.deal .deal-tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-lit);
  margin-bottom: 24px;
}

.deal h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--on-navy);
  margin-bottom: 16px;
  max-width: 20ch;
}

.deal .deal-figure {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-lit);
  margin: 2px 0 18px;
}

.deal .deal-detail {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--on-navy-soft);
  line-height: 1.9;
  margin: 0;
  max-width: 34ch;
}

.deal .deal-note {
  font-size: 0.9rem;
  color: var(--on-navy-soft);
  max-width: 46ch;
  margin: 18px 0 0;
  line-height: 1.6;
  padding-top: 18px;
  border-top: 1px solid rgba(200, 160, 73, 0.3);
}

/* Pending — honest, not a fake announcement */
.deal.pending {
  background: transparent;
  border: 1px dashed var(--rule-strong);
  color: var(--body);
}
.deal.pending .deal-tag { color: var(--gold-text); }
.deal.pending h3 { color: var(--ink); }
.deal.pending .deal-detail,
.deal.pending .deal-note { color: var(--body); }
.deal.pending .deal-note { border-top-color: var(--rule-strong); }

/* ---------- Capability list ---------- */

.capabilities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.capabilities li {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  color: var(--body);
  align-items: baseline;
}

.capabilities li .idx {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gold-text);
}

@media (max-width: 640px) { .capabilities li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 840px;
}

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 460px; } }

.team-card { border-top: 1px solid var(--navy); padding-top: 24px; }

/* Portrait frame holds its space whether or not the image file is present. */
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  background: var(--cream-3);
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-frame.is-empty {
  border: 1px dashed var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame.is-empty img { display: none; }

.portrait-frame.is-empty::after {
  content: attr(data-empty-label);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.team-card .role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.team-card h3 { margin-bottom: 4px; }

.team-card .creds {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 16px;
}

.team-card p { font-size: 0.94rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--navy); color: var(--cream); }

.btn-solid { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--navy-lit); border-color: var(--navy-lit); color: var(--cream); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; }

@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

.contact-form { display: flex; flex-direction: column; gap: 22px; }

.contact-form label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 13px 15px;
  border-radius: 0;
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy); }

.form-status { font-family: var(--sans); font-size: 0.9rem; color: var(--gold-text); min-height: 1.4em; margin: 0; }

.contact-detail { padding: 20px 0; border-top: 1px solid var(--rule); }
.contact-detail:first-child { border-top: none; padding-top: 0; }
.contact-detail .label { display: block; margin-bottom: 8px; }
.contact-detail a { color: var(--ink); border-bottom: 1px solid var(--rule-strong); }
.contact-detail a:hover { color: var(--gold-text); border-bottom-color: var(--gold); }

/* ---------- Closing band ---------- */

.closing { background: var(--navy); padding: 84px 0; text-align: center; }
.closing h2 { color: var(--on-navy); max-width: 22ch; margin-left: auto; margin-right: auto; }
.closing p { color: var(--on-navy-soft); margin-left: auto; margin-right: auto; text-align: center; }
.closing .label-accent { color: var(--gold-lit); }
.closing .btn-row { justify-content: center; margin-top: 30px; }
.closing .btn,
.closing .btn-solid { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.closing .btn:hover,
.closing .btn-solid:hover { background: var(--gold-lit); border-color: var(--gold-lit); color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--cream-2);
  padding: 52px 0 34px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

.footer-nav ul { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; flex-wrap: wrap; }

.footer-nav a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
}

.footer-reg {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.75;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 28px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
