html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background-color: var(--background-color);
	color:#fff;
  	font-family: 'Hind', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  	font-size:18px;
  	letter-spacing:.5%;
    line-height: 1.7;
	font-weight: 400;
}

/* page transitions */

@media (prefers-reduced-motion: no-preference) {

	/* native cross-fade between pages (Chrome/Edge, Safari 18.2+; no-op elsewhere) */
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: .35s;
		animation-timing-function: ease;
	}

	/* fallback fade-in on load, works in every browser */
	.home-container {
		animation: page-fade-in .4s ease both;
	}
}

@keyframes page-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* scroll-in reveal for content blocks (progressive enhancement — no-op if unsupported) */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.diagram-card:not(:first-of-type),
		.row.highlight-box {
			animation: reveal-up 1s linear both;
			animation-timeline: view();
			animation-range: entry;
		}
	}
}

@keyframes reveal-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* on-load entrance for homepage + page heroes */

@media (prefers-reduced-motion: no-preference) {

	.home-hero,
	.home-container > h1,
	.home-container .row > h1 {
		animation: hero-in .4s ease-out both;
	}

	.home-container .row > h3 {
		animation: hero-in .4s ease-out .05s both;
	}

	.home-container .row > .diagram-card:first-of-type {
		animation: hero-in .4s ease-out .1s both;
	}

	.work-card {
		animation: hero-in .4s ease-out both;
	}

	.work-card:nth-child(1) { animation-delay: .03s; }
	.work-card:nth-child(2) { animation-delay: .06s; }
	.work-card:nth-child(3) { animation-delay: .09s; }
	.work-card:nth-child(4) { animation-delay: .12s; }
}

@keyframes hero-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

a {
	color:var(--main-color);
}

a:hover {
	opacity: .85;
	text-decoration: none;
}

a:focus-visible {
	outline: 3px solid #FF9BC6;
	outline-offset: 2px;
}

.darknav {
	color:#fff !important;
}

img {
	width: 100%;
}

li {
	position: relative;
	list-style: none;
	padding-left: 20px;
	padding-right: 5px;
	text-indent: 0;
}

li::before {
	content: "\25CB";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 14px;
}

h1 {
	color: #fff;
	font-size: 34px;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 800;
	display: block;
	letter-spacing:.5%;
	line-height: 1.25;
	margin: 0 0 16px;
}


h2 {
	font-size: 24px;
	font-family: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 800;
	letter-spacing:.5%;
	line-height:1.1;
}

h3 {
	font-size: 22px;
	font-family: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	letter-spacing:1%;
	line-height:1.4;
	color: rgba(255,255,255,.72);
	margin: 0 0 8px;
}

.home-container .row h2 {
	margin-top: 64px;
	margin-bottom: 24px;
}

/* numbered case-study sections */

.section-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-top: 64px;
	margin-bottom: 24px;
}

.section-head h2 {
	margin: 0;
}

.section-number {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 1px;
	color: #FF9BC6;
	opacity: .8;
	flex-shrink: 0;
}

.stat-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 24px 0 8px;
}

.stat {
	flex: 1 1 160px;
	background-color: #24242e;
	border-radius: 8px;
	padding: 20px;
}

.stat-number {
	display: block;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 30px;
	color: #fff;
	line-height: 1.1;
}

.stat-label {
	display: block;
	font-size: 14px;
	color: #c7c7cd;
	margin-top: 6px;
}

.subhead {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FF9BC6;
	margin: 32px 0 12px;
}

h4 {
	color: #FF9BC6;
	font-size: 20px;
	font-family: 'Montserrat', "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 800;
	letter-spacing:1.5%;
	margin: 0 0 8px;
}

ul {
	margin: 0;
	padding-top: 16px;
}

.container {
	max-width: 1200px;
	margin: auto;
	padding: 0 15px;
	width: 100%;
}

/* header */

.header {
  background-color:var(--background-color);
  position: fixed;
  width: 100%;
  z-index: 3;
  border-top: 5px var(--main-color) solid;
}

