html,body {
	margin: 0px;
	scroll-behavior: smooth;
	font-size: 14px;
	box-sizing: border-box;
}

body {
	background: #FAF9F7;
	padding: 0;
	margin: 0;
	border: 7px solid #FFF;
	width: 100%;
	font-family: Helvetica, sans-serif;
}

#aboutme {
	margin: 0;
	padding: 0 0 60px 0;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
    justify-content: center;
}

.about-hero {
	width: 100%;
	padding-top: 80px;
	position: relative;
	transition: background-color 0.4s ease;
	overflow: hidden;
}

.hero-photo {
	position: absolute;
	top: auto;
	bottom: 0;
	right: 0;
	height: var(--hero-locked-height, 100vh);
	width: auto;
	opacity: 0;
	transition: opacity 0.4s ease-out;
	pointer-events: none;
}

body.zoom-long .about-hero {
	background-color: rgba(255, 255, 255, 1);
}

body.zoom-long .hero-photo {
	opacity: 1;
}

.headline-stack {
	display: grid;
	padding-bottom: 10px;
	position: relative;
	z-index: 1;
	align-items: center;
}

.headline-stack h1 {
	grid-area: 1 / 1;
	padding-bottom: 0;
	transition: opacity 0.35s ease-in-out;
}

body.zoom-long .headline-stack {
	display: none;
}

body.zoom-long #aboutme h1 {
	text-align: left;
	margin: 0;
}

.about-h1 {
	margin-bottom: 16px;
}

body.zoom-long #aboutme .about-h1 {
	font-size: 2.25em;
}

body.zoom-long .about-content {
	justify-content: flex-start;
}

body.zoom-long #aroundtheweb {
	margin-top: 24px;
}

body.zoom-long .headline-stack {
	background-color: rgba(255, 255, 255, 0.4);
	padding: 8px 0;
	width: fit-content;
}

body.zoom-long .about-text {
	background-color: rgba(255, 255, 255, 0.4);
	padding: 16px 0;
}

.about-content {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.about-text {
	flex: 1;
	max-width: 766px;
}


.about-text p {
	font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
	font-size: 12pt;
	max-width: 766px;
	text-align: left;
	margin: 0 0 20px 0;
	line-height: 1.6;
	color: #231F20;
}


#aboutme h1 {
	color: #231F20;
	text-align: center;
	font-family: Prata;
	font-size: 2.5em;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 60px */
	letter-spacing: 0.3px;
	max-width: 25em;
	margin: 0 auto;
	padding-bottom: 10px;
}

#aroundtheweb {
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
	width: fit-content;
	margin: 10px auto 0;
	max-width: 90%;
}

#aroundtheweb a {
	color: #C1253B;
	font-family: "Montserrat";
	font-size: 1em;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
}

#aroundtheweb a:hover {
	color: #231F20;
}

.FKA {
	text-decoration: line-through;
}

#casestudies {
	display: grid;
	align-items: center;
    justify-content: center;
    gap: 60px;
}

.project {
	display: flex;
	max-width: 1100px;
	width: 100%;
	border-radius: 8px;
	max-height: 400px;
	min-height: 400px;
	flex-direction: row;
	align-items: flex-start;
	gap: 5vmax;
	align-self: stretch;
	margin: 0 auto;
	padding: 0 40px 0 60px;
}

.project a {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 5vmax;
    width: 100%;
    height: 100%;
    color: inherit;
    cursor: pointer;
}

.project a:hover {
    opacity: 0.9;
}

.company {
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	text-align: center;
}

.company img {
	max-width: 200px;
	height: auto;
}

.digdeeper {
	text-align: center;
	font-family: "Montserrat";
	color: #FFF;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 150%;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding-top: 25px;
}

.digdeeper span {
	opacity: 0.5;
}

.preview {
	overflow: hidden;
	margin-left: auto;
	padding: 0;
	margin-top: auto;
	align-self: flex-end;
	display: flex;
	align-items: flex-end;
}

.preview img {
	max-width: 690px;
	width: 100%;
	height: auto;
}

