/* ma91c.com - hand-edited stylesheet. Fonts are self-hosted (OFL), see /fonts. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght.woff2") format("woff2");
}

:root {
  --ink: #0f1c2e;          /* deep navy: header, dark sections */
  --ink-2: #172a42;
  --paper: #faf8f4;        /* page background */
  --paper-2: #f1ede5;      /* alternate section */
  --text: #1c2533;
  --muted: #5b6575;
  --line: #e2ddd2;
  --gold: #c9a24a;         /* accent on dark */
  --gold-ink: #8a6a1f;     /* accent on light (AA contrast) */
  --on-dark: #f4f1ea;
  --on-dark-muted: #b5bdc9;
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--serif); color: inherit; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block; padding: .8em 1.4em; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
  border: 1px solid var(--gold); transition: background .2s, color .2s;
}
.btn:hover { background: #dbb75f; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(244,241,234,.4); }
.btn-ghost:hover { background: rgba(244,241,234,.1); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { background: var(--paper-2); }
.btn-small { padding: .45em 1.1em; font-size: .9rem; }
.btn-large { font-size: clamp(1.1rem, 3vw, 1.4rem); padding: .9em 1.8em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15,28,46,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font: 600 1.35rem/1 var(--sans); letter-spacing: -.01em; }
.brand b, .foot-brand b { color: var(--gold); font-weight: 600; }
header.site nav { display: flex; align-items: center; gap: 26px; }
header.site nav a:not(.btn) { color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
header.site nav a:not(.btn):hover { color: var(--on-dark); }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow, .kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 14px;
}
.hero .eyebrow, .section-dark .kicker { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--on-dark-muted); max-width: 36em; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.hero figcaption, .section-dark figcaption { color: var(--on-dark-muted); }

/* Highlights bar */
.facts { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.06); }
.facts ul {
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.facts li { display: flex; flex-direction: column; text-align: center; }
.facts strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.facts span { font-size: .85rem; color: var(--on-dark-muted); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.intro { font-size: 1.12rem; color: var(--muted); max-width: 44em; margin-bottom: 40px; }

/* Format cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card h3 { position: relative; padding-top: 18px; }
.card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.card p { color: var(--muted); flex: 1; }
.card a { font-weight: 600; font-size: .92rem; text-decoration: none; }
.card a::after { content: " \2192"; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-about { grid-template-columns: .8fr 1.2fr; align-items: start; }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); }
.topic { border-left: 2px solid var(--gold); padding-left: 20px; margin-top: 28px; }
.topic h3 { color: var(--on-dark); }
.topic p { margin: 0; }

/* Clients and quotes */
.clients {
  list-style: none; padding: 0; margin: 8px 0 28px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.clients li {
  background: var(--paper); padding: 22px 10px; text-align: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.events { color: var(--muted); max-width: 52em; }
.events strong { color: var(--text); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.quote {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55;
}
.quote footer { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.quote cite { display: block; font-style: normal; font-weight: 600; color: var(--text); font-size: .95rem; }
.quote-feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center;
  background: var(--ink); color: var(--on-dark); border: 0; font-size: 1.3rem;
}
.quote-feature img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; }
.quote-feature .quote-head { font-size: 2rem; font-weight: 600; color: var(--gold); margin-bottom: .3em; }
.quote-feature footer { color: var(--on-dark-muted); }
.quote-feature cite { color: var(--on-dark); }

/* Cases */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 16px; }
.case img { border-radius: var(--radius); margin-bottom: 20px; }
.case h3 { margin-top: 8px; }
.case p { color: var(--muted); }
.award { font-size: .88rem; font-weight: 600; color: var(--gold-ink) !important; margin-bottom: 28px; }

/* Gallery */
.gallery-section { padding-top: 0; padding-bottom: 0; background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 88px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 1080 / 413; }

/* About */
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.awards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.awards li { font-size: .92rem; color: var(--muted); padding-left: 18px; position: relative; }
.awards li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* Contact */
.contact { text-align: center; }
.contact p { font-size: 1.12rem; max-width: 34em; margin: 0 auto 32px; }

/* 404 */
.notfound { min-height: 60vh; }
.notfound p { color: var(--muted); font-size: 1.12rem; max-width: 34em; }

/* Footer */
footer.site { background: var(--ink); color: var(--on-dark-muted); font-size: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
footer.site a { color: var(--on-dark); }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.foot-brand { font-size: 1.25rem; font-weight: 600; color: var(--on-dark); }
.foot-brand span { display: block; font-size: .9rem; font-weight: 400; color: var(--on-dark-muted); }
.small { font-size: .8rem; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .split, .split-about { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .portrait { max-width: 420px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site nav a:not(.btn) { display: none; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 60px 0; }
  .gallery { padding-bottom: 60px; grid-template-columns: 1fr; }
  .cards, .quotes, .cases, .foot, .awards { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .clients li { padding: 16px 8px; font-size: .98rem; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .quote-feature { grid-template-columns: 1fr; font-size: 1.15rem; }
  .quote-feature img { width: 96px; height: 96px; }
}
