/* =========================================================
   Cohesion fixes — 2026-10-03
   Loaded after styles-reference-redesign-updated.css (and after
   each case page's inline styles) so these rules take priority.
   ========================================================= */

/* Hero headline: balanced lines instead of six forced breaks */
.hero-copy-wrap h1{
  font-size:clamp(42px,4.2vw,64px);
  margin:22px 0 20px;
  max-width:640px;
  text-wrap:balance;
}
@media(min-width:761px){.hero{padding-top:40px!important}}

/* Header on small screens: keep the name and Let's Talk visible */
@media(max-width:560px){
  header.nav.shell .nav-cta{
    display:inline-flex!important;
    align-items:center;
    padding:11px 14px!important;
    white-space:nowrap;
  }
  header.nav.shell .nav-cta span{margin-left:8px}
}
@media(max-width:440px){
  header.nav.shell .brand{gap:16px!important}
  header.nav.shell .brand-copy{display:flex!important}
  header.nav.shell .brand-copy strong{font-size:11px;letter-spacing:.14em}
}

/* Featured Systems: readable text on the dark band + visible case-study link */
.featured-thumb-copy .featured-case-label,
.featured-thumb-copy .featured-type{font-size:10px!important}
.featured-thumb-copy .featured-analysis span{font-size:9px!important;color:#7ea0ee!important}
.featured-thumb-copy .featured-analysis p{font-size:13px!important;color:#b9c0c4!important}
.featured-read-link{display:inline-block}
.featured-read-link:hover{background:var(--sage-dark)}

/* Process: icons share one height so the step titles line up */
.step-icon{
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:22px;
}

/* Contact buttons: square, matching every other button on the site */
.conversation-btn{
  border-radius:0!important;
  padding:15px 20px!important;
  font-size:9px!important;
  min-width:230px;
}
.conversation-btn:hover{transform:none!important}
.linkedin-conversation-btn{
  background:transparent!important;
  color:var(--ink)!important;
  border:1px solid var(--line)!important;
}
.linkedin-conversation-btn:hover{
  border-color:var(--sage)!important;
  color:var(--sage)!important;
  box-shadow:none!important;
}

/* Case-study pages: larger small print */
.case-collection-nav,
.case-bottom a,
.compact-eyebrow,
.story-kicker{font-size:11px!important}
.compact-meta span,
.workflow-caption{font-size:10px!important}
.disclosure{font-size:12px!important}
.case-bottom{flex-wrap:wrap}
@media(max-width:760px){
  .case-bottom{justify-content:flex-start;gap:16px 28px}
}

/* Hero: problem subline + audience line */
.hero-copy-wrap .hero-copy{
  margin:22px 0 0;
  max-width:540px;
  font-size:16px;
  line-height:1.7;
  color:#4f5558;
}
.hero-audience{
  margin:16px 0 0;
  max-width:540px;
  padding-left:14px;
  border-left:2px solid var(--sage);
  font-size:13px;
  line-height:1.6;
  color:var(--muted);
}
.hero-copy-wrap .hero-actions{margin-top:30px}
@media(max-width:760px){
  .hero-copy-wrap .hero-copy{font-size:15px}
}

/* =========================================================
   Proof of Work — real n8n canvases
   ========================================================= */
.proof-intro{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:clamp(32px,6vw,96px);
  align-items:start;
  margin-top:44px;
}
.proof-intro>p{
  margin:0;
  max-width:640px;
  font-size:16px;
  line-height:1.75;
  color:#4f5558;
}
.proof-meta{margin:0;border-top:1px solid var(--line)}
.proof-meta>div{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.proof-meta dt{font-size:9px;font-weight:600;letter-spacing:.16em;color:var(--sage-dark);padding-top:2px}
.proof-meta dd{margin:0;font-size:13px;color:var(--ink)}
.proof-list{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(48px,6vw,80px);margin-top:clamp(48px,6vw,72px)}
.proof-item{min-width:0}
.proof-frame{
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f6f6f5;
  box-shadow:0 18px 50px rgba(17,26,29,.07);
  cursor:zoom-in;
}
.proof-frame img{display:block;width:100%;height:auto;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.proof-frame:hover img{transform:scale(1.01)}
.proof-caption{
  display:grid;
  grid-template-columns:48px minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(16px,3vw,48px);
  align-items:start;
  margin-top:22px;
}
.proof-caption span{
  display:inline-grid;place-items:center;width:30px;height:30px;
  border:1px solid var(--line);border-radius:50%;
  font-size:9px;color:var(--ink);
}
.proof-caption h3{margin:2px 0 0;font-family:var(--serif);font-weight:400;font-size:clamp(18px,1.7vw,24px);line-height:1.3;letter-spacing:-.02em}
.proof-caption p{margin:0;font-size:14px;line-height:1.75;color:var(--muted)}
.proof-foot{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  margin-top:clamp(40px,5vw,64px);padding-top:22px;border-top:1px solid var(--line);
}
.proof-foot p{margin:0;font-size:12px;line-height:1.6;color:var(--muted);max-width:620px}
.disclosure a{color:var(--sage-dark);font-weight:600;white-space:nowrap}
@media(max-width:900px){
  .proof-intro{grid-template-columns:1fr}
  .proof-caption{grid-template-columns:40px 1fr}
  .proof-caption p{grid-column:2}
}
/* Phones: keep the canvas legible by letting it scroll sideways */
@media(max-width:760px){
  .proof-frame{overflow-x:auto;-webkit-overflow-scrolling:touch;cursor:default}
  .proof-frame img{width:auto;max-width:none;height:280px}
  .proof-frame:hover img{transform:none}
  .proof-item .proof-frame::after{content:none}
  .proof-caption{margin-top:16px}
  .proof-caption p{font-size:14px}
}

/* Proof of Work — multiple builds */
.proof-lede{margin:28px 0 0;max-width:680px;font-size:16px;line-height:1.75;color:#4f5558}
.proof-build-head{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;margin-top:clamp(48px,6vw,72px);padding-top:22px;border-top:1px solid var(--line)}
.proof-build-next{margin-top:clamp(72px,9vw,120px)}
.proof-build-label{font-size:9px;font-weight:600;letter-spacing:.18em;color:var(--sage-dark)}
.proof-build-head h3{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.4vw,34px);letter-spacing:-.03em}
.proof-build-head + .proof-intro{margin-top:24px}

/* Small canvases: keep them sharp instead of stretching to full width */
.proof-frame-narrow{max-width:1100px}
.workflow-hero-narrow{width:min(1180px,calc(100% - 36px))}
@media(max-width:760px){.proof-frame-narrow img{height:240px}}

/* =========================================================
   Final polish — readable minimum sizes on the homepage
   ========================================================= */
.nav nav,header.nav.shell .nav-links a{font-size:10px!important}
.brand-copy small{font-size:8px}
.eyebrow,.section-label,.hero-title{font-size:11px}
.button,.nav-cta{font-size:10px}
.visual-note{font-size:9px}
.card-copy p{font-size:13px;line-height:1.65}
.steps p{font-size:13px;line-height:1.7}
.steps h3{font-size:18px}
.journey-stat span,.journey-company{font-size:10px}
.journey-path li{font-size:13px}
.position-manifesto{font-size:clamp(12px,1.1vw,14px)}
.lead-flow{font-size:10px}
.form-heading small{font-size:9px}
.lead-form label{font-size:10px}
.lead-form input,.lead-form select,.lead-form textarea{font-size:14px}
.form-note,.form-status{font-size:11px!important}
.contact p{font-size:15px}
.footer>div:not(.brand):not(.copyright){font-size:12px}
.footer>div strong{font-size:10px}
.copyright{font-size:10px}
.featured-thumb-copy .featured-analysis span{font-size:10px!important}
.proof-meta dt,.proof-build-label{font-size:10px}

/* Process icons (inline SVG) */
.step-icon{color:var(--sage-dark)}
.step-icon svg{display:block}

/* Floating scroll control steps aside near the contact form */
.portfolio-scroll-control.is-near-contact{
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateX(-50%) translateY(12px);
}

/* Working together — engagement model */
.engage{margin-top:clamp(56px,7vw,96px);padding:clamp(32px,4vw,52px);background:#fafaf8;border:1px solid var(--line)}
.engage-head{display:flex;align-items:baseline;gap:22px;flex-wrap:wrap}
.engage-label{font-size:11px;font-weight:600;letter-spacing:.2em;color:var(--sage-dark)}
.engage-head h3{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(26px,2.6vw,38px);letter-spacing:-.03em}
.engage-head h3 em{color:var(--sage-dark)}
.engage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,56px);margin:34px 0 34px}
.engage-col{border-top:1px solid var(--line);padding-top:18px}
.engage-col>span{display:block;font-size:10px;font-weight:600;letter-spacing:.16em;color:var(--sage-dark);margin-bottom:12px}
.engage-col h4{margin:0 0 8px;font-family:var(--serif);font-weight:400;font-size:20px;letter-spacing:-.02em}
.engage-col p{margin:0 0 18px;font-size:14px;line-height:1.7;color:var(--muted)}
.engage-col ul{margin:4px 0 0;padding:0;list-style:none}
.engage-col li{position:relative;padding:8px 0 8px 22px;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink)}
.engage-col li:before{content:"";position:absolute;left:2px;top:15px;width:10px;height:6px;border-left:2px solid var(--sage);border-bottom:2px solid var(--sage);transform:rotate(-45deg)}
@media(max-width:860px){.engage-grid{grid-template-columns:1fr}}

/* =========================================================
   Proof of Work — compact grid (full canvases live on case pages)
   ========================================================= */
.proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,32px);margin-top:clamp(36px,4vw,52px)}
.proof-card{display:flex;flex-direction:column;background:#fafaf8;border:1px solid var(--line);border-radius:16px;overflow:hidden;color:var(--ink);transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.proof-card:hover{transform:translateY(-4px);border-color:#c9d6f1;box-shadow:0 22px 50px rgba(17,26,29,.08)}
.proof-card-img{aspect-ratio:16/8;overflow:hidden;background:#f2f3f2;border-bottom:1px solid var(--line)}
.proof-card-img img{display:block;width:100%;height:100%;object-fit:cover;object-position:left center;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.proof-card:hover .proof-card-img img{transform:scale(1.03)}
.proof-card-body{display:flex;flex-direction:column;gap:10px;padding:22px 24px 24px;flex:1}
.proof-card-label{font-size:10px;font-weight:600;letter-spacing:.16em;color:var(--sage-dark)}
.proof-card h3{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(20px,1.8vw,26px);letter-spacing:-.02em}
.proof-card p{margin:0;font-size:14px;line-height:1.7;color:var(--muted);flex:1}
.proof-card b{margin-top:6px;font-size:10px;font-weight:600;letter-spacing:.14em;color:var(--ink)}
.proof-card b span{display:inline-block;transition:transform .25s ease}
.proof-card:hover b span{transform:translateX(4px)}
@media(max-width:760px){.proof-grid{grid-template-columns:1fr}}

/* Case pages — "the build" section */
.case-jump{display:inline-block;margin-top:22px;font-size:11px;font-weight:600;letter-spacing:.14em;color:var(--sage-dark)}
.case-build{padding:clamp(24px,4vw,48px) 0 clamp(40px,5vw,64px);border-top:1px solid var(--line)}
.case-build-note{margin:10px 0 0;color:var(--muted);font-size:14px}
.case-build .proof-list{margin-top:clamp(28px,4vw,44px)}
.case-build .proof-caption{grid-template-columns:40px minmax(0,.9fr) minmax(0,1.1fr)}
#build{scroll-margin-top:96px}

/* Contact — location and availability */
.contact .contact-location{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-family:var(--sans);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--sage-dark);line-height:1.5}
.contact .contact-location svg{flex:0 0 auto;color:var(--sage)}

/* Contact form honeypot — hidden from people, visible to bots */
.lead-form .hp-field{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* What I Build — problem-led cards */
.project-grid .card-copy{display:flex;flex-direction:column;height:auto}
.project-grid .card-copy p{flex:1}
.project-grid article{display:flex;flex-direction:column}
.project-grid article .card-copy{flex:1}
.work-tools{margin:28px 0 0;font-size:12px;letter-spacing:.04em;color:var(--muted)}

/* Position — journey leads into the present role */
.journey-label{font-size:10px;letter-spacing:.18em;font-weight:600;color:var(--sage-dark);margin-bottom:18px}
.journey-path li.journey-now{color:var(--sage-dark);font-weight:600;border-bottom:0;position:relative;margin-top:10px;padding-top:16px;border-top:1px dashed #c8d1e3}
.journey-path li.journey-now em{margin-left:auto;font-style:normal;font-size:9px;letter-spacing:.16em;color:#fff;background:var(--sage);padding:4px 8px}
