/* Company Chicago — home page
   Tokens: black #000 (site primary), ink #232323 (site text), paper #fff,
   sky #9fcfe8 (the light blue of the Chicago flag — the one accent). */

:root {
	--cc-black: #000;
	--cc-ink: #232323;
	--cc-paper: #fff;
	--cc-sky: #9fcfe8;
	--cc-line: rgba(0, 0, 0, .14);
	--cc-line-dark: rgba(255, 255, 255, .18);
	--cc-fade: 1.2s;
	--cc-max: 1240px;
	--cc-gutter: 32px;
}

/* keyboard focus: the theme removes outlines, so every control gets a visible ring in the accent colour */
.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible,
.home textarea:focus-visible,
.home select:focus-visible,
.home [tabindex]:focus-visible {
	outline: 3px solid var(--cc-sky) !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 1px var(--cc-black);
}

.home .cc-hero a:focus-visible,
.home .cc-hero button:focus-visible,
.home .cc-marquee button:focus-visible,
.home .cc-process a:focus-visible {
	box-shadow: 0 0 0 1px var(--cc-paper);
}

/* footer links get a comfortable tap height on this page */
.home .footer-secondary .menu a,
.home .footer-widgets .menu a,
.home .absolute-footer .menu a {
	padding-top: .35em;
	padding-bottom: .35em;
}

/* the site-wide top bar repeats the hero's own call to action: hide it on this page */
.home #top-bar {
	display: none;
}

/* ---------- hero ---------- */

.cc-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	background: var(--cc-black);
	color: var(--cc-paper);
	overflow: hidden;
	isolation: isolate;
}

.cc-hero__media,
.cc-hero__shade {
	position: absolute;
	inset: 0;
}

.cc-hero__poster,
.cc-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.cc-hero__video {
	opacity: 0;
	transition: opacity var(--cc-fade) ease-in-out;
	will-change: opacity, transform;
}

/* each clip drifts in slightly while it is in front */
.cc-hero__video.is-front {
	opacity: 1;
	animation: cc-drift 7s linear forwards;
}

@keyframes cc-drift {
	from { transform: scale(1); }
	to { transform: scale(1.07); }
}

.cc-hero__poster {
	transition: opacity var(--cc-fade) ease-in-out;
}

.cc-hero.is-playing .cc-hero__poster {
	opacity: 0;
}

.cc-hero__shade {
	background:
		linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .48) 36%, rgba(0, 0, 0, .08) 68%, rgba(0, 0, 0, .28) 100%);
}

.cc-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--cc-max);
	margin: 0 auto;
	padding: 9rem var(--cc-gutter) 2.5rem;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	grid-template-areas:
		"title title"
		"lede  actions"
		"loop  loop";
	column-gap: 3rem;
	row-gap: 1.5rem;
	align-items: end;
}

.cc-hero__content h1 {
	grid-area: title;
	color: var(--cc-paper);
	font-size: clamp(2.75rem, 6.8vw, 6.4rem);
	font-weight: 600;
	line-height: .96;
	letter-spacing: -.035em;
	max-width: 13ch;
	margin: 0 0 .5rem;
	text-wrap: balance;
}

.cc-hero__content p {
	grid-area: lede;
	font-size: clamp(1.05rem, 1.35vw, 1.3rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, .84);
	max-width: 42ch;
	margin: 0;
}

.cc-hero__actions {
	grid-area: actions;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .75rem;
}

.cc-hero__actions .button {
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 600;
	font-size: 1rem;
	border-radius: 999px;
	padding: 0 1.6em;
	line-height: 2.9em;
}

.cc-hero__actions .button.is-outline:hover {
	border-color: var(--cc-sky);
	color: var(--cc-sky);
	background: transparent;
}

/* primary action: black on white, not the theme's grey */
.cc-hero__actions .button.white:not(.is-outline) {
	color: var(--cc-black) !important; /* the theme colours white buttons grey */
}

.cc-hero__actions .button.white:not(.is-outline):hover {
	background: var(--cc-sky);
	color: var(--cc-black);
}

/* the loop indicator: one segment per clip, the active one fills while it plays */
.cc-hero__loop {
	grid-area: loop;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cc-line-dark);
}

.cc-hero__segs {
	flex: 1;
	display: flex;
	gap: 6px;
}

/* pause / play control, shared by the hero loop and the marquee */
.cc-pause {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: 0 .9rem;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	background: rgba(0, 0, 0, .35);
	color: var(--cc-paper);
	font: 600 .85rem/1 inherit;
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

.cc-pause:hover {
	border-color: var(--cc-sky);
	color: var(--cc-sky);
	background: rgba(0, 0, 0, .35);
}

.cc-pause .cc-pause__ico-play { display: none; }
.cc-pause[aria-pressed="true"] .cc-pause__ico-play { display: inline; }
.cc-pause[aria-pressed="true"] .cc-pause__ico-pause { display: none; }

.cc-hero__seg {
	flex: 1;
	margin-top: 0;
	height: 2px;
	background: rgba(255, 255, 255, .22);
	overflow: hidden;
}

.cc-hero__seg i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--cc-paper);
}