@media only screen and (max-width: 768px) {

	#helloverflow {
		overflow: hidden;
		width: 100%;
		position: fixed;
		margin-top: -50px;
		z-index: 1000;
		float: none;
		display: flex;
		justify-content: center;
	}

	#hello {
		float: none;
		width: 175px;
		margin: 0 auto;
	}

	#hello img {
		margin-top: -80px;
		margin-left: 0;
		height: 175px;
		width: 175px;
	}

	#mumbojumbo {
		margin-top: 80px !important;
	}

	.zoom-inner {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}

	.zoom-pill {
		order: 1;
		width: 100%;
		justify-content: center;
	}

	.zoom-launched {
		order: 2;
		flex: none;
		justify-content: center;
		margin-right: 20px;
	}

	.zoom-teammates {
		order: 2;
		flex: none;
		justify-content: center;
	}

	#sandrabullock {
		position: static;
		text-align: center;
	}

	body.zoom-long #aboutme .about-h1 {
		font-size: 1.6em;
	}

	.hero-photo {
		width: 100%;
		height: auto;
		top: auto;
		bottom: 0;
		right: 0;
		left: 0;
		transform: none;
	}

	body.zoom-long .about-hero {
		padding-bottom: 325px;
	}

	body.zoom-long .about-content {
		margin: 0;
		max-width: 100%;
		padding: 0;
	}

	body.zoom-long .about-text {
		background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 70%, rgba(255, 255, 255, 0) 100%);
		padding: 20px;
		max-width: 100%;
		text-align: left;
	}

	body.zoom-long .about-text p {
		text-align: left;
	}

	body.zoom-long .about-h1 {
		background-color: transparent;
	}

	#casestudies {
		gap: 40px;
		padding: 0 20px;
	}

	.project {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		max-height: none;
		min-height: auto;
		padding: 30px 24px 0;
		gap: 24px;
		overflow: visible;
	}

	.project a {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.company {
		align-self: center;
		width: 100%;
		flex: none;
		align-items: center;
		text-align: center;
	}

	.company img {
		max-width: 160px;
		height: auto;
	}

	.preview {
		margin-left: 0;
		margin-top: 0;
		width: 100% !important;
		align-self: stretch;
		justify-content: center;
		overflow: visible;
		flex-shrink: 0;
	}

	.preview img {
		width: 100% !important;
		max-width: none;
		height: auto;
	}
}

@media only screen and (max-width: 500px) {

	#aboutme h1 {
		font-size: 1.6em;
		width: 100%;
		padding: 0 5px;
	}

	#aroundtheweb {
		width: 100%;
		padding: 0 5px;
		max-width: 100%;
	}

	.about-content {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}

	.about-text {
		max-width: 100%;
		text-align: center;
	}

	.about-text p {
		text-align: center;
		max-width: 100%;
	}

	#casestudies {
		gap: 30px;
		padding: 0 16px;
	}

	.project {
		padding: 30px 20px 0;
		border-radius: 8px;
	}

	.company img {
		max-width: 150px;
	}

	#mumbojumbo {
		margin: 100px 0 60px 0;
	}
}

@media only screen and (max-width: 1100px) and (min-width: 769px) {
	.project {
		width: 100%;
		max-width: 100%;
		padding: 0 30px 0 40px;
	}

	.preview img {
		max-width: 100%;
		height: auto;
	}
}

@media only screen and (min-width: 769px) {

	#helloverflow {
		float: left;
		overflow: hidden;
		width: 130px;
		margin-top: 80px;
		position: fixed;
		z-index: 1000;
	}

	#hello {
		float: left;
		margin: 0px 0 0 -50px;

	}

	#hello img {
		height: 175px;
		width: 175px;
		margin-left: -60px;
		-webkit-animation-duration: 1.5s;
		-webkit-animation-timing-function: ease;
		-webkit-animation-fill-mode: backwards;
		-webkit-animation-name: fadeInLeft;
		-webkit-animation-delay: 0.5s;
	    -webkit-animation-iteration-count: 1;
		-moz-animation-duration: 1.5s;
		-moz-animation-timing-function: ease;
		-moz-animation-fill-mode: backwards;
		-moz-animation-name: fadeInLeft;
		-moz-animation-delay: 0.5s;
	    -moz-animation-iteration-count: 1;
		animation-duration: 1.5s;
		animation-timing-function: ease;
		animation-fill-mode: backwards;
		animation-name: fadeInLeft;
	    animation-delay: 0.5s;
	    animation-iteration-count: 1;
	}

	#hello {
		position:relative;
	}

	#hello {
		right: -10px;
		-webkit-transition: right;
		-webkit-transition-timing-function: ease-out;
		-webkit-transition-duration: 500ms;
		-moz-transition: right;
		-moz-transition-timing-function: ease-out;
		-moz-transition-duration: 500ms;
		transition: right;
		transition-timing-function: ease-out;
		transition-duration: 500ms;
	}

	#hello:hover {
		 right:-30px;
		-webkit-transition: right;
		-webkit-transition-timing-function: ease-out;
		-webkit-transition-duration: 500ms;
		-moz-transition: right;
		-moz-transition-timing-function: ease-out;
		-moz-transition-duration: 500ms;
		transition: right;
		transition-timing-function: ease-out;
		transition-duration: 500ms;
	}

	#aboutme h1 {
		color: #231F20;
		text-align: center;
		font-family: Prata;
		font-size: 3em;
		font-style: normal;
		font-weight: 400;
		line-height: 150%; /* 60px */
		letter-spacing: 0.3px;
		max-width: 25em;
	}
}