.header .wrapper {
	width: auto;
	max-width: 1200px;
	margin: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.header li {
	padding-left: 0;
	padding-right: 0;
	text-indent: 0;
	margin-bottom: 0;
}

.header li::before {
	content: none;
}

.header li a {
	display: block;
 	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	text-decoration: none;
	padding: 13px 16px;
	margin: 0;
    background-color: transparent;
    border-radius: 10px;
    width: auto;
    z-index:100;
    text-indent: 0;
    box-sizing: border-box;
    transition: background-color .15s ease;
}

.header li a:hover {
	background-color: rgba(255,255,255,.1);
	color: #fff;
}

.header .logo {
	display: block;
	padding: 0 20px 0 0;
	color: var(--text-color);
	text-decoration: none;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 900;
	font-size: 22px;
	line-height:1.05;
}

.header .activehome {
	font-weight:700;
	color: #FF9BC6;
	background-color: rgba(255,155,198,.14);
	border-bottom: none;
}

/* menu */

.header .menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 14px;
  background-color: #1e1e24;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: max-height .25s ease, margin-top .25s ease, padding .25s ease;
}

.header .menu-btn:checked ~ .menu {
  max-height: 420px;
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 8px;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 8px 14px;
  margin-right: -8px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: var(--text-color);
  display: block;
  height: 2px;
  border-radius: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 23px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: var(--text-color);
  border-radius: 2px;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 6px;
}

.header .menu-icon .navicon:after {
  top: -6px;
}

/* menu btn */

.header .menu-btn {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.header .menu-btn:focus-visible ~ .menu-icon {
  outline: 3px solid #FF9BC6;
  outline-offset: 3px;
  border-radius: 8px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:before,
.header .menu-btn:checked ~ .menu-icon .navicon:after {
  top: 0;
}

.home-container {
	padding-top:70px;
}

/* full-page blob background, sits behind everything */

.site-wash-canvas {
	position: fixed;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	touch-action: pan-y;
}

.home-hero-wrap {
	position: relative;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.home-hero-wrap {
		min-height: 340px;
		padding-top: 30px;
	}
}

.home-hero {
	display: block;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	margin-top: 0;
}

@media (min-width: 640px) {
	.home-hero {
		font-size: 55px;
		line-height: 1.22;
	}
}

/* work tiles (homepage) */

.work-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 40px 0 20px;
}

.work-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #24242e;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: var(--text-color);
	transition: opacity .2s ease;
}

.work-card:hover {
	opacity: .85;
	text-decoration: none;
}

.work-card-image {
	width: 100%;
	flex-shrink: 0;
	aspect-ratio: 4 / 2.5;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.work-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 24px 28px;
}

.work-card-meta {
	display: flex;
	justify-content: space-between;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #d0d0d6;
	margin-bottom: 14px;
}

.work-card-title {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 1.3;
	color: #fff;
	margin: 0 0 10px;
}

.work-card-desc {
	font-size: 16px;
	line-height: 1.5;
	color: #c7c7cd;
	margin: 0 0 18px;
}

.work-card-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	margin-top: auto;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #FF9BC6;
}

.work-card-link img {
	width: 16px;
	height: 16px;
	transition: transform .25s ease;
}

.work-card:hover .work-card-link img {
	transform: translateX(5px);
}

@media (min-width: 640px) {
	.work-grid {
		grid-template-columns: 1fr 1fr;
		gap: 34px;
	}
}

/* case study diagram card */

.diagram-card {
	background-color: #24242e;
	border-radius: 16px;
	padding: 20px;
	margin: 64px 0;
	box-sizing: border-box;
}

.diagram-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 10px;
}

.diagram-scroll img {
	display: block;
	min-width: 640px;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.diagram img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.mobile-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 640px) {
	.mobile-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

/* case study prev/next nav */

.case-nav {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-top: 100px;
	padding-top: 28px;
	border-top: 1px solid rgba(255,255,255,.12);
}

.case-nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 47%;
	text-decoration: none;
	color: var(--text-color);
	transition: opacity .2s ease;
}

.case-nav-link:hover {
	opacity: .8;
	text-decoration: none;
}

.case-nav-next {
	text-align: right;
}

.case-nav-text {
	display: flex;
	flex-direction: column;
}

.case-nav-next .case-nav-text {
	align-items: flex-end;
}

.case-nav-label {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	letter-spacing: .3px;
}

.case-nav-next .case-nav-label {
	color: #FF9BC6;
}

.case-nav-title {
	font-size: 15px;
	line-height: 1.4;
	color: #e8e8ec;
	margin-top: 4px;
}

.case-nav-arrow {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform .25s ease;
}

.case-nav-arrow-prev {
	transform: scaleX(-1);
	filter: brightness(0) invert(1);
	opacity: .85;
}

