body { margin: 0; background: #FDFBF7; font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #C23B0A; text-decoration: none; }
a:hover { color: #B93400; }

/* ===== Responsive layer =====
   Desktop (1025px and up) is untouched: every rule below sits inside a
   max-width media query, except .m-burger, which only hides the menu button.
   Sections are matched by their existing inline styles so the desktop
   markup stays exactly as designed. Selectors use the styles as the page
   renders them (rgb() colours, 0px, minmax(0px, …)), not as typed. */
.m-burger { display: none; }

@media (max-width: 1024px) {
  [style*="min-height: 100vh"] { overflow-x: clip; }

  /* Navigation: links move into a menu */
  .m-nav { grid-template-columns: 1fr auto auto !important; gap: 12px !important; }
  .m-navlinks { display: none !important; }
  .m-navlinks.is-open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0 !important; padding: 4px clamp(20px, 4vw, 64px) 16px; background: #FDFBF7; border-bottom: 1px solid #E7E0D5; box-shadow: 0 16px 28px rgba(26,23,19,0.10); font-size: 14px !important; max-height: calc(100vh - 72px); overflow-y: auto; }
  .m-navlinks.is-open > :is(div, a.x-link) { padding: 16px 0 !important; border-bottom: 1px solid #E7E0D5 !important; }
  .m-navlinks.is-open > :is(div, a.x-link):last-child { border-bottom: 0 !important; }
  .m-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #1A1713; cursor: pointer; }
  .m-burger:focus-visible { outline: 2px solid #E8490F; outline-offset: 2px; }

  /* Side padding 64 -> 40 */
  [style*="padding: 96px 64px"], [style*="padding: 104px 64px"], [style*="padding: 112px 64px"],
  [style*="padding: 92px 64px"], [style*="padding: 88px 64px"], [style*="padding: 80px 64px"],
  [style*="padding: 30px 64px"], [style*="padding: 24px 64px"], [style*="padding: 64px 64px 72px"],
  [style*="padding: 72px 64px 104px"], [style*="padding: 0px 64px 68px"], [style*="padding: 56px 64px 64px"] {
    padding-left: 40px !important; padding-right: 40px !important;
  }

  /* Type scale */
  [style*="font-size: 60px"] { font-size: 48px !important; }
  [style*="font-size: 50px"] { font-size: 42px !important; }
  [style*="font-size: 48px"] { font-size: 40px !important; }
  [style*="font-size: 44px"] { font-size: 38px !important; }

  /* Credits bar under the hero */
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link) { padding: 22px 20px 24px !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link):first-child { padding-left: 40px !important; }

  /* Grids that need fewer columns */
  [style*="grid-template-columns: 1fr 1fr 1fr;"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: minmax(0px, 1.3fr) repeat(2, minmax(0px, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: 0.9fr 1.4fr"] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [style*="grid-template-columns: 120px 1fr 120px"] { grid-template-columns: 96px minmax(0, 1fr) 64px !important; gap: 24px !important; }
  [style*="grid-template-columns: 1fr 40px"] { gap: 10px !important; grid-template-columns: 1fr 28px !important; }
  [style*="max-width: 60%"] { max-width: 80% !important; }
  [style*="padding: 96px 64px; display: flex; flex-direction: column;"] { padding-top: 72px !important; padding-bottom: 72px !important; }

  /* "Seen at / Featured in" strip: label + list on each row */
  [style*="padding: 24px 64px; display: flex; flex-wrap: wrap; justify-content: space-between"] { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: baseline !important; gap: 10px 28px !important; }
}

@media (max-width: 767px) {
  /* Navigation */
  .m-nav { padding: 10px 20px !important; gap: 10px !important; }
  .m-nav > :is(div, a.x-link):first-child { font-size: 21px !important; }
  .m-nav > :is(div, a.x-link):nth-child(3) { font-size: 12.5px !important; padding: 11px 16px !important; }
  .m-navlinks.is-open { padding: 0 20px 12px; }

  /* Side padding 40 -> 20, vertical padding trimmed */
  [style*="padding: 96px 64px"], [style*="padding: 104px 64px"], [style*="padding: 112px 64px"],
  [style*="padding: 92px 64px"], [style*="padding: 88px 64px"], [style*="padding: 80px 64px"],
  [style*="padding: 30px 64px"], [style*="padding: 24px 64px"], [style*="padding: 64px 64px 72px"],
  [style*="padding: 72px 64px 104px"], [style*="padding: 0px 64px 68px"], [style*="padding: 56px 64px 64px"] {
    padding-left: 20px !important; padding-right: 20px !important;
  }
  [style*="padding: 96px 64px"], [style*="padding: 104px 64px"], [style*="padding: 112px 64px"],
  [style*="padding: 92px 64px"], [style*="padding: 88px 64px"], [style*="padding: 80px 64px"],
  [style*="padding: 64px 64px 72px"], [style*="padding: 72px 64px 104px"] {
    padding-top: 56px !important; padding-bottom: 56px !important;
  }
  [style*="padding: 92px 64px 56px"] { padding-bottom: 36px !important; }
  [style*="padding: 24px 64px 88px"] { padding-left: 20px !important; padding-right: 20px !important; padding-bottom: 56px !important; }

  /* Type scale */
  [style*="font-size: 130px"] { font-size: 100px !important; }
  [style*="font-size: 96px"] { font-size: 64px !important; }
  [style*="font-size: 88px"] { font-size: 64px !important; }
  [style*="font-size: 72px"] { font-size: 56px !important; }
  [style*="font-size: 60px"] { font-size: 36px !important; line-height: 1.08 !important; }
  [style*="font-size: 50px"] { font-size: 32px !important; }
  [style*="font-size: 48px"] { font-size: 32px !important; }
  [style*="font-size: 44px"] { font-size: 30px !important; }
  [style*="font-size: 40px"] { font-size: 30px !important; }
  [style*="font-size: 36px"] { font-size: 26px !important; }
  [style*="font-size: 34px"] { font-size: 25px !important; }
  [style*="font-size: 32px"] { font-size: 24px !important; }
  [style*="font-size: 30px"] { font-size: 24px !important; }
  [style*="font-size: 28px"] { font-size: 23px !important; }
  [style*="font-size: 27px"] { font-size: 22px !important; }
  [style*="font-size: 26px"] { font-size: 22px !important; }
  [style*="font-size: 23px"] { font-size: 20px !important; }

  /* Every two- and three-column layout stacks */
  [style*="grid-template-columns: 1fr 1fr;"], [style*="grid-template-columns: 1fr 1fr 1fr;"],
  [style*="grid-template-columns: 1.05fr 1fr"], [style*="grid-template-columns: 1fr 1.05fr"],
  [style*="grid-template-columns: 1.1fr 1fr"], [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 0.9fr 1.4fr"], [style*="grid-template-columns: minmax(0px, 5fr) minmax(0px, 7fr)"],
  [style*="grid-template-columns: minmax(0px, 1.2fr) minmax(0px, 1fr)"], [style*="grid-template-columns: minmax(0px, 1.3fr) repeat(2, minmax(0px, 1fr))"],
  [style*="grid-template-columns: repeat(3, minmax(0px, 1fr))"], [style*="grid-template-columns: 1fr 1fr 1.3fr auto"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [style*="gap: 72px"] { gap: 44px !important; }
  [style*="gap: 64px"] { gap: 32px !important; }
  [style*="gap: 56px"] { gap: 40px !important; }
  [style*="margin-top: 72px"] { margin-top: 48px !important; }
  [style*="margin-bottom: 64px"] { margin-bottom: 40px !important; }

  /* Home hero: quote on cream, then Ben on orange */
  [style*="height: clamp(460px, 60vh, 580px)"] { height: auto !important; min-height: 460px; }
  [style*="position: absolute; inset: 0px; display: grid"] { position: relative !important; inset: auto !important; grid-template-columns: minmax(0, 1fr) !important; }
  [style*="padding: 48px clamp(32px, 5vw, 96px)"] { padding: 40px 20px 36px !important; gap: 18px !important; }
  [style*="position: absolute; inset: 0px; display: grid"] > :is(div, a.x-link):last-child { height: 360px; }
  [style*="max-width: min(560px, 52%)"] { max-width: 100% !important; padding: 32px 20px !important; }

  /* Credits bar: 2 x 2 */
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link),
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link):first-child { padding: 18px 20px 20px !important; border-right: 0 !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link):nth-child(odd) { border-right: 1px solid #3A342C !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link):nth-child(-n+2) { border-bottom: 1px solid #3A342C; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr))"] > :is(div, a.x-link) > :is(div, a.x-link):last-child { font-size: 19px !important; }

  /* "Seen at / Featured in" strip */
  [style*="padding: 24px 64px; display: flex; flex-wrap: wrap; justify-content: space-between"] { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 8px !important; white-space: normal !important; padding-top: 22px !important; padding-bottom: 22px !important; }
  [style*="padding: 24px 64px; display: flex; flex-wrap: wrap; justify-content: space-between"] > :is(div, a.x-link):nth-child(3) { margin-top: 10px; }
  [style*="padding: 24px 64px; display: flex; flex-wrap: wrap; justify-content: space-between"] > :is(div, a.x-link):nth-child(even) { gap: 4px 18px !important; }

  /* Photos beside text */
  [style*="min-height: 560px"] { min-height: 320px !important; }
  [style*="min-height: 520px"] { min-height: 300px !important; }
  [style*="min-height: 460px"] { min-height: 300px !important; }
  [style*="position: sticky; top: 74px"] { position: relative !important; top: auto !important; height: 320px !important; }
  [style*="min-height: 520px; overflow: hidden; display: flex"] { min-height: 440px !important; }
  [style*="max-width: 60%"] { max-width: 100% !important; padding: 0 20px 40px !important; }
  [style*="linear-gradient(to top, rgba(20, 16, 12, 0.88)"] { background: linear-gradient(to top, rgba(20, 16, 12, 0.92) 0%, rgba(20, 16, 12, 0.72) 60%, rgba(20, 16, 12, 0.3) 100%) !important; }

  /* Lists and cards */
  [style*="grid-template-columns: 44px 1fr 24px"] { grid-template-columns: 32px minmax(0, 1fr) 16px !important; gap: 12px !important; padding: 20px 0 !important; }
  [style*="grid-template-columns: 120px 1fr 120px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; padding: 24px 0 !important; }
  [style*="grid-template-columns: 120px 1fr 120px"] > :is(div, a.x-link):last-child { text-align: left !important; }
  [style*="grid-row: span 2"] { grid-row: auto !important; padding: 32px 24px !important; }
  [style*="grid-template-columns: 1fr 40px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 6px !important; justify-items: center; margin-bottom: 6px; }
  [style*="grid-template-columns: 1fr 40px"] > :is(div, a.x-link):first-child { justify-self: stretch; min-height: 0 !important; }
  [style*="font-size: 28px; color: rgb(232, 73, 15); text-align: center"] { transform: rotate(90deg); line-height: 1; }
  [style*="min-height: 150px; flex-direction"], [style*="min-height: 150px;"] { min-height: 0 !important; }
  [style*="min-height: 300px"] { min-height: 240px !important; }
  [style*="min-height: 260px"] { min-height: 0 !important; }
  [style*="min-height: 230px"] { min-height: 0 !important; }
  [style*="display: flex; gap: 14px;"] { flex-wrap: wrap; }
  [style*="padding: 32px 30px 28px"], [style*="padding: 30px 28px"] { padding-left: 22px !important; padding-right: 22px !important; }

  /* Newsletter + footer */
  [style*="grid-template-columns: 1fr 1fr 1.3fr auto"] > :is(div, a.x-link):last-child { text-align: center; }
  [style*="padding: 30px 64px; display: flex; justify-content: space-between"] { flex-direction: column; gap: 14px; }
  [style*="padding: 30px 64px; display: flex; justify-content: space-between"] > :is(div, a.x-link):last-child { gap: 0 20px !important; }
  [style*="padding: 30px 64px; display: flex; justify-content: space-between"] > :is(div, a.x-link):last-child > * { padding: 10px 0; }
}

@media (max-width: 400px) {
  .m-nav { padding: 10px 16px !important; gap: 8px !important; }
  .m-nav > :is(div, a.x-link):first-child { font-size: 19px !important; }
  .m-nav > :is(div, a.x-link):nth-child(3) { font-size: 12px !important; padding: 10px 12px !important; }
  .m-navlinks.is-open { padding: 0 16px 12px; }
  [style*="clamp(32px, 3.3vw, 62px)"] { font-size: 32px !important; }
  [style*="font-size: 60px"] { font-size: 32px !important; }
  [style*="padding: 48px clamp(32px, 5vw, 96px)"] { padding: 36px 16px 32px !important; }
}
@media (max-width: 1024px) {
  [style*="padding: 36px 64px"] { padding-left: 40px !important; padding-right: 40px !important; }
}
@media (max-width: 767px) {
  [style*="padding: 36px 64px"] { padding: 28px 20px !important; }
}
/* Talk cards: number, title, description and tag line up across each row */
.talk-grid > a { display: grid !important; grid-row: span 4; grid-template-rows: subgrid; row-gap: 16px !important; min-height: 0 !important; align-content: start; }
.talk-grid > a > :nth-child(2) { align-self: start; }
.talk-grid > a > :nth-child(3) { align-self: start; }
.talk-grid > a > :nth-child(4) { align-self: end; }
/* Press cards: every Read link sits at the bottom of its card so they line up across each row */
.press-grid div:has(> a):last-child { margin-top: auto; padding-top: 4px; }
.press-grid > sc-for { display: contents; }
.press-grid > :is(div, a.x-link), .press-grid > sc-for > :is(div, a.x-link) { display: grid !important; grid-row: span 4; grid-template-rows: subgrid; row-gap: 16px !important; align-content: start; }
/* Seen at / Featured in: each label stays with its own list and wraps as one unit */
@media (max-width: 767px) {
  .proof-bar { flex-direction: column; align-items: flex-start !important; gap: 14px !important; white-space: normal !important; padding-top: 22px !important; padding-bottom: 22px !important; }
  .proof-group { flex-direction: column; align-items: flex-start !important; gap: 6px !important; flex: 1 1 auto !important; }
  .proof-list { flex-wrap: wrap; gap: 4px 18px !important; }
}

/* ===== Added for the live site (not in the canvas) ===== */
html, body { margin: 0; }
a:focus-visible, .f-btn:focus-visible, .f-in:focus-visible { outline: 2px solid #E8490F; outline-offset: 2px; }
.f-in { width: 100%; box-sizing: border-box; margin: 0; font-family: inherit; line-height: inherit; outline: none; -webkit-appearance: none; appearance: none; }
.f-in::placeholder { color: inherit; opacity: 1; }
textarea.f-in { resize: vertical; display: block; }
.f-btn { border: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; text-align: center; }
form[name="contact"] .f-in:not(:placeholder-shown) { color: #FDFBF7 !important; }
form[name="newsletter"] .f-in:not(:placeholder-shown) { color: #1A1713 !important; }

/* ===== Insights post pages ===== */
.post { max-width: 720px; margin: 0 auto; padding: 72px 64px 96px; }
.post-back { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.post-meta { margin-top: 44px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #C23B0A; }
.post-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 52px; line-height: 1.06; letter-spacing: -0.015em; margin: 16px 0 0; color: #1A1713; text-wrap: balance; }
.post-source { margin: 28px 0 0; font-weight: 700; }
.post-body { margin-top: 40px; font-size: 17px; line-height: 1.65; color: #3D3A35; overflow-wrap: anywhere; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin: 0 0 1.1em; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { font-family: 'Newsreader', serif; font-weight: 500; color: #1A1713; line-height: 1.2; margin: 1.6em 0 0.5em; }
.post-body h1, .post-body h2 { font-size: 30px; } .post-body h3 { font-size: 24px; } .post-body h4 { font-size: 20px; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body img { display: block; width: 100%; height: auto; border-radius: 4px; margin: 8px 0 28px; background: #F4EFE6; }
.post-body figure { margin: 0 0 28px; } .post-body figure img { margin-bottom: 8px; }
.post-body figcaption { font-size: 14px; color: #6B645B; }
.post-body blockquote { border-left: 2px solid #E8490F; padding-left: 20px; font-family: 'Newsreader', serif; font-size: 21px; color: #1A1713; }
.post-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 28px; }
.post-gallery img { margin: 0; }
.post-embed { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 28px; background: #1A1713; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video { display: block; width: 100%; max-height: 80vh; margin: 8px 0 28px; background: #1A1713; border-radius: 4px; }
.post-code { margin: 8px 0 28px; } .post-code iframe { max-width: 100%; }
.post-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #E7E0D5; font-weight: 600; font-size: 14px; }
.post-end .post-cta, .post-end .post-cta:hover { background: #E8490F; color: #fff; padding: 14px 26px; border-radius: 100px; text-decoration: none; }
@media (max-width: 767px) {
  .post { padding: 40px 20px 64px; }
  .post-meta { margin-top: 28px; }
  .post-title { font-size: 34px; }
  .post-body { margin-top: 28px; font-size: 16px; }
  .post-gallery { grid-template-columns: 1fr; }
}

/* ===== Site Hub fixes ===== */
/* Menu items and buttons are real links now; keep the look they had as boxes */
a.x-link { display: block; color: inherit; text-decoration: none; }
a.x-link:hover { color: inherit; text-decoration: none; }
/* Page headlines are <h1> now; keep the look they had */
h1.x-h1 { margin: 0; font: inherit; }
/* Phones: no text below 12px */
@media (max-width: 767px) {
  [style*="font-size: 10px"], [style*="font-size: 10.5px"], [style*="font-size: 11px"], [style*="font-size: 11.5px"] { font-size: 12px !important; }
}
/* Insights: older posts, folded away under the main list */
details.older-posts { margin-top: 8px; }
details.older-posts > summary { cursor: pointer; list-style: none; padding: 28px 0; border-top: 1px solid #E7E0D5; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: #C23B0A; }
details.older-posts > summary::-webkit-details-marker { display: none; }
details.older-posts > summary::after { content: " ↓"; }
details.older-posts[open] > summary::after { content: " ↑"; }