.thumb {
	transition: opacity 0.3s ease;
}

.thumb:hover {
	opacity: 0.8;
}

#seeyalater {
	text-align: center;
	font-size: 14px;
	margin: 0;
	padding: 0;
}

#mumbojumbo {
	margin: 300px 0 100px 0;
	font-family: courier, serif;
	color: #a19781;
	font-size: 10px;
	text-align: center;
	text-transform: uppercase;
	line-height: 150%; /* 17.5px */
	letter-spacing: 1px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

.footer-quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.quote-text {
	font-family: 'Permanent Marker', cursive;
	font-size: 40px;
	color: #23211f;
	line-height: 1;
	letter-spacing: 1.2px;
	text-align: center;
	text-transform: none;
	margin: 0;
	max-width: 625px;
}

.quote-attribution {
	font-family: 'Prata', serif;
	font-size: 20px;
	color: rgba(30, 19, 11, 0.6);
	letter-spacing: 0.6px;
	line-height: 1.5;
	text-align: center;
	text-transform: none;
	margin: 0;
}

.footer-thanks {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	font-weight: bold;
	color: #a49b85;
	letter-spacing: -0.14px;
	text-transform: uppercase;
	line-height: 1.5;
	margin: 0;
}

#sandrabullock {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}

#sandrabullock a {
	font-family: 'Prata';
	text-decoration: none;
	color: #c2c2c2;
}

#sandrabullock a:hover {
	color: #918887;
}

/* Thanks section styling */
#thanks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  margin: 100px auto 50px;
  max-width: 90%;
}

#thanks nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#thanks a {
  color: #C1253B;
  font-family: "Montserrat";
  font-size: 1em;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

#thanks a:hover {
  color: #231F20;
}

/* Case Study Page Styles */
.plated-header {
  background: #1a0f0b;
  padding: 60px 40px;
  text-align: center;
  margin-top: 0;
}

