/*general*/
@font-face {
  font-family: "Optima-Medium";
  src: url("../fonts/optima-medium.woff2") format("woff2"),
    url("../fonts/optima-medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
    padding: 30px 50px;
	background-color: black;
	color: #DAD5CB;
    font-size:16px;
    font-family: 'Optima-Medium';
    line-height: 1.5em;
    text-align:center;
    cursor: none;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color:#DAD5CB;
	font-family: 'Optima-Medium';
	cursor: none;
}

p a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	text-decoration-style: dotted;
}

/*header*/
header{
	margin:30px 0px 30px 0px;
	display:flex;
	justify-content: space-between;
	align-items: center;
	z-index: 9999;
}

header .nav{
	margin:0px 0px 0px 80px;
	justify-content: space-between;
	align-items: right;
	position: relative;
  	text-decoration: none;
}

header .nav::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 0;
	height: 3px;
	background-color: currentColor;
	transition: width 0.5s ease;
}

header .nav:hover::after {
    width: 100%;
}

header a {
	font-size:18px;
	text-align: left;
}

h1 {
	margin:0px;
	font-size:30px;
	text-transform: uppercase;
}

.menu-icon {
    display: none;
}

.overlay-menu {
    display: none;
}

/*footer*/
footer {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(218, 213, 203, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    transition: all 0.5s ease;
    font-size: 20px;
    color: #DAD5CB;
}

.footer-icon {
    fill: #DAD5CB;
    width: 30px;
    height: 30px;
}

/*cursor*/
.cursor {
  pointer-events: none;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
}

.cursor__ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform-origin: center;
  mix-blend-mode: difference;
  z-index: 10001;
}

.cursor__ball circle {
  fill: #E33013;
}

/*index page*/
.viewport {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.intro{
	flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: left;
	transform: translateY(-10%);
}

.intro h1{
	font-size: 50px;
	line-height: 1.3em;
	text-transform: none;
}

/* Typewriter effect */
.typewriter {
	text-transform: none;
	display: inline;
}

.typewriter-cursor {
	display: inline-block;
	font-weight: bold;
	animation: blink 0.7s step-end infinite;
}

/* Blinking cursor animation */
@keyframes blink {
	50% {
		opacity: 0;
	}
}

.intro-role,
.intro-story {
    display: block;
}

.intro-role {
    min-height: 1.3em;
}

/*pd/gd/ux pages*/
header {grid-area: header;}
.home1 {grid-area: home1;}
.home2 {grid-area: home2;}
.home3 {grid-area: home3;}
.home4 {grid-area: home4;}
.home5 {grid-area: home5;}
.home6 {grid-area: home6;}
.home7 {grid-area: home7;}
.home8 {grid-area: home8;}
.home9 {grid-area: home9;}
.home10 {grid-area: home10;}
footer {grid-area: footer;}

.home-wrapper {
	display:grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: minmax(10px, auto);
	grid-column-gap:30px;
	grid-row-gap: 30px;
	grid-template-areas:
	'header header'
	'home1  home2'
	'home3  home4'
	'home5  home6'
    'home7  home8'
	'footer footer';
}

.gallery {
    display: inline-block;
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.gallery img,.gallery video,
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    transition: all 0.5s ease;
    background-color: #DAD5CB;
    color: black;
    opacity: 0;
    text-align: left;
    z-index: 1;
    padding: 50px;
    box-sizing: border-box;
}

.gallery:hover .overlay {
    opacity: 1;
}

h2 {
    font-size: 50px;
    line-height: 1.3em;
    color: black;
	margin: 20px 0px 0px 0px;
}

h3 {
    font-size: 18px;
    color: black;
	margin: 10px 0px 0px 0px;
}


/*projects pages*/
header {grid-area: header;}
.project-nav {grid-area: project-nav;}
.project1 {grid-area: project1;}
.project2 {grid-area: project2;}
.project3 {grid-area: project3;}
footer {grid-area: footer;}

.project-wrapper {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(10px, auto);
    gap: 30px;
    grid-template-areas:
        'header      header'
        'project1    project2'
        'project3    project3'
        'project-nav project-nav'
        'footer      footer';
}

.project-nav{
	display:flex;
	justify-content:space-between;
}

h4{
	font-size:18px;
	margin:0px;
}

.project-nav h4 a{
	transition: all .5s ease;
}

.project1, .project2{
	margin:56px 0px 50px 0px;
}

/* Match the visible cap-height tops of the 50px heading and 16px description. */
@media (min-width: 1200px) {
    .project-wrapper > .project2 { padding-top: 5px; }
}

/* Category return navigation, aligned with the project heading. */
.project1 { position: relative; }
.project-back-link {
    position: absolute;
    left: 0;
    bottom: calc(100% + 32px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #DAD5CB;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}
.project-back-chevron { display: block; flex: 0 0 auto; width: 12px; height: 12px; }
.project-back-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

.project-wrapper h2{
	font-size: 50px;
	text-align:left;
	margin:0px 0px 0px 0px;
	color:#DAD5CB;
}

.project-wrapper h3{
	font-size:20px;
	text-align:left;
	margin:20px 0px 0px 0px;
	color:#DAD5CB;
}

.project-wrapper p{
	text-align:left;
	margin:0 0 30px 0;
}

/* Live website links on web project detail pages. */
.project2 .live-site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 24px;
    background-color: transparent;
    color: #DAD5CB;
    border: 1px solid #DAD5CB;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
    .project2 .live-site-button { transition: none; }
}
.project2 .live-site-button:focus-visible { outline: 2px solid #DAD5CB; outline-offset: 4px; }

.full img,
.full video{
	width: 100%;
	height: auto;
	margin-bottom:2%;
}

.half{
	display:flex;
	justify-content:space-between;
}

.half img{
	max-width:49%;
	height:auto;
	margin-bottom:2%;
}
.footer-copyright {
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

.intro a.typewriter {
    color: inherit;
    text-decoration: none;
}

/* Keep navigation comfortably spaced at the right of the header. */
header {
    position: relative;
    gap: 40px;
}

header > a {
    flex-shrink: 0;
}

header .primary-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    margin-left: auto;
}

header .primary-nav .nav {
    margin: 0;
    white-space: nowrap;
}

@media (min-width: 866px) and (max-width: 1199px) {
    header { gap: 24px; }
    header .primary-nav { margin-left: 0; gap: 16px; }
}

@media (max-width: 865px) {
    header .primary-nav { display: none; }
}

.project-nav h4 a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-chevron {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
}

.project-nav h4 a {
    color: #70706e;
}

.project-nav .nav-chevron {
    opacity: 0.52;
}

.project-wrapper > .project-nav {
    margin-top: 64px;
}

/* Use the regular face of Optima for body copy. */
@font-face {
    font-family: 'Optima-Regular';
    src: local('Optima-Regular'), local('Optima');
    font-style: normal;
    font-weight: 400;
}
.category-intro > p,
.project-wrapper > .project2 p {
    font-family: 'Optima-Regular', 'Optima-Medium', sans-serif;
    font-weight: 400;
}
.category-intro > p a,
.project-wrapper > .project2 p a:not(.live-site-button) {
    font-family: inherit;
    font-weight: inherit;
}
