/* Sixes and States — site styles
   Built to map onto Ghost's built-in Source theme (Starter plan):
   --ghost-accent-color  -> Settings > Design > Brand > Accent color (#0B7A47)
   --bg                  -> Source "Site background color" (#FAF8F3)
   Lora / Manrope        -> Brand > Typography > Heading font / Body font
   Classes starting kg-  -> the matching Ghost editor cards (callout, button, header)
*/
:root {
  --ghost-accent-color: #0B7A47;
  --green: #0B7A47;
  --green-deep: #08502F;
  --mint: #E7F2EC;
  --mint-line: #C9E2D4;
  --ink: #0E0E0E;
  --text: #1C2420;
  --muted: #59625D;
  --line: #E5E1D7;
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --wrap: 1120px;
  --read: 720px;
  --radius: 10px;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Stitch: the ball-seam divider used across the brand */
.stitch { height: 10px; border-top: 2px dashed var(--mint-line); border-bottom: 2px dashed var(--mint-line); opacity: .9; }
.masthead .stitch, .site-footer .stitch { border-color: rgba(255,255,255,.28); }

/* Header / navigation (Source: "Logo on the left") */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--green); font-style: italic; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Buttons (Ghost button card) */
.btn, .kg-btn { display: inline-block; background: var(--green); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 2px solid var(--green); cursor: pointer; line-height: 1.2; }
.btn:hover, .kg-btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--mint); color: var(--green-deep); }
.btn-light { background: #fff; color: var(--green-deep); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--green-deep); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }

/* Masthead (Source header style: "Landing", header color: accent) */
.masthead { background: var(--green); color: #fff; }
.masthead-inner { padding: 84px 24px 64px; text-align: center; }
.masthead .eyebrow { color: #CFE8DA; }
.masthead h1 { color: #fff; max-width: 820px; margin: 0 auto 20px; }
.masthead h1 em { font-style: italic; color: #DFF1E6; }
.masthead p { color: #E6F2EB; font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; }
.masthead .small { font-size: .9rem; color: #CFE8DA; margin: 14px auto 0; }
.masthead .small a { color: #fff; }

/* Signup form (Ghost signup card / portal) */
.signup { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 10px 16px; color: var(--ink); }
.signup input:focus { outline: none; }
.signup:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.signup .btn { padding: 11px 20px; }
.form-note { font-size: .88rem; margin-top: 10px; min-height: 1.2em; }
.masthead .form-note { color: #E6F2EB; }

/* Proof numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; }
.followed { text-align: center; color: var(--muted); margin: 26px 0 0; font-size: .98rem; }
.followed strong { color: var(--ink); }

/* Logo wall */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.logos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--muted); font-size: .8rem; text-align: center; transition: border-color .15s; }
.logos a:hover { border-color: var(--green); }
.logos img { max-height: 52px; max-width: 140px; width: auto; object-fit: contain; }
.logos .wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.2; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .text-link { margin-top: auto; }
.tag { display: inline-block; align-self: flex-start; background: var(--mint); color: var(--green-deep); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.card.featured { border: 2px solid var(--green); }

/* Callout (Ghost callout card) */
.kg-callout-card { background: var(--mint); border-radius: var(--radius); padding: 22px 26px; color: var(--green-deep); margin: 0 0 1.5em; }
.kg-callout-card p:last-child { margin-bottom: 0; }

/* Case study */
.case { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; }
.case-numbers { background: var(--mint); padding: 40px; display: grid; gap: 22px; align-content: center; }
.case-numbers b { display: block; font-family: var(--font-head); font-size: 2.8rem; line-height: 1; color: var(--green-deep); font-weight: 600; }
.case-numbers span { font-size: .92rem; color: var(--green-deep); }
.case-body { padding: 40px; }
.case-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.case-body p { color: var(--muted); }

/* Prose pages (Ghost page content) */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--green); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { font-size: .9rem; font-weight: 700; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--text); }
.jump a:hover { border-color: var(--green); color: var(--green); }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.masthead-list { display: grid; gap: 12px; }
.person { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.person b { display: block; color: var(--ink); }
.person span { color: var(--muted); font-size: .95rem; }

/* Contact form */
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid #D6D2C7; border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { justify-self: start; }
.form .form-note { color: var(--muted); margin: 0; }

/* Footer (Source: header and footer color = accent) */
.site-footer { background: var(--green-deep); color: #D7EADF; margin-top: 0; }
.footer-cta { padding-top: 56px; padding-bottom: 44px; text-align: center; }
.footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.footer-cta p { color: #CFE3D7; margin: 0 auto 22px; max-width: 560px; }
.footer-cta .form-note { color: #CFE3D7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; font-family: var(--font-body); }
.footer-grid a { color: #D7EADF; text-decoration: none; display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid .logo { color: #fff; display: inline-block; margin-bottom: 8px; }
.footer-grid .logo span { color: #9FD3B5; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; padding-bottom: 28px; font-size: .85rem; color: #A9C9B6; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-base a { color: #D7EADF; }

/* Mobile */
@media (max-width: 860px) {
  .cards, .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding: 52px 0; }
  .nav { flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; padding-bottom: 12px; min-height: 0; }
  .nav .btn { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .masthead-inner { padding: 56px 16px 44px; }
  .signup { flex-direction: column; border-radius: 16px; padding: 8px; }
  .signup .btn { width: 100%; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat { padding: 16px 12px; }
  .stat b { font-size: 1.7rem; }
  .stat span { font-size: .8rem; display: block; line-height: 1.35; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .case-numbers, .case-body { padding: 28px; }
}

/* "Followed by" logo row — sits at the bottom of the green masthead.
   On Ghost: an HTML card plus this CSS in Settings > Code injection. */
.followed-strip { background: var(--green-deep); padding: 24px 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.masthead .followed-label { max-width: none; text-align: center; line-height: 1.5; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A9D6BC; }
.followed-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px 52px; max-width: 1240px; }
.followed-logos img { height: 58px; width: auto; max-width: 190px; object-fit: contain; }

/* Photo gallery — swipe on phones, arrows on desktop */
.gallery-section { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.gallery-head h2 { margin: 0; max-width: 640px; }
.gallery-nav { display: flex; gap: 10px; flex-shrink: 0; }
.gallery-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-size: 1.2rem; font-weight: 700; cursor: pointer; line-height: 1; }
.gallery-btn:hover { background: var(--green); color: #fff; }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); scroll-padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 3px solid var(--mint-line); outline-offset: 4px; }
.shot { margin: 0; flex: 0 0 auto; width: calc(440px * var(--ar, .6)); scroll-snap-align: start; }
.shot img { width: 100%; height: auto; aspect-ratio: var(--ar, .6); object-fit: cover; border-radius: 14px; background: var(--mint); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
@media (max-width: 640px) {
  .followed-strip { padding: 20px 16px 24px; }
  .followed-logos { gap: 20px 40px; }
  .followed-logos img { height: 44px; max-width: 140px; }
  .gallery-section { padding: 48px 0 40px; }
  .gallery-nav { display: none; }
  .gallery { gap: 12px; padding: 0 16px; scroll-padding: 0 16px; }
  .shot { width: min(calc(360px * var(--ar, .6)), 86vw); }
  .shot img { height: 360px; aspect-ratio: auto; }
}

/* Wide "Work with us" / Reach Audit card */
.work-card { margin-top: 16px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.work-card p { margin-bottom: 0; max-width: 680px; }
.work-card .btn { flex-shrink: 0; }
@media (max-width: 640px) { .work-card { flex-direction: column; align-items: flex-start; } }
