/* ==========================================================================
   Morgan Muranyi, Go-to-Market Advisor
   Design tokens + layout. Mobile-first values are scaled via clamp();
   max-width media queries tighten spacing on small screens.
   ========================================================================== */

:root {
  --bg: #FBFBFD;
  --ink: #1D1D1F;
  --accent: #36465e;
  --accent-hover: #2b3a4f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --faint: #b6b6bd;
  --line: #e3e3e8;

  --max: 1100px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; }

::selection { background: var(--accent); color: var(--bg); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.display { font-family: 'Inter Tight', sans-serif; }

/* Layout helpers ----------------------------------------------------------- */
.wrap { width: 100%; overflow-x: hidden; }

.container,
.container-narrow {
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container { max-width: var(--max); }
.container-narrow { max-width: 880px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.h2 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.header-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.header-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hero --------------------------------------------------------------------- */
.hero {
  padding-top: clamp(112px, 16vw, 170px);
  padding-bottom: clamp(84px, 12vw, 130px);
  scroll-margin-top: 80px;
}
.hero-content { max-width: 880px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero-title {
  font-weight: 600;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero-sub {
  margin: 34px 0 0;
  max-width: 600px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions { margin-top: 44px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--bg);
  padding: 15px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Generic content section -------------------------------------------------- */
.section {
  padding-top: clamp(72px, 11vw, 110px);
  padding-bottom: clamp(72px, 11vw, 110px);
}
.section-head { margin-bottom: 64px; max-width: 620px; }

/* What I do - cards -------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 56px;
}
.card {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.card-body {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.card-when {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}

/* Previously - logos ------------------------------------------------------- */
.eyebrow--prev { margin-bottom: 36px; }
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 48px;
}
.logo {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  color: var(--faint);
}
.footnote { margin: 40px 0 0; color: var(--muted-2); font-size: 15px; }
.footnote-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.footnote-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Where I fit - spec table */
.fit { margin: 0; max-width: 620px; }
.fit-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.fit-row:last-child { border-bottom: 1px solid var(--line); }
.fit dt {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fit dd { margin: 0; font-size: 16px; color: var(--ink); }
@media (max-width: 520px) {
  .fit-row { grid-template-columns: 1fr; gap: 4px; }
}

/* About */
.about h2 { margin-bottom: 28px; }
.about-body { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.about-body p {
  margin: 0;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

/* Testimonials ------------------------------------------------------------- */
.quotes {
  padding-top: clamp(88px, 14vw, 140px);
  padding-bottom: clamp(88px, 14vw, 140px);
}
.quote { margin: 0; }
.quote blockquote {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0;
}
.quote figcaption { margin-top: 26px; color: var(--muted); font-size: 15px; }
.quote figcaption a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.quote figcaption a:hover { border-bottom-color: currentColor; }
.quote--divider {
  margin-top: 88px;
  padding-top: 88px;
  border-top: 1px solid var(--line);
}

/* Contact ------------------------------------------------------------------ */
.contact {
  padding-top: clamp(88px, 13vw, 130px);
  padding-bottom: clamp(64px, 9vw, 90px);
  scroll-margin-top: 80px;
}
.contact-title {
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  max-width: 680px;
}
.contact-sub {
  margin: 0 0 40px;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 48px;
}
.contact-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.contact-links a.muted { color: var(--muted-2); }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 56px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer span { font-size: 13px; color: var(--muted-2); }

/* Scroll reveals ----------------------------------------------------------- */
/* .js-reveal is set in <head> only when JS runs, so content is never hidden
   for non-JS users or if main.js fails to load. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
              transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .cards .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 680px) {
  :root { --pad: 20px; }
  .section-head { margin-bottom: 40px; }
  .cards { gap: 40px; }
  .quote--divider { margin-top: 56px; padding-top: 56px; }
  .contact-links { margin-top: 36px; }
}

@media (max-width: 400px) {
  .logos { gap: 14px 28px; }
}

/* Accessibility ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-primary,
  .site-header { transition: none; }
}
