* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f5f0;
    color: #3f4150;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.1;
}

/* LINK HOVER GLOW */

a {
    color: inherit;
    text-decoration: none;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

a:hover {
    text-shadow:
        0 0 3px currentColor,
        0 0 7px currentColor,
        0 0 12px currentColor;
}

/* =========================
   HEADER
   ========================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: grid;
    grid-template-columns: 1fr auto;

    align-items: center;

    padding: 14px 20px;

    border-bottom: 1px solid #3f4150;

    background: #f5f5f0;
}

.logo {
    font-weight: light;
}

nav {
    display: flex;
    gap: 30px;
}


/* =========================
   INTRO
   ========================= */

.intro {
    min-height: calc(100vh - 45px);

    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-bottom: 1px solid #3f4150;
}

.intro-name {
    font-size: clamp(80px, 17vw, 260px);

    line-height: .78;

    letter-spacing: -0.075em;

    text-transform: uppercase;
}

.intro-info {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    max-width: 1000px;
}


/* =========================
   SECTION LABEL
   ========================= */

.section-label {
    padding: 14px 20px;

    border-bottom: 1px solid #3f4150;

    font-size: 12px;

    text-transform: uppercase;
}


/* =========================
   FEATURED PROJECT
   ========================= */

.featured-project {
    padding: 20px;

    border-bottom: 1px solid #3f4150;
}

.featured-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;
}

.featured-info {
    display: grid;

    grid-template-columns: 50px 1fr auto;

    gap: 20px;

    align-items: baseline;

    padding-top: 15px;
}

.featured-info h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 65px);

    line-height: .9;

    letter-spacing: -0.045em;

    font-weight: 400;
}


/* =========================
   PROJECT GRID
   ========================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 0;

   /* border-bottom: 1px solid #3f4150; */
}

.grid-project {
    padding: 15px;

    border-right: 1px solid #3f4150;
    border-bottom: 1px solid #3f4150;
}

.grid-project:nth-child(3n) {
    border-right: none;
}

.grid-image {
    width: 100%;

    margin-bottom: 15px;

    display: flex;

    align-items: top;
    justify-content: center;

    font-size: 11px;
}

.image-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-tall {
    aspect-ratio: 3 / 4;
}

