/* TEN: Services and service pages. Loaded after ten.css. */

/* ---------- ground: undo the block editor's flow spacing; sections space themselves ---------- */
body.ten-page{background:var(--paper)}
.ten-page .ten-main{display:block}
.ten-page .ten-main > *{margin-block:0}
.ten-page .ten-main :where(.ten-group) > *{margin-block:0}
.ten-page .ten-main p{margin:0}
.ten-page .ten-main a{text-decoration:none}
.ten-page .ten-main .ten-image{margin:0}

/* a pattern image left without a picture should not show as a broken one */
.ten-page .ten-image:has(img:not([src])),
.ten-page .ten-image:has(img[src=""]){display:none}

/* ---------- buttons: every button is a TEN capsule ---------- */
.ten-page .ten-buttons{display:flex;flex-wrap:wrap;gap:12px}
.ten-page .ten-button__link{display:inline-flex;align-items:center;gap:14px;
  background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:100px;
  padding:4px 4px 4px 20px;min-height:44px;font-family:var(--font-ui);
  font-size:13px;font-weight:500;line-height:1;text-transform:uppercase;letter-spacing:0.08em;
  transition:background .4s ease,color .4s ease,border-color .4s ease}
.ten-page .ten-button__link::after{content:"";flex:0 0 30px;width:30px;height:30px;border-radius:50%;
  background:linear-gradient(#fff,#fff) center/11px 1.5px no-repeat,linear-gradient(#fff,#fff) center/1.5px 11px no-repeat,var(--accent);
  transition:transform .5s ease}
.ten-page .ten-button__link:hover{background:var(--accent-soft);border-color:var(--accent-soft);color:#fff}
.ten-page .ten-button__link:hover::after{transform:rotate(90deg)}
/* outline variant, for dark sections */
.ten-page .is-outline .ten-button__link{background:transparent;border-color:rgba(255,255,255,0.28);color:#fff}
.ten-page .is-outline .ten-button__link::after{
  background:linear-gradient(var(--deep),var(--deep)) center/11px 1.5px no-repeat,linear-gradient(var(--deep),var(--deep)) center/1.5px 11px no-repeat,#fff}
.ten-page .is-outline .ten-button__link:hover{background:#fff;border-color:#fff;color:var(--deep)}
.ten-page .is-outline .ten-button__link:hover::after{
  background:linear-gradient(#fff,#fff) center/11px 1.5px no-repeat,linear-gradient(#fff,#fff) center/1.5px 11px no-repeat,var(--deep)}

/* ---------- dark sections ---------- */
.ten-page .ten-dark{background:var(--d-bg);color:var(--d-fg)}
.ten-page .ten-dark .micro{color:var(--d-muted)}

/* ---------- 1 · type hero ---------- */
.ten-page .ten-hero-type{position:relative;min-height:100vh;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;
  padding:140px var(--pad) 0}
.ten-page .ten-hero-type > *{position:relative;z-index:3}
.ten-page .ten-hero-type > canvas.dot-wave{position:absolute;z-index:0}
.ten-page .ten-eyebrow{position:absolute;top:96px;left:var(--pad);display:flex;align-items:center;gap:10px}
.ten-page .ten-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--d-accent);animation:pulse 2.4s ease-in-out infinite}
.ten-page .ten-hero-type__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,15em);gap:24px clamp(24px,4vw,64px);align-items:end}
.ten-page .ten-hero-type h1{font-weight:400;font-size:clamp(76px,17.5vw,272px);letter-spacing:-0.05em;line-height:0.84;margin:0 0 0 -0.04em;color:inherit}
.ten-page .ten-hero-type__aside{font-size:15px;line-height:1.45;color:var(--d-muted);padding-bottom:0.9em;max-width:15em}
.ten-page .ten-hero-type__body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,15em);gap:32px clamp(24px,4vw,64px);
  align-items:start;margin-top:clamp(36px,6vh,64px);padding-bottom:clamp(48px,8vh,88px)}
.ten-page .ten-hero-type__lead{display:flex;flex-direction:column;align-items:flex-start;gap:32px}
.ten-page .ten-lead{font-size:clamp(20px,2vw,26px);line-height:1.4;letter-spacing:-0.01em;max-width:26em;color:var(--d-fg)}
.ten-page .ten-connect{display:grid;gap:10px}
.ten-page .ten-connect .micro{padding-bottom:12px;border-bottom:1px solid var(--d-line);margin-bottom:4px}
.ten-page .ten-connect a{font-size:15px;color:rgba(255,255,255,0.82)}
.ten-page .ten-connect a:hover{color:#fff}
.ten-page .ten-hero-type__rule{position:relative;z-index:3;border-top:1px solid var(--d-line);padding:18px 0 24px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px}
.ten-page .ten-hero-type__rule::before{content:"";position:absolute;top:0;bottom:0;left:calc(var(--pad) * -1);right:calc(var(--pad) * -1);
  background:var(--d-bg);z-index:-1;pointer-events:none}

/* ---------- 2 · work with us + service cards ---------- */
.ten-page .ten-wwu{background:var(--bone);padding:clamp(96px,14vh,180px) var(--pad)}
.ten-page .ten-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.ten-page .ten-bar strong{font-weight:500;color:var(--ink)}
.ten-page .ten-bar.is-plain{border-bottom:0;padding-bottom:0;margin-top:clamp(72px,11vh,128px);margin-bottom:22px}
.ten-page .ten-wwu__head{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:32px clamp(32px,6vw,96px);align-items:start;margin-top:clamp(48px,7vh,80px)}
.ten-page .ten-display-light{font-weight:300;font-size:clamp(40px,5.6vw,84px);letter-spacing:-0.032em;line-height:1.02;max-width:11em}
.ten-page .ten-wwu__side{display:flex;flex-direction:column;align-items:flex-start;gap:30px;padding-top:0.6em}
.ten-page .ten-wwu__side p{font-size:18px;color:var(--muted);max-width:22em}
.ten-page .ten-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line)}
.ten-page .ten-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:26px clamp(18px,2vw,30px) 34px;
  border-left:1px solid var(--line);border-bottom:1px solid var(--line);transition:background .45s ease}