.cc-hero__seg.is-done i {
	width: 100%;
}

.cc-hero__seg.is-active i {
	width: 100%;
	transition: width 4.2s linear;
}

@media (max-width: 849px) {
	.cc-hero__content {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"lede"
			"actions"
			"loop";
		row-gap: 1.25rem;
		padding: 7.5rem 20px 1.75rem;
	}
	.cc-hero__actions {
		justify-content: flex-start;
	}
	.cc-hero__loop {
		margin-top: 1.5rem;
	}
	.cc-pause .cc-pause__text {
		display: none;
	}
	.cc-pause {
		padding: 0 .8rem;
	}
	.cc-marquee__pause {
		right: 12px;
	}
}

@media (max-width: 549px) {
	.cc-hero__content h1 {
		font-size: clamp(2.5rem, 12vw, 3.4rem);
	}
	.cc-hero__actions .button {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-hero__video,
	.cc-hero__poster {
		transition: none;
		animation: none;
	}
	.cc-hero__seg.is-active i {
		transition: none;
	}
}

/* ---------- shared section shell ---------- */

.section.cc-section {
	padding: 0 !important;
}

.cc-section > .section-content,
.cc-contact .cc-section {
	max-width: var(--cc-max);
	margin: 0 auto;
	padding: 7rem var(--cc-gutter);
}

.cc-section .row {
	max-width: none;
}

.cc-section h2,
.cc-contact h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1;
	margin: 0 0 1rem;
	max-width: 20ch;
	text-wrap: balance;
}

.cc-section p.cc-lede {
	font-size: 1.15rem;
	line-height: 1.55;
	max-width: 54ch;
	margin: 0 0 3rem;
	color: var(--cc-ink);
}

.cc-section a.cc-more {
	display: inline-block;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--cc-black);
	border-bottom: 2px solid var(--cc-sky);
	padding-bottom: 2px;
	text-decoration: none;
}

.cc-section a.cc-more:hover {
	border-color: var(--cc-black);
}

/* ---------- statement ---------- */

.cc-statement p {
	font-size: clamp(1.7rem, 3.6vw, 3.3rem);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -.025em;
	max-width: 30ch;
	margin: 0;
	color: var(--cc-black);
}

.cc-statement .cc-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(.35em);
	transition: opacity .55s ease, transform .55s ease;
}

.cc-statement p.is-in .cc-word {
	opacity: 1;
	transform: none;
}

.cc-statement p:not(.is-split) .cc-word,
.cc-statement p:not(.is-split) {
	opacity: 1;
	transform: none;
}

/* ---------- marquee ---------- */

.section.cc-marquee-band,
.section.cc-marquee-band.dark {
	padding: 0 !important;
	background: var(--cc-black);
	color: var(--cc-paper);
}

.cc-marquee {
	position: relative;
	overflow: hidden;
	padding: 1.6rem 0;
}

.cc-marquee__pause {
	position: absolute;
	right: var(--cc-gutter);
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	background: var(--cc-black);
	box-shadow: -18px 0 22px 14px var(--cc-black); /* fades the names out behind the control */
}

.cc-marquee__pause:hover {
	background: var(--cc-black);
}

.cc-marquee.is-paused .cc-marquee__track,
.cc-marquee:focus-within .cc-marquee__track {
	animation-play-state: paused;
}

.cc-marquee__track {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.cc-marquee__track {
	display: flex;
	width: max-content;
	animation: cc-marquee 60s linear infinite;
}

.cc-marquee__group {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.cc-marquee__item {
	font-size: clamp(1.4rem, 2.6vw, 2.4rem);
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--cc-paper);
	padding: 0 1.4rem;
}

.cc-marquee__star {
	color: var(--cc-sky);
	font-size: 1.1rem;
	line-height: 1;
}

@keyframes cc-marquee {
	to { transform: translateX(-50%); }
}

.cc-marquee:hover .cc-marquee__track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.cc-marquee__track { mask-image: none; -webkit-mask-image: none; }
	.cc-marquee__track { animation: none; width: auto; flex-wrap: wrap; }
	.cc-marquee__group:last-child { display: none; }
	.cc-marquee__group { flex-wrap: wrap; row-gap: .5rem; }
}

/* ---------- services as an index ---------- */

.cc-services .row {
	margin: 0;
}

.cc-service-row.row {
	border-top: 1px solid var(--cc-line);
	padding: 2.5rem 0;
	margin: 0;
}

.cc-service-row.row:last-of-type {
	border-bottom: 1px solid var(--cc-line);
}

.cc-service-row .col {
	padding-bottom: 0;
}

.cc-service-row h3 {
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1.05;
	margin: 0;
	max-width: 14ch;
}

.cc-service-row p {
	margin: 0 0 .9rem;
	line-height: 1.55;
	font-size: 1.05rem;
	max-width: 50ch;
}