.case-nav-link:hover .case-nav-arrow-prev {
	transform: scaleX(-1) translateX(5px);
}

.case-nav-link:hover .case-nav-arrow:not(.case-nav-arrow-prev) {
	transform: translateX(5px);
}

@media (max-width: 479px) {
	.case-nav-label {
		font-size: 16px;
	}

	.case-nav-title {
		font-size: 14px;
	}
}

.diagram-card .row .diagram {
	margin-bottom: 24px;
}

@media (min-width: 640px) {
	.diagram-card .row .diagram {
		margin-bottom: 0;
	}
}

.scroll-hint {
	display: block;
	font-size: 12px;
	color: #9a9aa2;
	text-align: center;
	margin: 8px 0 0;
}

.diagram-caption {
	font-size: 16px;
	line-height: 1.5;
	color: #e8e8ec;
	margin: 14px 0 0;
}

.recreated-tag {
	font-style: italic;
	font-size: inherit;
	color: #e8e8ec;
	margin-right: 6px;
}

@media (min-width: 640px) {
	.scroll-hint {
		display: none;
	}

	.diagram-card {
		padding: 30px;
	}
}

.footer {
	background-color:#e4e4e4;
	width: 100%;
	margin: 0 auto;
	padding: 60px 0 40px;
}

.footer-dark {
	position: relative;
	background-color: rgba(13,13,18,.8);
	background-image:
		radial-gradient(circle 400px at -15% -15%, rgba(255,155,198,.08), transparent 70%),
		radial-gradient(circle 400px at 115% 115%, rgba(0,96,111,.064), transparent 70%);
	color: #fff;
	overflow: hidden;
}

@media (min-width: 640px) {
	.footer-dark {
		background-image:
			radial-gradient(circle 480px at 0% 0%, rgba(255,155,198,.08), transparent 70%),
			radial-gradient(circle 480px at 100% 100%, rgba(0,96,111,.064), transparent 70%);
	}
}

.footer-left {
	width: 60%;
	margin-left: 15px;
	text-align: left;
	float: left;
	box-sizing: border-box;
	padding-left:15px;
}

.footer-left:first-child {
	margin-left: 0;
}

.nametag {
	color: #bbbbbb;
	text-transform: uppercase;
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 12px;
	letter-spacing:.6px;
	margin: 0;
}


/* ---------------------------------inner pages --------------------------------------*/

.highlight-box {
	padding: 24px;
	background: #322832;
	border-radius: 16px;
}

.overview {
	padding:0 5px;
}

.last-child {
	margin-bottom:0px;
}

.bullets {
	padding-top: 16px;
}

li {
	margin-bottom:8px;
}

@media (min-width: 640px) {
	h1 {
	font-size: 60px;
	line-height: 1.2;
	}

	.darknav {
		color:white !important;
	}
	.container {
		width:90%;
		padding: 0;
	}

	.bullets {
		padding-right: 20px;
	}

	.header {
		background: none;
	}

	.header .wrapper {
		width: 90%;
		margin: auto;
	}

	.header li {
		float: left;
	}

	.header li a {
		padding: 17px 2px 2px 2px !important;
		margin-left: 50px;
		background: none;
		border-radius: 0;
		width: auto;
		border-bottom: 2px solid transparent;
	}

	.header li a:hover {
		background-color: transparent;
	}

	.header li a:hover,
	.header .menu-btn:hover {
		color: var(--text-color);
	}

	.header li a:hover, .header .menu-btn:hover {
		border-bottom: 2px var(--main-color) solid;
		opacity: 1;
	}

	.header .menu {
		display: block;
		flex-basis: auto;
		max-height: none;
		box-shadow: none;
		background-color: transparent;
		border-radius: 0;
		gap: 0;
		padding: 0;
		margin-top: 0;
		margin-bottom: 0;
		margin-right: 0;
	}

	.header .menu-icon {
		display: none;
	}

	.header .logo {
		font-size: 25px;
	}

	.header .activehome {
		color:var(--text-color);
		background-color: transparent;
		border-bottom: 2px var(--main-color) solid;
	}

	.home-container {
		padding-top:120px;
	}

	.footer-left {
		margin:0;
		padding:0;
	}
}

@media (min-width: 1024px) {
	.container {
		width:80%;
	}

	.header .wrapper {
		width: 80%;
	}

}