.ten-page .ten-card:nth-child(4n+1){border-left:0}
.ten-page .ten-card__num{font-size:11px;font-weight:500;letter-spacing:0.14em;color:var(--muted)}
.ten-page .ten-card .ten-card__icon{margin:44px 0 40px;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.ten-page .ten-card .ten-card__icon img{height:64px;width:auto;max-width:72%}
.ten-page .ten-card h3{font-size:22px;font-weight:500;letter-spacing:-0.012em;line-height:1.2;margin:0}
.ten-page .ten-card__desc{margin-top:10px!important;font-size:15px;line-height:1.5;color:var(--muted);max-width:24ch;flex:1 0 auto}
.ten-page .ten-card__more{margin-top:26px!important}
.ten-page .ten-card__more a{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:0.12em;
  padding-bottom:4px;border-bottom:1px solid var(--line);transition:border-color .4s ease}
.ten-page .ten-card__more a::after{content:"";position:absolute;inset:0}
.ten-page .ten-card:hover{background:var(--paper)}
.ten-page .ten-card:hover .ten-card__icon{transform:translateY(-6px)}
.ten-page .ten-card:hover .ten-card__more a{border-bottom-color:var(--ink)}
@media (hover:none){.ten-page .ten-card:hover{background:transparent}.ten-page .ten-card:hover .ten-card__icon{transform:none}}

/* ---------- 3 · loose gallery  ---------- */
.ten-page .ten-gallery{background:var(--paper);padding:clamp(96px,14vh,180px) var(--pad) 32px}
.ten-page figure.ten-scatter{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));
  column-gap:clamp(12px,2vw,28px);row-gap:clamp(40px,6vw,96px);align-items:start;margin:0}
