/* ============================================
   kapital ALKEMI — Version 7
   stronger copy / mark-only + live wordmark
   ============================================ */

:root {
  --bg: #f7f3ec;
  --bg-2: #f0eadf;
  --bg-3: #fbf8f2;
  --navy: #123a56;
  --navy-deep: #0e2f45;
  --gold: #d1a23f;
  --rust: #b4482d;
  --ink: #1e2327;
  --muted: #60707c;
  --line: rgba(18, 58, 86, 0.14);
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden-field { display: none; }

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

/* HEADER + BRAND */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  width: fit-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  white-space: nowrap;
  color: var(--navy-deep);
}

.brand-kapital {
  font-family: var(--serif);
  font-size: 1.46rem;
  font-weight: 500;
  line-height: 1;
}

.brand-alkemi {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-nav a { color: rgba(30, 35, 39, 0.78); }
.site-nav a:hover { color: var(--navy); }

.site-nav .nav-cta {
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.menu-toggle { display: none; }

/* TYPE */

h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  margin-top: 0;
  color: var(--navy-deep);
}

h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.65rem, 6vw, 6.3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.68rem;
  font-size: 1.62rem;
  line-height: 1.15;
}

p { margin-top: 0; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-light { color: rgba(209, 162, 63, 0.96); }

.section { padding: 6.25rem 0; }
.section-tint { background: var(--bg-2); }
.section-subtle { background: var(--bg-3); }
.section-dark { background: var(--navy-deep); color: rgba(255,255,255,0.86); }
.section-dark h2,
.section-dark h3,
.section-dark blockquote { color: var(--white); }

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 49px;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: var(--white); }

.button-secondary {
  border-color: rgba(18,58,86,0.20);
  color: var(--navy);
  background: transparent;
}

.button-light { background: var(--white); color: var(--navy); }

/* HERO */

.hero {
  padding: 4.8rem 0 5.3rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 4.5rem;
  align-items: start;
}

.hero-deck {
  max-width: 710px;
  margin-bottom: 0.72rem;
  color: var(--muted);
  font-size: 1.19rem;
  line-height: 1.68;
}

.hero-support {
  max-width: 690px;
  margin-bottom: 2rem;
  color: rgba(30,35,39,0.78);
  font-size: 1rem;
  line-height: 1.67;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.hero-tags span {
  padding-right: 1.1rem;
  margin-right: 1.1rem;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero-tags span:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.hero-card {
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(9, 21, 32, 0.16);
}

.hero-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.11);
}

.hero-card-head .eyebrow { margin-bottom: 0; }

.mandate-note {
  margin-bottom: 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.card-line-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.82rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.card-line-item > span {
  padding-top: 0.16rem;
  color: var(--gold);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-title {
  margin-bottom: 0.18rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.38rem;
}

.card-note {
  margin-bottom: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.89rem;
  line-height: 1.51;
}

.hero-phrase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
  color: rgba(255,255,255,0.90);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-phrase span { color: var(--gold); }

/* INTRO */

.intro-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
}

.intro-copy { max-width: 900px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.55rem;
  border-top: 1px solid var(--line);
}

.two-col p {
  color: var(--muted);
  font-size: 1rem;
}

/* SHARED SECTION TOP */

.section-top {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.6rem;
}

.section-intro {
  max-width: 540px;
  justify-self: end;
  color: var(--muted);
  font-size: 0.97rem;
}

/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 292px;
  padding: 1.7rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.16);
}

.service-card .num {
  display: block;
  margin-bottom: 3.1rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-card p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
}

/* PRINCIPLE */

.principle-grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: 6rem;
  align-items: start;
}

.principle-copy { padding-top: 1.75rem; }

.principle-line {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.88rem;
}

.principle-line span { color: var(--gold); }

.principle-copy > p {
  max-width: 650px;
  color: rgba(255,255,255,0.75);
}

.principle-quote {
  max-width: 650px;
  margin: 1.6rem 0;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 1.85rem;
  line-height: 1.1;
}

.principle-close {
  color: rgba(255,255,255,0.93) !important;
  font-weight: 500;
}

/* SITUATIONS */

.situation-list { border-top: 1px solid var(--line); }

.situation-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.situation-row span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.situation-row p {
  margin-bottom: 0;
  max-width: 940px;
  font-family: var(--serif);
  font-size: 1.40rem;
  line-height: 1.29;
}

/* ENGAGEMENTS */

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.engagement-card {
  min-height: 420px;
  padding: 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.16);
}

.engagement-card.featured { background: rgba(255,255,255,0.62); }

.engagement-type {
  margin-bottom: 2.85rem;
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.engagement-card > p:not(.engagement-type) {
  color: var(--muted);
  font-size: 0.92rem;
}

.engagement-card ul {
  margin: 1.4rem 0 0;
  padding: 1rem 0 0 1.05rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.engagement-card li { margin-bottom: 0.4rem; }

.cta-row { margin-top: 1.6rem; }

/* PERSPECTIVE */

.perspective-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5.5rem;
}

.perspective-copy { padding-top: 1.75rem; }

.perspective-copy > p {
  max-width: 710px;
  color: var(--muted);
}

.perspective-copy blockquote {
  max-width: 710px;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 2.55rem;
  line-height: 1.08;
}

/* IDEAS */

.insight-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.insight-list {
  display: grid;
  gap: 1rem;
}

.insight-list article {
  padding: 1.5rem;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--line);
}

.insight-list span {
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-list h3 {
  margin-top: 0.55rem;
  margin-bottom: 0.38rem;
  font-size: 1.45rem;
}

.insight-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CONTACT */

.contact-section { padding-bottom: 5.8rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5.5rem;
}

.contact-copy > p:last-child {
  max-width: 550px;
  color: rgba(255,255,255,0.74);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label > span {
  color: rgba(255,255,255,0.73);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.82rem 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  border-radius: 0;
  outline: none;
}

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

.contact-form textarea { resize: vertical; }

/* FOOTER */

.site-footer {
  padding: 2.35rem 0;
  background: #ede6d9;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-lockup .brand-mark {
  width: 48px;
  height: 48px;
}

.footer-lockup .brand-kapital { font-size: 1.3rem; }
.footer-lockup .brand-alkemi { font-size: 0.85rem; }

.footer-meta {
  justify-self: end;
  text-align: right;
}

.footer-meta p {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-size: 0.78rem;
}

.footer-meta p:first-child {
  font-family: var(--serif);
  font-size: 1rem;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
  .hero-grid,
  .principle-grid,
  .perspective-grid,
  .contact-grid,
  .insight-panel {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-intro { justify-self: start; }

  .service-grid,
  .engagement-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-kapital { font-size: 1.25rem; }
  .brand-alkemi { font-size: 0.82rem; }

  .menu-toggle {
    display: grid;
    justify-self: end;
    gap: 5px;
    width: 40px;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    background: var(--navy);
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem 24px 1.7rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open { display: flex; }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .two-col,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
  }

  .hero-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }

  .section,
  .contact-section { padding: 4.8rem 0; }

  .hero { padding: 3.8rem 0 4.2rem; }

  h1 { font-size: clamp(3rem, 13vw, 4.55rem); }
  h2 { font-size: clamp(2.25rem, 9vw, 3.4rem); }

  .brand-wordmark { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button { width: 100%; }

  .hero-tags span { margin-bottom: 0.7rem; }

  .situation-row {
    grid-template-columns: 44px 1fr;
  }

  .situation-row p { font-size: 1.20rem; }

  .perspective-copy blockquote { font-size: 2.1rem; }
}