.cc-service-row .cc-price {
	color: #666;
	font-size: .95rem;
}

.cc-services .cc-after {
	margin-top: 2.5rem;
}

/* ---------- selected work ---------- */

.cc-work .row {
	margin-bottom: 0;
}

.cc-work .col {
	padding-bottom: 2.5rem;
}

.cc-work .img {
	margin: 0 0 .9rem;
}

.cc-work .img-inner {
	background: #f2f2f2;
}

.cc-work .img-inner img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: top;
	display: block;
}

.cc-work .cc-work--main .img-inner img {
	aspect-ratio: 2 / 1;
}

.cc-work .cc-work--square .img-inner img {
	aspect-ratio: 1 / 1;
}

.cc-work .cc-work--wide .img-inner img {
	aspect-ratio: 16 / 9;
}

.cc-work .image-zoom img {
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.cc-work .image-zoom:hover img {
	transform: scale(1.03);
}

.cc-work .cc-work__cap {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.cc-work .cc-work__cap strong {
	font-weight: 600;
	color: var(--cc-black);
}

.cc-work .cc-work__cap span {
	color: #666;
	text-align: right;
}

/* ---------- process (dark band, big numerals) ---------- */

.section.cc-process,
.section.cc-process.dark {
	padding: 0 !important;
	background: var(--cc-black);
	color: var(--cc-paper);
}

.cc-process > .section-content {
	max-width: var(--cc-max);
	margin: 0 auto;
	padding: 7rem var(--cc-gutter);
}

.cc-process .row {
	max-width: none;
}

.cc-process h2 {
	color: var(--cc-paper);
}

.cc-process p.cc-lede {
	color: rgba(255, 255, 255, .72);
}

.cc-steps {
	counter-reset: step;
}

.cc-step > .col-inner {
	counter-increment: step;
	border-top: 1px solid var(--cc-line-dark);
	padding-top: 1.25rem;
}

.cc-step > .col-inner::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--cc-sky);
	margin-bottom: 1.5rem;
}

.cc-step h3 {
	color: var(--cc-paper);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 .5rem;
}

.cc-step p {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	line-height: 1.55;
}

/* ---------- blog ---------- */

.cc-section--blog .box-text {
	padding-left: 0;
	padding-right: 0;
}

.cc-section--blog .box-text h5 {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.25;
}

.cc-section--blog .is-divider {
	display: none;
}

.cc-section--blog .post-meta {
	color: #666;
}

.cc-section--blog .row + a.cc-more,
.cc-section .cc-after {
	margin-top: 2rem;
}

/* ---------- contact ---------- */

.section.cc-contact {
	padding: 0 !important;
	background: var(--cc-paper);
	color: var(--cc-ink);
}

.cc-contact .cc-section {
	border-top: 1px solid var(--cc-line);
}

.cc-contact h2 {
	font-size: clamp(2.75rem, 6vw, 5.5rem);
	letter-spacing: -.04em;
	line-height: .95;
	margin-bottom: 1.5rem;
}

.cc-contact .cc-contact__copy p {
	line-height: 1.55;
	max-width: 36ch;
	font-size: 1.1rem;
}

.cc-contact a.cc-tel {
	display: inline-block;
	color: var(--cc-black);
	font-size: clamp(1.6rem, 2.6vw, 2.4rem);
	font-weight: 600;
	letter-spacing: -.03em;
	text-decoration: none;
	border-bottom: 3px solid var(--cc-sky);
	margin-top: .5rem;
}

.cc-contact a.cc-tel:hover {
	border-color: var(--cc-black);
}

.cc-contact .cc-form {
	border: 1px solid var(--cc-line);
	padding: 2.5rem;
}

/* touch-friendly inputs */
.cc-contact .cc-form .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.cc-contact .cc-form .gform_wrapper select {
	min-height: 44px;
}

.cc-contact .cc-form .gform_wrapper .gform_button {
	min-height: 44px;
}

.cc-contact .cc-form .gform_wrapper .gform_button,
.cc-contact .cc-form .gform_wrapper .gform_next_button {
	background: var(--cc-black);
	color: var(--cc-paper);
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 849px) {
	:root { --cc-gutter: 24px; }
	.cc-section > .section-content,
	.cc-contact .cc-section,
	.cc-process > .section-content {
		padding: 5rem var(--cc-gutter);
	}
	.cc-service-row h3 {
		margin-bottom: .75rem;
	}
}

@media (max-width: 549px) {
	:root { --cc-gutter: 16px; }
	.cc-section > .section-content,
	.cc-contact .cc-section,
	.cc-process > .section-content {
		padding: 3.75rem var(--cc-gutter);
	}
	.cc-contact .cc-form {
		padding: 1.25rem;
	}
	.cc-work .cc-work__cap {
		flex-direction: column;
		gap: .15rem;
	}
	.cc-work .cc-work__cap span {
		text-align: left;
	}
}