.image-wide {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.image-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-info {
    display: grid;

    grid-template-columns: 30px 1fr;

    gap: 10px;

    align-items: start;

    padding-top: 10px;
}

.grid-info span:first-child {
    opacity: .45;
}

.grid-info h2 {
    margin: 0 0 6px 0;

    font-size: 22px;

    line-height: .95;

    letter-spacing: -0.035em;

    font-weight: 400;
}

.grid-info p {
    margin: 0;

    font-size: 11px;
}

/* =========================
VIDEOS
   ========================= */

.flip-video {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 80px 0;
  border-bottom: 1px solid #3f4150;
}

.flip-video video {
  width: 60%;
  height: auto;
  display: block;
}


/* =========================
   ABOUT
   ========================= */

.about {
    border-bottom: 1px solid #3f4150;
}

.about-content {
    padding: 20px;

    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 40px;

    min-height: 91vh;
}

.about-description {
    font-size: clamp(35px, 5vw, 50px);

    line-height: .97;

    letter-spacing: -0.045em;
}

.about-facts {
    border-top: 1px solid #3f4150;
}

.about-facts div {
    padding: 12px 0;

    border-bottom: 1px solid #3f4150;
}

.about-facts span {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    opacity: .5;
}


/* =========================
   FOOTER
   ========================= */

footer {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    padding: 14px 20px;
}

footer div:nth-child(2) {
    text-align: center;
}

footer div:nth-child(3) {
    text-align: right;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    header {
        grid-template-columns: 1fr auto;
    }

    nav {
        gap: 15px;
    }

    .intro {
        min-height: 75vh;
    }

    .intro-name {
        font-size: 25vw;
    }

    .intro-info {
        grid-template-columns: 1fr 1fr;

        gap: 15px;
    }

    .featured-info {
        grid-template-columns: 30px 1fr;
    }

    .featured-info > span:last-child {
        grid-column: 2;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-project:nth-child(3n) {
        border-right: 1px solid #3f4150;
    }

    .grid-project:nth-child(2n) {
        border-right: none;
    }

    .grid-info h2 {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-description {
        font-size: 40px;
    }

    footer {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    footer div:nth-child(2),
    footer div:nth-child(3) {
        text-align: left;
    }

}


/* =========================
   PROJECT PAGES
   ========================= */

.project-page {
    width: 100%;
}


/* PROJECT INTRO */

.project-intro {
    padding: 20px;

    min-height: 70vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-bottom: 1px solid #3f4150;
}

.project-title {
    font-size: clamp(70px, 11vw, 190px);

    line-height: .8;

    letter-spacing: -0.07em;

    text-transform: uppercase;

    padding-top: 20px;
}

.project-meta {
    display: grid;

    grid-template-columns: 50px 1fr auto;

    gap: 20px;

    align-items: end;
}


/* HERO */

.project-hero-image {
    width: 100%;

    border-bottom: 1px solid #3f4150;
}

.project-hero-image img {
    display: block;

    width: 100%;
    height: auto;
}

.featured-image {
    width: 100%;
}

.featured-image a {
    display: block;
    width: 100%;
}

.featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* DESCRIPTION */

.project-description {
    padding: 20px;

    display: grid;

    grid-template-columns: 1fr 2fr;

    gap: 40px;

    min-height: 30vh;

    border-bottom: 1px solid #3f4150;
}

.project-label {
    font-size: 16px;
}

.project-description-text {
    max-width: 900px;

    font-size: clamp(35px, 3vw, 70px);

    line-height: .93;

    letter-spacing: -0.045em;
}


/* IMAGE GALLERY */

.project-images {
    width: 100%;
    padding: 20px;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    border-bottom: 1px solid #3f4150;
}

.project-images img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* MOBILE */

@media (max-width: 700px) {
    .project-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* NEXT PROJECT */

.next-project {
    padding: 20px;

    min-height: 30vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-bottom: 1px solid #3f4150;
}

.next-project a {
    font-size: clamp(40px, 7vw, 100px);

    line-height: .9;

    letter-spacing: -0.05em;
}


/* MOBILE */

@media (max-width: 700px) {

    .project-intro {
        min-height: 60vh;
    }

    .project-title {
        padding-top: 20px;
        font-size: 10vw;
    }

    .project-meta {
        grid-template-columns: 30px 1fr;
    }

    .project-meta div:last-child {
        grid-column: 2;
    }

    .project-description {
        grid-template-columns: 1fr;

        gap: 40px;
    }

}

/* CV */

.cv {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    min-height: 100vh;
    border-bottom: 1px solid #3f4150;
  
}

.cv > * {
    padding: 15px;
    border-right: 1px solid #3f4150;
}

.cv > *:last-child {
    border-right: none;
}

.cv-intro {
    position: sticky;
    top: 0;
    height: fit-content;
}

.cv-intro h1 {
    margin: 0 0 30px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

.cv-section {
    margin-bottom: 60px;
}

.cv-section h2 {
    margin: 0 0 25px 0;
    font-size: 12px;
    font-weight: normal;
}

.cv-entry {
    margin-bottom: 35px;
}

.cv-entry h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: normal;
}

.cv-entry p,
.cv-other p {
    margin: 0 0 5px 0;
}


@media (max-width: 700px) {

    .cv {
        grid-template-columns: 1fr;
    }

    .cv > * {
        border-right: none;
        border-bottom: 1px solid #3f4150;
    }

    .cv-intro {
        position: relative;
    }

}

.cv-entry h3 {
    font-weight: 700;
}

.cv-intro h1 {
    font-size: 5rem;
}



/* =========================
   FINE ART ARCHIVE
   ========================= */

.art-page {
    background: #3f4150;
    color: #f5f5f0;
    font-family: Georgia, "Times New Roman", serif;
}

.art-page a {
    color: inherit;
}


/* HEADER */

.art-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 25px;

    border: none;

    background: transparent;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: .05em;

      background: #3f4150;
      border-bottom: 1px solid #f5f5f0;
}

.art-logo {
    font-size: 18px;
    font-weight: bold;
}


/* GALLERY */

.art-gallery {
    width: 100%;
    padding: 120px 7vw 150px;
}


/* INTRO */

.art-intro {
    min-height: 75vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding-bottom: 80px;
}

.art-intro p {
    margin: 0 0 20px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .5;
}

.art-intro h1 {
    margin: 0;

    font-size: clamp(80px, 15vw, 230px);
    line-height: .75;
    letter-spacing: -.07em;
    font-weight: normal;
}


/* ARTWORK */

.art-piece {
    margin: 0;
}

.art-piece img {
    display: block;
    width: 100%;
    height: auto;
}


/* CAPTIONS */

.art-piece figcaption {
    display: flex;
    justify-content: space-between;

    padding-top: 10px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: .04em;

    opacity: .6;
}


/* LARGE PIECE */

.art-piece-large {
    width: 72%;
    margin-left: 8%;
    margin-bottom: 25vh;
}


/* SMALL PIECE */

.art-piece-small {
    width: 35%;
    margin-left: 52%;
    margin-bottom: 30vh;
}

.art-piece-right {
    width: 35%;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 30vh;
}


/* WIDE PIECE */

.art-piece-wide {
    width: 85%;
    margin-left: 0;
    margin-bottom: 20vh;
}

/* =========================
   STUDIO / FINE ART HEADER
   ========================= */

.studio-header {
    background: #3f4150;
    border-bottom: 1px solid #f5f5f0;
    color: #e8e5dc;
    
    grid-template-columns: 1fr auto 1fr;
}

.studio-header .studio-archive {
    grid-column: 2;
    
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.studio-header nav {
    grid-column: 3;
    justify-self: end;
}

.image-row {
    display: flex;
    gap: 10px;
}

.image-row img {
    width: 33.33%;
    height: auto;
    display: block;
}




#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: #f5f5f0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-star {
    width: 70px;
    height: 70px;

    animation: star-wiggle 1.8s ease-in-out infinite;
}

@keyframes star-wiggle {
    0% {
        transform: rotate(0deg) scale(1) skew(0deg, 0deg);
    }

    25% {
        transform: rotate(8deg) scale(1.04) skew(1deg, -1deg);
    }

    50% {
        transform: rotate(15deg) scale(0.98) skew(-1deg, 1deg);
    }

    75% {
        transform: rotate(8deg) scale(1.03) skew(1deg, -1deg);
    }

    100% {
        transform: rotate(0deg) scale(1) skew(0deg, 0deg);
    }
}