/* Markour Advisors site. Tokens from brand/tokens.json (user's v0.3 identity). Sora headings, Inter body, one gold accent. */
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0A0A0A; --graphite: #1C1C1E; --paper: #F5F3EE; --gold: #E0A93B; --deep: #8A6824; --stone: #A8A49A;
  --text-on-paper-2: #3a3834; --lead-on-paper: #4a4740;
  --head: "Sora", "Segoe UI", system-ui, sans-serif; --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px; --maxw: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1.0625rem/1.6 var(--body); font-synthesis: none; -webkit-font-smoothing: antialiased; scrollbar-color: #4a4740 var(--ink); }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-paper :focus-visible { outline-color: var(--ink); }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, strong, dt, dd { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1.1rem, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.0625rem, .5vw + 1rem, 1.25rem); line-height: 1.55; max-width: 34em; }
.small { font-size: .875rem; color: var(--stone); }

.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }

/* sections */
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .lead { color: var(--stone); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper .lead { color: var(--lead-on-paper); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 10px; font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; border: 2px solid transparent; transition: background-color 120ms ease-out, transform 120ms ease-out, border-color 120ms ease-out; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ECBB55; }
.btn-line { border-color: var(--stone); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid #ffffff1f; }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: 12px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--paper); border-radius: 8px; transition: color 120ms ease-out; }
.nav a:hover { color: var(--gold); }
.bar .btn { min-height: 44px; padding: 0 20px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 16px; border: 2px solid var(--stone); border-radius: 10px; background: transparent; color: var(--paper); font: 600 .9375rem/1 var(--body); cursor: pointer; }

/* hero */
.hero { background: radial-gradient(900px 600px at 95% 110%, rgba(224,169,59,.28), rgba(224,169,59,0) 70%), var(--ink); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.4vw + .6rem, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14em; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-plate, .approach-plate { aspect-ratio: 1 / 1.15; clip-path: polygon(54% 0, 100% 0, 46% 100%, 0 100%); overflow: hidden; background: var(--graphite); }
.hero-plate img, .approach-plate img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .hero-plate img { animation: rise 280ms cubic-bezier(.2,.7,.2,1) both; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* what we do */
.services { margin: 0; border-top: 1px solid #0a0a0a40; }
.services .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid #0a0a0a40; }
.services dt { font: 600 1.25rem/1.25 var(--head); letter-spacing: -0.01em; }
.services dd { margin: 0; color: var(--text-on-paper-2); max-width: 38em; }

/* who we serve */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.who h2 { max-width: 12em; }
.segments { list-style: none; margin: 0; padding: 0; }
.segments li { display: grid; grid-template-columns: 22px 1fr; column-gap: 18px; row-gap: 4px; padding: 24px 0; border-top: 1px solid #ffffff26; }
.segments li:last-child { border-bottom: 1px solid #ffffff26; }
.segments li::before { content: ""; grid-row: 1 / span 2; width: 16px; height: 30px; margin-top: 4px; background: var(--gold); clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%); }
.segments strong { font: 600 1.5rem/1.2 var(--head); letter-spacing: -0.02em; }
.segments span { color: var(--stone); }

/* how we work */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 36px; border-top: 1px solid #0a0a0a59; }
.step-n { position: absolute; top: -20px; left: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--gold); color: var(--ink); border-radius: 10px; font: 700 1.125rem/1 var(--head); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-on-paper-2); font-size: 1rem; }

/* approach */
.approach-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.approach-copy h2 { margin-bottom: 32px; }
.principle { padding: 22px 0; border-top: 1px solid #ffffff26; }
.principle:last-child { border-bottom: 1px solid #ffffff26; }
.principle h3 { font-size: 1.375rem; margin-bottom: 8px; }
.principle p { color: var(--stone); max-width: 36em; }

/* contact */
.contact h2 { margin-bottom: 20px; }
.contact h2::after { content: ""; display: block; width: 140px; height: 6px; background: var(--gold); margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-list { margin: 0; display: grid; gap: 4px; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid #0a0a0a40; }
.contact-list dt { font: 600 .8125rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--deep); margin-bottom: 6px; }
.contact-list dd { margin: 0; font: 600 1.5rem/1.3 var(--head); letter-spacing: -0.015em; }
.contact-list dd.pending { font: 500 1.0625rem/1.5 var(--body); letter-spacing: 0; color: var(--lead-on-paper); }
.contact-list dd a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--deep); }

/* footer */
.site-footer { padding: 56px 0; border-top: 1px solid #ffffff1f; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.foot-logo { width: 140px; height: auto; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: .9375rem; }
.site-footer nav a:hover { color: var(--gold); }
.copy { align-self: center; }

/* tablet and phone */
@media (max-width: 900px) {
  .hero-grid, .who-grid, .approach-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-plate { width: min(100%, 360px); }
  .approach-plate { width: min(100%, 360px); order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 24px 20px; background: var(--ink); border-bottom: 1px solid #ffffff1f; }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; padding: 0 4px; font-size: 1.0625rem; border-bottom: 1px solid #ffffff14; }
}
@media (max-width: 640px) {
  .services .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li { padding-top: 32px; }
  .brand img { width: 112px; }
  .bar { gap: 8px; }
  .bar .btn { padding: 0 14px; }
  .actions .btn { flex: 1 1 140px; }
}
@media (max-width: 380px) { .wrap { padding: 0 16px; } .brand img { width: 96px; } .bar .btn { padding: 0 12px; } .menu-btn { padding: 0 12px; } }
