/* Home adjustments that apply after the two section files. */

/* Selected work: three projects side by side. */
.od-work--featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.od-work--featured .od-work-card__media { aspect-ratio: 4 / 5; }
.od-work--featured .od-work-card__body { column-gap: 16px; padding: 90px 24px 24px; }
.od-work--featured .od-work-card__title { font-size: var(--od-fs-h6); line-height: 1.3; }
.od-work--featured .od-work-card__meta,
.od-work--featured .od-work-card__year { font-size: var(--od-fs-b4); }
@media (max-width: 900px) {
	.od-work--featured { grid-template-columns: minmax(0, 1fr); }
	.od-work--featured .od-work-card__media { aspect-ratio: 5 / 3; }
}
@media (max-width: 600px) {
	.od-work--featured .od-work-card__media { aspect-ratio: 350 / 440; }
}

/* Tighter white space around the clients strip and before the selected work. */
.od-brands { padding-top: clamp(64px, 7vw, 110px); padding-bottom: clamp(48px, 5vw, 72px); }
.od-featured { padding-top: clamp(48px, 5vw, 72px); }

/* Introduction: one statement, with the supporting text beside it. */
.od-intro__body--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 100px); align-items: start; max-width: none; }
.od-intro__body--split .od-intro__text { margin: 0; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.4; font-weight: 500; color: var(--od-white); }
.od-intro__body--split .od-intro__more { margin: 0; padding-top: clamp(0px, .6vw, 8px); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--od-grey-500); }
.od-intro { padding-block: clamp(64px, 8vw, 120px); }
@media (max-width: 760px) {
	.od-intro__body--split { grid-template-columns: minmax(0, 1fr); }
}

/* Our services: one service on stage at a time.
   Without script or with reduced motion it is a plain list of the eleven, two to a row.
   With a pointer and room, the section is held while the scroll walks through them.
   On touch screens the cards sit side by side and are swiped. */
.od-svc-stage__inner { display: flex; flex-direction: column; gap: var(--od-stack); }
.od-svc-stage__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 0; padding: 0; list-style: none; }
.od-svc-stage__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.od-svc-stage__name { margin: 0; font-size: var(--od-fs-h6); line-height: 1.3; font-weight: 500; }
.od-svc-stage__name a { transition: color 0.3s var(--od-ease); }
.od-svc-stage__name a:hover { color: var(--od-brand); }
.od-svc-stage__text { margin: 0; max-width: 30em; font-size: var(--od-fs-b4); line-height: 1.6; color: var(--od-fg-soft); }
.od-svc-stage__tag { margin: 0; font-size: var(--od-fs-b5); font-weight: 500; color: var(--od-fg-mute); }
.od-svc-stage__tag, .od-svc-stage__link, .od-svc-stage__media, .od-svc-stage__foot { display: none; }
.od-svc-stage__count { margin: 0; font-size: var(--od-fs-b4); font-weight: 500; color: var(--od-fg-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-svc-stage__count b { font-weight: 500; color: var(--od-fg); }
.od-svc-stage__bar { position: relative; flex: 1; height: 1px; background: var(--od-line); }
.od-svc-stage__bar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--od-brand); transform: scaleX(var(--od-stage-p, 0.09)); transform-origin: left center; }
@media (max-width: 760px) {
	.od-svc-stage__list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1000px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
	/* The stage is as tall as the window (up to 720px) and stays put for the length of --od-stage-run. */
	.od-motion .od-svc-stage { --od-stage-h: min(100vh, 720px); --od-stage-run: max(620px, 90vh); height: calc(var(--od-stage-h) + var(--od-stage-run)); padding-block: 0; }
	.od-motion .od-svc-stage__hold { position: sticky; top: calc((100vh - var(--od-stage-h)) / 2); height: var(--od-stage-h); display: flex; }
	.od-motion .od-svc-stage__inner { gap: clamp(24px, 3.3vw, 48px); padding-block: clamp(28px, 3.3vw, 48px); }
	.od-motion .od-svc-stage__body { position: relative; flex: 1; min-height: 0; display: grid; }
	.od-motion .od-svc-stage__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
	.od-motion .od-svc-stage__item { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; min-height: 0; pointer-events: none; }
	.od-motion .od-svc-stage__copy { gap: 14px; padding-bottom: 56px; opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 0.45s var(--od-ease), transform 0.7s var(--od-ease); }
	.od-motion .od-svc-stage__item.is-before .od-svc-stage__copy { transform: translate3d(0, -40px, 0); }
	.od-motion .od-svc-stage__item.is-on .od-svc-stage__copy { opacity: 1; transform: none; pointer-events: auto; }
	.od-motion .od-svc-stage__tag { display: block; font-size: var(--od-fs-b4); }
	.od-motion .od-svc-stage__link { display: inline-flex; }
	.od-motion .od-svc-stage__name { font-size: clamp(34px, min(4.6vw, 8.4vh), 72px); line-height: 1.05; text-wrap: balance; }
	.od-motion .od-svc-stage__text { font-size: var(--od-fs-b2); }
	.od-motion .od-svc-stage__media { display: block; min-height: 0; }
	.od-motion .od-svc-stage__media img { position: absolute; inset: 0; }
	.od-motion .od-svc-stage__item:not(:first-child) .od-svc-stage__media { clip-path: inset(100% 0 0 0); }
	.od-motion .od-svc-stage__foot { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 20px; width: calc((100% - 40px) * 7 / 12); }
}

