/* SDS additions on top of the Inkwell stylesheet (assets/inkwell.css) */
.wordmark img{height:38px;width:auto;display:block}
.footer-brand img{height:40px;width:auto;display:block}
.hero-proof{font-size:var(--fs-sm);color:var(--muted-ink);margin-top:18px}
.steps{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:18px}
.steps li{display:grid;grid-template-columns:34px 1fr;gap:14px;padding-top:16px;border-top:1px solid var(--line)}
.steps li>b{font-family:Manrope,"Manrope Fallback",sans-serif;font-size:var(--fs-sm);color:var(--red);padding-top:3px}
.steps h4{font-family:Manrope,"Manrope Fallback",sans-serif;font-size:var(--fs-lg);font-weight:600;letter-spacing:-.02em;margin:0}
.steps p{font-size:var(--fs-sm);line-height:1.7;color:var(--muted-ink);margin:6px 0 0}
.team-duo{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-left:20px}
.team-duo figure{margin:0}
.team-duo img{width:100%;aspect-ratio:.9;object-fit:cover;display:block}
.team-duo figcaption{font-size:var(--fs-2xs);letter-spacing:.06em;text-transform:uppercase;color:var(--muted-ink);padding-top:10px}
.team-duo figcaption b{display:block;color:var(--ink);font-family:Manrope,"Manrope Fallback",sans-serif;font-size:var(--fs-sm);letter-spacing:0;text-transform:none}
.team-section p+p{margin-top:14px}
.cta-form{display:grid;gap:14px;margin-top:22px;max-width:520px}
.cta-form label{display:grid;gap:6px;font-size:var(--fs-sm);letter-spacing:.04em;text-transform:uppercase}
.cta-form input,.cta-form select,.cta-form textarea{font:inherit;font-size:var(--fs-base);text-transform:none;letter-spacing:0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);color:var(--ink)}
.cta-form input:focus,.cta-form select:focus,.cta-form textarea:focus{outline:2px solid var(--red);outline-offset:1px}
.cta-form .hp{position:absolute;left:-9999px}
.cta-form button{border:0;cursor:pointer;justify-self:start}
.cta-form button:disabled{opacity:.6;cursor:wait}
[data-form-status]{font-size:var(--fs-sm);font-weight:600;margin:0}
[data-form-status].text-green{color:#1a7f4b}
[data-form-status].text-red-600{color:var(--red)}
@media(max-width:700px){.team-duo{margin-left:0}}
/* SDS headline is longer than the template's, so scale it down and let it wrap */
.hero-main h1{font-size:var(--fs-display)}
.hero-main h1>span{white-space:normal}
.hero-copy{max-width:440px}
.hero-copy p{font-size:var(--fs-sm);line-height:1.75}
.hero-image img{max-height:300px;object-fit:cover}
@media(max-width:700px){.hero-main h1{font-size:clamp(2.125rem,10vw,3.25rem)}}
.footer-brand img{background:var(--paper);padding:6px 10px;border-radius:var(--radius)}
.footer-brand{display:inline-block}.footer-brand+p{margin-top:18px}
/* hero illustration */
.hero-image .hero-art{display:block;width:100%;height:auto;max-height:340px}

/* ---- hero fits the first screen at 100% zoom (laptops and desktops) ---- */
:root{--hdr:100px}
@media(max-width:800px){:root{--hdr:80px}}
@media(min-width:801px){
  .home-hero{display:flex;flex-direction:column;height:calc(100vh - var(--hdr));height:calc(100svh - var(--hdr));min-height:470px;padding-top:clamp(16px,4vh,56px);overflow:hidden}
  .hero-topline{flex:0 0 auto;margin-bottom:clamp(8px,2.2vh,26px)}
  .hero-main{flex:0 0 auto;padding-bottom:clamp(12px,3vh,45px)}
  .hero-main h1{font-size:clamp(30px,min(5.2vw,9.2vh),76px)}
  .hero-copy p{font-size:clamp(12.5px,1.9vh,15px);line-height:1.7;margin-bottom:clamp(12px,2.4vh,24px)}
  .hero-copy .button{margin-top:0}
  .hero-proof{margin-top:clamp(8px,1.6vh,18px)}
  .hero-image{flex:1 1 auto;min-height:0;height:auto;background:#f3f1ec;display:flex}
  .hero-image .hero-art{flex:1;width:100%;height:100%;max-height:none;min-height:0}
}

/* ---- hero fit, round 2: calmer headline, slimmer header on short screens, no caption overlap ---- */
@media(min-width:801px) and (max-height:820px){:root{--hdr:76px}.site-header{height:76px}}
@media(min-width:801px){
  .hero-main h1{font-size:clamp(28px,min(4.4vw,7.4vh),68px)}
  .hero-copy p{font-size:clamp(12.5px,1.8vh,15px)}
  .home-hero{padding-top:clamp(14px,3.4vh,48px)}
  .hero-main{padding-bottom:clamp(10px,2.4vh,40px)}
  .hero-image{padding:0 0 clamp(8px,2vh,22px);box-sizing:border-box}
  .hero-image .image-caption{display:none}
}

/* ---- phones: the three-panel illustration is too small to read, so show the workflow panel at full size ---- */
@media(max-width:600px){
  .hero-image{background:#f3f1ec;overflow:hidden;height:auto}
  .hero-image .hero-art{display:block;width:360%;max-width:none;height:auto;max-height:none;margin-left:calc(-247.2% + 14px)}
}
.hero-image .image-caption{display:none}
@media(max-width:600px){main h2 br,.growth-cta h2 br{display:none}}
/* small phones: let the closing form shrink to the screen */
.cta-layout>*,.cta-form,.cta-form label{min-width:0;max-width:100%}
.cta-form input,.cta-form select,.cta-form textarea{width:100%;min-width:0;box-sizing:border-box}
@media(max-width:600px){.hero-image .hero-art{clip-path:inset(0 4% 0 68.2%)}}

/* =====================  subtle motion  ===================== */
/* sticky header with a soft shadow once the page scrolls */
.site-header{position:sticky;top:0;background:rgba(251,250,247,.94);-webkit-backdrop-filter:saturate(1.1) blur(8px);backdrop-filter:saturate(1.1) blur(8px)}
.site-header.scrolled{box-shadow:0 8px 24px rgba(27,42,74,.07)}

@media (prefers-reduced-motion: no-preference){
  .site-header{transition:box-shadow .3s ease}

  /* scroll reveal (classes are added by assets/motion.js only to below-the-fold blocks) */
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s cubic-bezier(.2,.65,.2,1),transform .7s cubic-bezier(.2,.65,.2,1)}
  .reveal.is-in{opacity:1;transform:none}
  .reveal .underline-mark:after{transform:rotate(-1.7deg) scaleX(0);transform-origin:left center}
  .reveal.is-in .underline-mark:after{transform:rotate(-1.7deg) scaleX(1);transition:transform .8s cubic-bezier(.2,.65,.2,1) .35s}

  /* hero underline draws itself on load */
  .home-hero .underline-mark:after{transform-origin:left center;animation:drawLine .9s cubic-bezier(.2,.65,.2,1) .55s both}
  @keyframes drawLine{from{transform:rotate(-1.7deg) scaleX(0)}to{transform:rotate(-1.7deg) scaleX(1)}}

  /* hover polish */
  .button{transition:transform .22s ease,background .2s,box-shadow .22s ease}
  .button:hover{box-shadow:0 10px 22px rgba(27,42,74,.16)}
  .text-link{transition:color .2s,border-color .2s}
  .text-link:hover{color:var(--red);border-color:var(--red)}
  .text-link span{display:inline-block;transition:transform .22s ease}
  .text-link:hover span{transform:translate(2px,-2px)}
  .service-row h3{transition:transform .28s ease}
  .service-row:hover h3{transform:translateX(6px)}
  .service-row .round-arrow{transition:background .2s,color .2s,transform .28s ease,border-color .2s}
  .service-row:hover .round-arrow{transform:translate(3px,-3px);border-color:var(--ink)}
  .article-card{transition:transform .28s ease}
  .article-card:hover{transform:translateY(-4px)}
  .article-card h3{transition:color .2s}
  .article-card:hover h3{color:var(--red)}
  .desktop-nav>a,.desktop-nav .nav-service>a{position:relative}
  .desktop-nav>a:after,.desktop-nav .nav-service>a:after{content:"";position:absolute;left:0;right:0;bottom:10px;height:1px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
  .desktop-nav>a:hover:after,.desktop-nav .nav-service>a:hover:after,.desktop-nav>a[aria-current="page"]:after{transform:scaleX(1)}

  /* mobile menu slides in */
  .mobile-nav:not([hidden]){animation:menuIn .24s cubic-bezier(.2,.65,.2,1)}
  @keyframes menuIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

  /* FAQ answers ease open */
  details[open]>p{animation:faqIn .3s ease-out}
  @keyframes faqIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

  /* hero illustration: panels build in, the workflow lights up */
  .hero-art .hp{animation:hpIn .75s cubic-bezier(.2,.65,.2,1) both}
  .hero-art .hp1{animation-delay:.25s}.hero-art .hp2{animation-delay:.42s}.hero-art .hp3{animation-delay:.59s}
  @keyframes hpIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  .hero-art .conn{animation:marchDots 3s linear infinite}
  @keyframes marchDots{to{stroke-dashoffset:-20}}
  .hero-art .flow path{opacity:0;animation:fadeIn .4s ease-out forwards}
  .hero-art .flow path:nth-child(1){animation-delay:1.1s}.hero-art .flow path:nth-child(2){animation-delay:1.35s}
  .hero-art .flow path:nth-child(3){animation-delay:1.6s}.hero-art .flow path:nth-child(4){animation-delay:1.85s}
  @keyframes fadeIn{to{opacity:1}}
}

/* ---- motion on the inner pages: page intro eases in on load, plus a few more hover touches ---- */
@media (prefers-reduced-motion: no-preference){
  .contact-hero>*,.p-hero>*,.pf-hero>*,
  main.inner>section:first-child>div>:is(nav,p,h1,h2),main.inner>section:first-child>div>div:first-child>:is(nav,p,h1,h2){animation:arrive .65s cubic-bezier(.2,.65,.2,1) both}
  .contact-hero>:nth-child(1),.p-hero>:nth-child(1),.pf-hero>:nth-child(1),main.inner>section:first-child>div>:nth-child(1),main.inner>section:first-child>div>div:first-child>:nth-child(1){animation-delay:.04s}
  .contact-hero>:nth-child(2),.p-hero>:nth-child(2),.pf-hero>:nth-child(2),main.inner>section:first-child>div>:nth-child(2),main.inner>section:first-child>div>div:first-child>:nth-child(2){animation-delay:.14s}
  .contact-hero>:nth-child(3),.p-hero>:nth-child(3),.pf-hero>:nth-child(3),main.inner>section:first-child>div>:nth-child(3),main.inner>section:first-child>div>div:first-child>:nth-child(3){animation-delay:.24s}
  .contact-hero>:nth-child(4),.p-hero>:nth-child(4),.pf-hero>:nth-child(4),main.inner>section:first-child>div>:nth-child(4),main.inner>section:first-child>div>div:first-child>:nth-child(4){animation-delay:.34s}

  main.inner a[class*="bg-accent"],main.inner button[class*="bg-accent"]{transition:transform .22s ease,background .2s,box-shadow .22s ease}
  main.inner a[class*="bg-accent"]:hover,main.inner button[class*="bg-accent"]:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(27,42,74,.16)}
  .stage-list>li .n,.value-grid .n{transition:transform .25s ease}
  .stage-list>li:hover .n,.value-grid li:hover .n{transform:translateX(5px)}
  .stage-list>li h2,.value-grid li h3,.more-grid article h3,.case-bottom h3{transition:color .2s}
  .stage-list>li:hover h2,.value-grid li:hover h3,.more-grid article:hover h3{color:var(--red)}
  .faq-list summary{transition:color .2s}.faq-list summary:hover{color:var(--red)}
  .team-cards img{transition:transform .5s ease}.team-cards article:hover img{transform:scale(1.03)}
  .tags span{transition:border-color .2s,color .2s}.tags span:hover{border-color:var(--ink);color:var(--ink)}
  .contact-form input,.contact-form select,.contact-form textarea{transition:border-color .2s,box-shadow .2s}
  .site-footer a{transition:color .2s}
}
.site-footer .footer-top a:hover{text-decoration:underline;text-underline-offset:4px}

/* people section is text-only: headline left, copy right */
.team-section{align-items:start}
.team-section .team-copy p{font-size:var(--fs-md);line-height:1.85;color:var(--muted-ink);max-width:520px}
.team-section .team-copy .text-link{margin-top:26px}

/* ---- photo hero ---- */
.hero-image .hero-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:left 42%}
@media(min-width:801px){.hero-image .hero-photo{flex:1;min-height:0}}
@media(max-width:800px){.hero-image .hero-photo{height:260px;object-position:left center}}
@media (prefers-reduced-motion: no-preference){
  .hero-image .hero-photo{animation:photoIn 1.1s cubic-bezier(.2,.65,.2,1) .15s both}
  @keyframes photoIn{from{opacity:0;transform:scale(1.035)}to{opacity:1;transform:none}}
  .hero-image{overflow:hidden}
}
@media(min-width:801px){
  .hero-image{padding:0}
  .hero-image .hero-photo{position:absolute;left:0;top:0;width:100%;height:100%;flex:none}
}
.hero-image .hero-photo{max-height:none}
.footer-bottom a:hover{text-decoration:underline;text-underline-offset:4px}
