/* Home page (page-templates/home.php). Desktop from Main.dc.html, phone (max-width 900px) from Mobile.dc.html. */

/* Hero */
.h-hero { position: relative; height: 900px; min-height: 640px; overflow: hidden; background: var(--ink); color: #fff; }
.h-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.h-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,42,55,.88) 0%, rgba(11,42,55,.45) 42%, rgba(11,42,55,.25) 100%); }
.h-hero__shade2 { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,42,55,.75) 0%, rgba(11,42,55,0) 62%); }
.h-hero__in { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.h-hero__copy { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.h-hero__title { margin: 0; font-size: clamp(48px, 7.4vw, 112px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.h-hero__text { margin: 0; max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255,255,255,.9); }
.h-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.h-hero__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.h-hero__live { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: #fff; }
.h-hero__live > span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Trusted by */
.h-logos { background: #fff; border-bottom: 1px solid var(--line-light); }
.h-logos__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.h-logos__k { font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); flex: 0 0 auto; }
.h-logos__row { flex: 1 1 760px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.h-logos__cell { display: block; flex: 0 0 auto; line-height: 0; }
.h-logos__cell img { height: var(--h, 32px); width: auto; display: block; }

/* Shared section head (rule with end ticks) */
.h-sec__in { padding-top: 112px; padding-bottom: 112px; }
.h-dark { background: var(--ink); color: #fff; }
.h-head { position: relative; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.h-head__t { position: absolute; top: -6px; width: 1px; height: 11px; background: var(--line-dark); }
.h-head__t--l { left: 0; }
.h-head__t--r { right: 0; }
.h-head--light { border-top-color: var(--steel); }
.h-head--light .h-head__t { background: var(--steel); }
.h-head__title { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; max-width: 880px; }
.h-head__p { margin: 20px 0 0; max-width: 620px; font-size: 19px; line-height: 30px; color: var(--slate); }
.h-dark .h-head__p { color: var(--mist); }

/* 01 Results */
.h-results__in { padding-top: 96px; }
.h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; margin-top: 64px; }
.h-stat { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.h-stat__n { font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--teal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.h-stat__n--c { white-space: normal; }
.h-stat__up { margin-right: 8px; vertical-align: .12em; }
.h-stat__u { display: block; margin-top: 10px; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--mist); white-space: normal; }
.h-stat__cu { font-size: 22px; font-weight: 600; letter-spacing: 0; color: var(--mist); margin-left: 10px; }
.h-stat__robot { margin: 12px 0 0; font-size: 17px; line-height: 26px; font-weight: 600; }
.h-stat__ba { margin: 16px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font: 500 14px/22px var(--mono); color: var(--mist); }
.h-stat__ba dd { margin: 0; }
.h-stat__ba .h-stat__after { color: var(--teal); }
.h-stat__ba .h-stat__after-v { color: #fff; }
.h-stat__place, .h-stat__years { margin-top: 12px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.h-stat__list { margin: 12px 0 0; font-size: 16px; line-height: 26px; }
.h-stat__flags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.h-flag { display: block; flex: 0 0 auto; border: 1px solid rgba(138,154,163,.5); }
.h-stat__years { margin-top: 16px; }
.h-stat__badge { display: inline-block; margin-top: 8px; color: var(--ink); background: var(--teal); padding: 3px 8px; }

/* 02 How we work */
.h-how { background: var(--concrete); }
.h-how__p { margin: 20px 0 0; font-size: 19px; line-height: 30px; color: var(--slate); }
.h-how__p--2 { margin-top: 14px; }
.h-how__body { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 56px; align-items: stretch; }
.h-how__media { margin: 0; flex: 1 1 100%; min-width: 0; position: relative; aspect-ratio: 16 / 9; background: var(--petrol); overflow: hidden; }
.h-how__media video, .h-how__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-how__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; background: var(--ink); color: #fff; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.h-steps { flex: 1 1 100%; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.h-step { padding: 28px 0; border-top: 1px solid var(--steel); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
.h-step__n { font-size: 56px; line-height: 1; font-weight: 800; color: var(--concrete); -webkit-text-stroke: 1px var(--steel); }
.h-step__t { margin: 4px 0 8px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.h-step__p { margin: 0; font-size: 16px; line-height: 26px; color: var(--slate); }
.h-steps__more { padding-top: 8px; grid-column: 1 / -1; }
.h-steps__more .lnk { font-size: 15px; font-weight: 600; }

/* 03 Industries */
.h-ind { background: #fff; }
.h-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 64px; }
.h-tile { background: var(--concrete); border-top: 2px solid var(--teal); padding: 28px 22px 32px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; }
.h-tile__ill { height: 168px; margin: -12px -6px 0; }
.h-tile__t { margin: 0; font-size: clamp(22px, 1.75vw, 26px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.h-tile__p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--slate); }

/* Industry illustrations */
.ill { display: block; width: 100%; height: 100%; overflow: visible; }
.ill * { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
	.i-level { transform-origin: 50% 100%; animation: i-level 7s ease-in-out infinite; }
	.i-flow { animation: i-flow 1.4s linear infinite; }
	.i-drop { animation: i-drop 1.2s ease-in infinite; }
	.i-dropf { animation: i-dropf 2.4s ease-in infinite; }
	.i-wave { animation: i-wave 3s linear infinite; }
	.i-bub { animation: i-bub 2.8s ease-in infinite; }
	.i-bag { animation: i-bag 4.5s linear infinite; }
	.i-land { animation: i-land 4.5s ease-out infinite; }
	.i-pill { animation: i-pill 5s ease-out infinite; }
	.i-cap { transform-origin: 50% 50%; animation: i-cap 4s ease-in-out infinite; }
	.i-box { animation: i-box 4.5s linear infinite; }
	.i-land2 { animation: i-land2 4.5s ease-out infinite; }
	.tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
	.tilt:hover { transform: perspective(1100px) rotateX(2.5deg) rotateY(-2.5deg) translateY(-6px); }
}
@keyframes i-level { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(.92); } }
@keyframes i-flow { to { stroke-dashoffset: -24; } }
@keyframes i-drop { 0% { transform: translateY(-4px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes i-dropf { 0%, 30% { transform: translateY(0); opacity: 0; } 40% { opacity: 1; } 85% { transform: translateY(56px); opacity: 1; } 100% { transform: translateY(58px); opacity: 0; } }
@keyframes i-wave { to { transform: translateX(-60px); } }
@keyframes i-bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-30px); opacity: 0; } }
@keyframes i-bag { 0% { transform: translateX(0); opacity: 0; } 8%, 86% { opacity: 1; } 100% { transform: translateX(84px); opacity: 0; } }
@keyframes i-land { 0%, 62% { transform: translateY(-14px); opacity: 0; } 74% { transform: translateY(0); opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes i-pill { 0% { transform: translateY(-12px); opacity: 0; } 10%, 82% { transform: translateY(0); opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes i-cap { 0%, 100% { transform: translateY(-4px) rotate(-4deg); } 50% { transform: translateY(4px) rotate(4deg); } }
@keyframes i-box { 0% { transform: translateX(0); opacity: 0; } 10%, 78% { opacity: 1; } 100% { transform: translateX(62px); opacity: 0; } }
@keyframes i-land2 { 0%, 60% { transform: translateY(-10px); opacity: 0; } 75%, 92% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }

/* 05 Where we've delivered */
.h-map__body { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; align-items: flex-start; }
.h-ctry { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.h-ctry__i { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.h-ctry__i:last-child { border-bottom: 1px solid var(--line-dark); }
.h-ctry__code { display: flex; flex-direction: column; gap: 6px; font: 500 11px/14px var(--mono); color: var(--teal); }
.h-ctry__code .h-flag { width: 36px; height: 24px; }
.h-ctry__name { font-size: 19px; font-weight: 600; }
.h-ctry__text { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--mist); }
.h-globe { flex: 1 1 520px; min-width: 0; margin: 0; border: 1px solid var(--line-dark); padding: 24px; background: radial-gradient(circle at 50% 45%, rgba(0,170,180,.10), rgba(11,42,55,0) 62%); position: sticky; top: 96px; }
.h-globe__cv { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.h-globe__key { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.h-globe__key > span { display: inline-flex; align-items: center; gap: 8px; }
.h-key { width: 10px; height: 10px; box-sizing: border-box; }
.h-key--hq { background: var(--teal); }
.h-key--office { border: 2px solid #fff; }
.h-key--site { border: 1.5px solid var(--teal); border-radius: 50%; }

/* Phone (Mobile.dc.html, 390px board) */
@media (max-width: 900px) {
	.h-hero { height: 760px; min-height: 0; }
	.h-hero__media { object-position: 40% 50%; }
	.h-hero__shade { background: linear-gradient(to top, rgba(11,42,55,.94) 0%, rgba(11,42,55,.6) 55%, rgba(11,42,55,.4) 100%); }
	.h-hero__shade2, .h-hero__meta { display: none; }
	.h-hero__in { display: block; padding: 0 16px 32px; }
	.h-hero__copy { max-width: none; gap: 20px; }
	.h-hero__eyebrow { font-size: 11px; }
	.h-hero__title { font-size: 52px; }
	.h-hero__text { max-width: none; font-size: 17px; line-height: 26px; }
	.h-hero__btns { flex-direction: column; flex-wrap: nowrap; gap: 20px; }
	.h-hero__btns a { display: flex; justify-content: center; text-align: center; padding: 0 16px; }

	.h-logos__in { display: block; padding: 24px 16px; }
	.h-logos__k { display: block; font-size: 11px; text-align: center; }
	.h-logos__row { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
	.h-logos__cell { height: 56px; display: grid; place-items: center; }
	.h-logos__cell img { height: calc(var(--h, 32px) * .77); max-width: 100%; }

	.h-sec__in, .h-results__in { padding: 64px 16px; }
	.h-head { padding-top: 20px; }
	.h-head__t { display: none; }
	.h-head__title { font-size: 30px; line-height: 1.08; }
	.h-head__p { margin-top: 16px; max-width: none; font-size: 17px; line-height: 27px; }

	.h-stats { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
	.h-stat { padding-top: 20px; }
	.h-stat__n { font-size: 52px; letter-spacing: normal; }
	.h-stat__u { margin-top: 8px; font-size: 15px; }
	.h-stat__cu { font-size: 18px; margin-left: 8px; }
	.h-stat__robot { margin-top: 10px; font-size: 16px; line-height: 24px; }
	.h-stat__ba { margin-top: 14px; font-size: 13px; line-height: 20px; }
	.h-stat__place { margin-top: 10px; font-size: 11px; }
	.h-stat__list { margin-top: 10px; line-height: 24px; }
	.h-stat__flags { margin-top: 14px; }
	.h-stat__years { font-size: 11px; }

	.h-how__p { margin-top: 16px; font-size: 17px; line-height: 27px; }
	.h-how__p--2 { margin-top: 12px; }
	.h-how__body { display: block; margin-top: 32px; }
	.h-how__media figcaption { display: none; }
	.h-steps { display: block; margin-top: 8px; }
	.h-step { padding: 22px 0; border-top: 0; border-bottom: 1px solid var(--line-light); grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
	.h-step:nth-last-child(2), .h-step:last-child { border-bottom-color: var(--steel); }
	.h-step__n { font-size: 40px; }
	.h-step__t { margin: 2px 0 6px; font-size: 19px; }
	.h-step__p { font-size: 15px; line-height: 24px; }
	.h-steps__more { display: none; }

	.h-ind { background: var(--concrete); }
	.h-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 32px; }
	.h-tile { background: #fff; padding: 12px 16px 12px 8px; min-height: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; }
	.h-tile__ill { height: 86px; margin: 0; }
	.h-tile__t { font-size: 20px; line-height: 1.15; letter-spacing: normal; }
	.h-tile__p { margin-top: 6px; font-size: 13px; line-height: 19px; }
	.tilt:hover { transform: none; }

	.h-map__body { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 32px; margin-top: 28px; align-items: stretch; }
	.h-globe { order: -1; flex: none; width: 100%; padding: 16px; position: static; }
	.h-ctry { flex: none; }
	.h-ctry__i { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.h-ctry__code { padding-top: 3px; }
	.h-ctry__code > span { display: none; }
	.h-ctry__code .h-flag { width: 30px; height: 20px; }
	.h-ctry__name { font-size: 17px; }
	.h-ctry__text { margin-top: 2px; font-size: 14px; line-height: 22px; }
}