@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
	.od-motion .od-svc-stage__inner { gap: clamp(28px, 6vw, 48px); }
	.od-motion .od-svc-stage__list { display: flex; gap: 12px; margin-inline: calc(var(--od-inset) * -1); padding-inline: var(--od-inset); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--od-inset); scrollbar-width: none; }
	.od-motion .od-svc-stage__list::-webkit-scrollbar { display: none; }
	.od-motion .od-svc-stage__item { flex: 0 0 min(80%, 440px); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 16px; scroll-snap-align: start; }
	.od-motion .od-svc-stage__media { display: block; aspect-ratio: 4 / 3; }
	.od-motion .od-svc-stage__copy { gap: 8px; }
	.od-motion .od-svc-stage__tag { display: block; }
	.od-motion .od-svc-stage__link { display: inline-flex; margin-top: 4px; }
	.od-motion .od-svc-stage__name { font-size: var(--od-fs-h4); line-height: 1.15; }
	.od-motion .od-svc-stage__text { font-size: var(--od-fs-b3); }
}

/* Why choose us: cards wipe in one after another, then their contents build up. */
@media (prefers-reduced-motion: no-preference) {
	/* The card itself must stay unclipped: a fully clipped element never reports as visible. */
	.od-motion .od-why__grid > .od-why__card {
		transform: translate3d(0, 56px, 0) scale(.94);
		transform-origin: 50% 100%;
		transition: opacity var(--od-dur) var(--od-ease-out) var(--od-delay, 0ms), transform 1s var(--od-ease-out) var(--od-delay, 0ms);
	}
	.od-motion .od-why__grid > .od-why__card.is-in { transform: none; }
	.od-motion .od-why__card .od-why__bg { clip-path: inset(100% 0 0 0); }
	.od-motion .od-why__card.is-in .od-why__bg { clip-path: inset(0 0 0 0); }

	.od-motion .od-why__card .od-why__bg { transform: scale(1.18); transition: transform 1.8s var(--od-ease-out), clip-path 1.1s var(--od-ease-out) .1s; }
	.od-motion .od-why__card.is-in .od-why__bg { transform: scale(1); }
	.od-motion .od-why__card.is-in:hover .od-why__bg { transform: scale(1.05); transition-duration: .9s; }

	.od-motion .od-why__card.is-in .od-why__title,
	.od-motion .od-why__card.is-in .od-why__accent,
	.od-motion .od-why__card.is-in .od-why__text,
	.od-motion .od-why__card.is-in .od-why__icon { animation: od-why-rise .8s var(--od-ease-out) both; }
	.od-motion .od-why__card.is-in .od-why__icon { animation-delay: .25s; }
	.od-motion .od-why__card.is-in .od-why__title { animation-delay: .3s; }
	.od-motion .od-why__card.is-in .od-why__accent { animation-delay: .42s; }
	.od-motion .od-why__card.is-in .od-why__text { animation-delay: .5s; }

	.od-motion .od-why__card.is-in .od-why__stat { animation: od-why-pop 1s var(--od-ease-out) .2s both; transform-origin: left bottom; }

	.od-motion .od-why__card.is-in .od-why__fan-icons img { animation: od-why-drop .7s var(--od-ease-out) both; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(1) { animation-delay: .30s; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(2) { animation-delay: .38s; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(3) { animation-delay: .46s; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(4) { animation-delay: .54s; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(5) { animation-delay: .62s; }
	.od-motion .od-why__card.is-in .od-why__fan-icons img:nth-child(6) { animation-delay: .70s; }
	.od-motion .od-why__card.is-in .od-why__fan-lines { animation: od-why-draw 1.3s cubic-bezier(.65, 0, .35, 1) .7s both; }
	.od-motion .od-why__card.is-in .od-why__fan-stack { animation: od-why-pop .7s var(--od-ease-out) 1.8s both; }


	@keyframes od-why-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
	@keyframes od-why-pop { from { opacity: 0; transform: scale(.7); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
	@keyframes od-why-drop { from { opacity: 0; transform: translate3d(0, -18px, 0) scale(.6); } to { opacity: 1; transform: none; } }
	@keyframes od-why-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Testimonials: rating summary on the left, one row per client on the right. */
.od-reviews__inner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.od-reviews__side { position: sticky; top: calc(var(--od-header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.od-reviews__title { margin: 0; font-size: var(--od-fs-h3); line-height: 1.2; font-weight: 600; }
.od-reviews__score { display: flex; align-items: center; gap: 16px; }
.od-reviews__figure { margin: 0; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.06em; }
.od-reviews__count { margin: 4px 0 0; font-size: var(--od-fs-b5); color: var(--od-grey-500); }
.od-reviews__stars { display: inline-flex; gap: 2px; color: var(--od-brand); }
.od-reviews__sources { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--od-grey-200); }
.od-reviews__sources li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--od-grey-200); font-size: var(--od-fs-b4); color: var(--od-grey-600); }
.od-reviews__sources strong { color: var(--od-black); font-weight: 600; }
.od-reviews__sources .od-reviews__stars svg { width: 14px; height: 14px; }
.od-reviews__sortlist { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: var(--od-black); color: var(--od-white); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.od-reviews__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--od-grey-200); }
.od-review { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 24px 0; border-top: 1px solid var(--od-grey-200); }
.od-review__avatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--od-grey-40); border: 1px solid var(--od-grey-200); color: var(--od-grey-500); font-size: 15px; font-weight: 600; letter-spacing: 0; overflow: hidden; }
.od-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.od-review__quote { margin: 0; }
.od-review__quote p { margin: 0; font-size: var(--od-fs-b3); line-height: 1.6; color: var(--od-grey-900); }
.od-review__who { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 12px 0 0; font-size: var(--od-fs-b5); line-height: 1.5; color: var(--od-grey-600); }
.od-review__who strong { color: var(--od-black); font-weight: 600; }
.od-review__source { padding-top: 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--od-grey-500); }
@media (max-width: 900px) {
	.od-reviews__inner { grid-template-columns: minmax(0, 1fr); }
	.od-reviews__side { position: static; }
}
@media (max-width: 600px) {
	.od-review { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
	.od-review__avatar { width: 44px; height: 44px; font-size: 13px; }
	.od-review__source { grid-column: 2; padding-top: 0; }
}
.od-review__site { color: var(--od-brand); text-decoration: none; }
.od-review__site:hover { text-decoration: underline; }
.od-reviews__sources a { color: inherit; text-decoration: none; }
.od-reviews__sources a:hover strong { color: var(--od-brand); }

/* Hero text: a little wider, and balanced so a single word never sits alone on the last line. */
.od-hero__text { max-width: 470px; text-wrap: balance; }

/* Testimonials: up and down arrows to move between groups. */
.od-reviews__list { overflow: hidden; }
.od-review[hidden] { display: none; }
.od-reviews__nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.od-reviews__pages { margin: 0 auto 0 0; font-size: var(--od-fs-b5); color: var(--od-grey-500); font-variant-numeric: tabular-nums; }
.od-reviews__now { color: var(--od-black); font-weight: 600; }
.od-reviews__arrow { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--od-grey-200); border-radius: 50%; background: transparent; color: var(--od-black); cursor: pointer; transition: background-color 0.3s var(--od-ease), border-color 0.3s var(--od-ease), color 0.3s var(--od-ease), opacity 0.3s; }
.od-reviews__arrow svg { transition: transform 0.35s var(--od-ease); }
.od-reviews__arrow--down svg { transform: rotate(180deg); }
.od-reviews__arrow:hover:not(:disabled) { background: var(--od-brand); border-color: var(--od-brand); color: var(--od-white); }
.od-reviews__arrow:hover:not(:disabled) svg { transform: translateY(-3px); }
.od-reviews__arrow--down:hover:not(:disabled) svg { transform: rotate(180deg) translateY(-3px); }
.od-reviews__arrow:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 3px; }
.od-reviews__arrow:disabled { opacity: 0.35; cursor: default; }

/* Hero: the orange dash after the headline grows and shrinks in a slow loop. Its box keeps a fixed width so the headline never reflows. */
.od-hero__dash { position: relative; display: inline-block; width: 1.9em; height: max(2px, 0.07em); margin-left: 0.12em; vertical-align: 0.3em; }
.od-hero__dash::before { content: ""; position: absolute; inset: 0; background: var(--od-brand); transform-origin: left center; animation: od-hero-dash 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate; }
@keyframes od-hero-dash { from { transform: scaleX(0.22); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .od-hero__dash::before { animation: none; } }

/* Introduction: same ruled label row as the other section headings, text across the full width below it. */
.od-intro__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); }
.od-intro__meta { padding-top: 18px; border-top: 1px solid var(--od-grey-800); }

/* Tablets and phones: the arrows sit on the left so the fixed chat button never covers them */
@media (max-width: 1024px) {
	.od-reviews__nav { justify-content: flex-start; }
	.od-reviews__pages { order: 2; margin: 0 0 0 6px; }
}

/* Reviews: when the block scrolls in, the score counts up once and the five stars light up one after the other. */
@media (prefers-reduced-motion: no-preference) {
	.od-motion .od-reviews__score .od-reviews__stars svg, .od-motion .od-reviews__sources .od-reviews__stars svg { opacity: 0.18; transform: scale(0.6); }
	.od-motion .od-reviews__score.is-in .od-reviews__stars svg, .od-motion .od-reviews__sources.is-in .od-reviews__stars svg { animation-name: od-star-in; animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); animation-fill-mode: forwards; }
	.od-motion .od-reviews__stars svg:nth-child(1) { animation-delay: 0.25s; }
	.od-motion .od-reviews__stars svg:nth-child(2) { animation-delay: 0.55s; }
	.od-motion .od-reviews__stars svg:nth-child(3) { animation-delay: 0.85s; }
	.od-motion .od-reviews__stars svg:nth-child(4) { animation-delay: 1.15s; }
	.od-motion .od-reviews__stars svg:nth-child(5) { animation-delay: 1.45s; }
}
@keyframes od-star-in { to { opacity: 1; transform: none; } }

/* Clients: the logo lines sit under the heading and run the full width of the page. */
.od-brands__lines { margin-top: clamp(32px, 3.9vw, 56px); }