.plated-header img {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.header-nav a {
  color: #C1253B;;
  font-family: "Montserrat";
  font-size: 1em;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.header-nav a:hover {
  color: #FFF;
}

.case-study-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px 60px;
}

.case-study-header {
  text-align: center;
  margin-bottom: 80px;
}

.case-study-header h1 {
  font-family: Prata;
  font-size: 3em;
  color: #231F20;
  margin: 0 0 20px 0;
  font-weight: 400;
}

.case-study-header h2 {
  font-family: Montserrat;
  font-size: 1.1em;
  color: #999;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.section {
  margin-bottom: 80px;
}

.section h3 {
  font-family: Prata;
  font-size: 1.8em;
  color: #231F20;
  margin: 0 0 30px 0;
  font-weight: 400;
}

.section h4 {
  font-family: Montserrat;
  font-size: 1em;
  color: #231F20;
  margin: 40px 0 20px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section p {
  font-size: 1.1em;
  color: #231F20;
  line-height: 1.8;
  margin: 0 0 30px 0;
}

.section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 30px auto;
  max-width: 750px;
}

.section li {
  font-size: 1.1em;
  color: #231F20;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

.section li::marker {
  color: #231F20;
}

.image-wrapper {
  margin: 60px 0;
  text-align: center;
}

.image-wrapper img,
.image-wrapper video {
  max-width: 100%;
  height: auto;
}

.image-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-item {
  text-align: center;
}

.comparison-item img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.comparison-item img:hover {
  opacity: 0.8;
}

.comparison-item video {
  max-width: 100%;
  height: auto;
}

.image-wrapper.bordered img,
.image-wrapper.bordered video {
  border: 5px solid #ede9e1;
}

.image-comparison.bordered .comparison-item img,
.image-comparison.bordered .comparison-item video {
  border: 5px solid #ede9e1;
}

.image-caption {
  font-family: Montserrat;
  font-size: 0.9em;
  color: #999;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.image-grid.results-grid {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid.stacked {
  grid-template-columns: 1fr;
}

.image-grid.stacked .image-grid-item img {
  width: 100%;
}

.image-grid-item {
  text-align: center;
}

.image-grid-item img,
.image-grid-item video {
  max-width: 100%;
  height: auto;
}

.results-grid .image-grid-item img {
  width: 100%;
  height: auto;
}

/* Yearsbooks Prototype Section */
.yearsbooks-prototype {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 60px auto;
  background-image: url('img/img_timehop/th07_01bg.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.yearsbooks-prototype video {
  max-width: 280px;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.highlight-box {
  background: #F5F3F0;
  padding: 40px;
  margin: 60px 0;
}

.highlight-box h4 {
  font-family: Prata;
  font-size: 1.5em;
  margin: 0 0 20px 0;
}

.highlight-box ul {
  margin: 0;
}

.team-credits {
  background: #F5F3F0;
  padding: 40px;
  margin: 60px 0;
  font-size: 0.95em;
}

.team-credits strong {
  font-family: Montserrat;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.team-credits p {
  margin: 0 0 10px 0;
  line-height: 2;
}

.team-credits span {
  color: #a39e9d;
  font-family: Montserrat;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85em;
}

/* Lightbox styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  cursor: default;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* Make thumbnails clickable */
.image-wrapper img[src*="thumb"],
.image-grid-item img[src*="thumb"] {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.image-wrapper img[src*="thumb"]:hover,
.image-grid-item img[src*="thumb"]:hover {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-grid.results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .image-grid.results-grid {
    grid-template-columns: 1fr;
  }
}

/* Content Zoom Selector */
#content-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, padding 0.3s ease;
}

#content-zoom.sticky {
  background: #FAF9F7;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.zoom-pill {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 4px 6px;
  background: #f3f4f6;
  border-radius: 50px;
  position: relative;
}

.zoom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

.zoom-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.14px;
  color: #0f0b1e;
  flex: 1;
  white-space: nowrap;
}

.zoom-meta img {
  width: 18px;
  height: 18px;
}

.zoom-launched { justify-content: flex-start; }
.zoom-teammates { justify-content: flex-end; }

#content-zoom.sticky .zoom-meta {
  display: flex;
}

/* Hide text on project pages when in tl;dr mode (notime) */
body.zoom-notime .case-study-container p,
body.zoom-notime .case-study-container h1,
body.zoom-notime .case-study-container h2,
body.zoom-notime .case-study-container h3,
body.zoom-notime .case-study-container h4,
body.zoom-notime .case-study-container ul,
body.zoom-notime .case-study-container .image-caption,
body.zoom-notime .case-study-container .highlight-box,
body.zoom-notime .case-study-container .team-credits {
  display: none !important;
}

body.zoom-notime .footer-quote {
  display: none;
}

/* Increase width for links in notime zoom level to prevent wrapping */
body.zoom-notime #aroundtheweb {
  max-width: 100%;
  width: 100%;
}

.zoom-slider {
  position: absolute;
  background: white;
  border-radius: 50px;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.zoom-option {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 16px 8px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: rgba(15, 11, 30, 0.6);
  cursor: pointer;
  letter-spacing: -0.14px;
  transition: color 0.3s ease;
  border: none;
  background: transparent;
  position: relative;
  z-index: 1;
}

.zoom-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 1;
  margin-left: 16px;
  position: relative;
  z-index: 1;
}

.zoom-option.active {
  color: #0f0b1e;
}

.zoom-option:hover {
  opacity: 0.8;
}

.zoom-option:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .yearsbooks-prototype {
    max-width: 100%;
  }

  .yearsbooks-prototype video {
    max-width: 180px;
  }

  .plated-header {
    padding: 40px 20px;
  }

  .plated-header img {
    max-width: 150px;
  }

  .header-nav {
    width: 100%;
    padding: 0 5px;
    max-width: 100%;
  }

  .case-study-container {
    padding: 80px 20px 40px;
  }

  .case-study-header h1 {
    font-size: 2em;
  }

  .section h3 {
    font-size: 1.5em;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-comparison {
    grid-template-columns: 1fr;
  }

  .lightbox-close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }

  #thanks {
    width: 100%;
    padding: 0 5px;
    max-width: 100%;
  }

  .quote-text {
    font-size: 28px;
    max-width: 90%;
    padding: 0 20px;
  }

  .quote-attribution {
    font-size: 16px;
  }

  .footer-thanks {
    font-size: 12px;
  }
}