.ten-page .ten-scatter > figure.ten-image:not(#ten){width:auto!important;max-width:none;margin:0!important;flex:none!important;display:block}
.ten-page .ten-scatter > figure.ten-image:not(#ten) img{width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:cover;
  filter:grayscale(1);transition:filter .7s ease}
.ten-page .ten-scatter > figure.ten-image:not(#ten):hover img{filter:grayscale(0)}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+1):not(#ten){grid-column:1 / span 2;margin-top:2vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+2):not(#ten){grid-column:5 / span 2}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+3):not(#ten){grid-column:10 / span 2;margin-top:9vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+4):not(#ten){grid-column:2 / span 2;margin-top:6vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+5):not(#ten){grid-column:5 / span 3;margin-top:-4vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+6):not(#ten){grid-column:11 / span 2;margin-top:4vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+7):not(#ten){grid-column:3 / span 2;margin-top:-2vw!important}
.ten-page .ten-scatter > figure.ten-image:nth-child(8n+8):not(#ten){grid-column:9 / span 1;margin-top:8vw!important}
.ten-page .ten-gallery__foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-top:clamp(56px,9vh,110px);
  padding-top:18px;border-top:1px solid var(--line)}
.ten-page .ten-gallery__foot p{font-size:15px;font-weight:500;text-transform:uppercase;letter-spacing:0.02em;line-height:1.35;max-width:36em}
.ten-page .ten-gallery__foot strong{font-weight:700}
.ten-page .ten-gallery__foot a:hover{color:var(--muted)}

/* ---------- 4 · contact ---------- */
.ten-page .ten-contact{background:var(--deep);padding:clamp(96px,14vh,180px) var(--pad);overflow:hidden}
.ten-page .ten-contact .ten-contact__title{font-weight:700;font-size:clamp(64px,15vw,232px);letter-spacing:-0.045em;line-height:0.86;
  margin:0 0 clamp(56px,9vh,110px) -0.04em;color:inherit}
.ten-page .ten-contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,110px)}
.ten-page .ten-contact__meta{display:flex;flex-direction:column;gap:8px;font-size:15px;color:rgba(255,255,255,0.72)}
.ten-page .ten-contact__meta a:hover{color:#fff}

/* ---------- responsive (ten.css breakpoints) ---------- */
@media (max-width:1199px){
  .ten-page .ten-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ten-page .ten-card:nth-child(4n+1){border-left:1px solid var(--line)}
  .ten-page .ten-card:nth-child(2n+1){border-left:0}
  .ten-page .ten-wwu__head{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:768px){
  .ten-page .ten-hero-type__head,.ten-page .ten-hero-type__body,.ten-page .ten-contact__grid{grid-template-columns:minmax(0,1fr)}
  .ten-page .ten-hero-type__aside{padding-bottom:0}
  .ten-page figure.ten-scatter{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}
  .ten-page .ten-scatter > figure.ten-image:nth-child(n):not(#ten){grid-column:auto;margin-top:0!important}
  .ten-page .ten-scatter > figure.ten-image:nth-child(even):not(#ten){margin-top:48px!important}
  .ten-page .ten-gallery__foot{flex-direction:column;align-items:flex-start}
  .ten-page .ten-connect a,.ten-page .ten-gallery__foot a{display:inline-block;padding-block:8px;margin-block:-8px}
  .ten-page .ten-connect{gap:14px}
  .ten-page .ten-card__more a{padding-top:10px}
}
@media (max-width:560px){
  .ten-page .ten-cards{grid-template-columns:minmax(0,1fr)}
  .ten-page .ten-card:nth-child(n){border-left:0;padding-left:0;padding-right:0}
  .ten-page .ten-card .ten-card__icon{margin:28px 0 26px}
}


/* ==========================================================================
   service page sections 
   ========================================================================== */
.ten-page .ten-section{background:var(--paper);padding:clamp(96px,14vh,180px) var(--pad)}
.ten-page .ten-head{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:32px clamp(32px,6vw,96px);align-items:start;margin-top:clamp(48px,7vh,80px)}
.ten-page .ten-head > p{font-size:18px;color:var(--muted);max-width:26em;padding-top:0.6em}
.ten-page .ten-gallery .ten-head{margin-bottom:clamp(64px,9vh,120px)}

/* a numbered list in three columns, hairline under each item */
.ten-page .ten-main ul.ten-list{list-style:none;margin:clamp(56px,8vh,96px) 0 0;padding:0;counter-reset:ten;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(18px,2.4vw,40px);border-top:1px solid var(--line)}
.ten-page .ten-main ul.ten-list li{counter-increment:ten;display:flex;align-items:baseline;gap:14px;margin:0;padding:16px 0;
  border-bottom:1px solid var(--line);font-size:17px;line-height:1.35}
.ten-page .ten-main ul.ten-list li::before{content:counter(ten,decimal-leading-zero);flex:0 0 2.2em;font-size:11px;font-weight:500;letter-spacing:0.14em;color:var(--muted)}

/* the same list set as running type, for short names (industries) */
.ten-page .ten-industries{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);gap:32px clamp(32px,6vw,96px);align-items:start;margin-top:clamp(48px,7vh,80px)}
.ten-page .ten-industries__intro{font-size:18px;color:var(--muted);max-width:22em}
.ten-page .ten-main ul.ten-list.is-inline{display:block;margin:0;border-top:0;counter-reset:none}
.ten-page .ten-main ul.ten-list.is-inline li{display:inline;padding:0;border:0;font-size:clamp(26px,3vw,44px);font-weight:300;letter-spacing:-0.025em;line-height:1.25}
.ten-page .ten-main ul.ten-list.is-inline li::before{content:none}
.ten-page .ten-main ul.ten-list.is-inline li:not(:last-child)::after{content:" / ";color:#C9C9C4;white-space:pre}

/* cards that carry text only (Our Approach) */
.ten-page .ten-cards.is-text{margin-top:clamp(56px,8vh,96px)}
.ten-page .ten-cards.is-text .ten-card h3{margin-top:56px}
.ten-page .ten-cards.is-text .ten-card__desc{max-width:30ch}

/* the closing question above the contact (Paolo's "We're social..." band) */
.ten-page .ten-contact__lead-wrap{margin-bottom:clamp(72px,11vh,140px);padding-bottom:clamp(56px,8vh,96px);border-bottom:1px solid var(--d-line)}
.ten-page .ten-contact .ten-contact__lead{font-weight:400;font-size:clamp(32px,4.4vw,64px);letter-spacing:-0.028em;line-height:1.05;max-width:15em;color:inherit;margin:0}
.ten-page .ten-contact__sub{margin-top:24px!important;font-size:18px;color:var(--d-muted);max-width:32em}

@media (max-width:1199px){
  .ten-page .ten-head{grid-template-columns:minmax(0,1fr)}
  .ten-page .ten-main ul.ten-list:not(.is-inline){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .ten-page .ten-industries{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .ten-page .ten-main ul.ten-list:not(.is-inline){grid-template-columns:minmax(0,1fr)}
  .ten-page .ten-cards.is-text .ten-card h3{margin-top:28px}
}
