/* Universial */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Copy default sizing */

div h5 {
    font-weight: 400;
    font-size: 1rem;
    opacity: 66%;
    line-height: 2.2rem;
}

div h4 {
    /* font-size: 16px; */
    font-size: 1.3rem;
    opacity: 81%;
    margin-top: .1em;
}

div h3 {
    /* font-size: 39px; */
    font-size: 1.7rem;
    /* font-size: 3.1vw; */
    font-weight: 150;
    color: gray;
    line-height: 2.2rem;
}

div h2 {
    font-size: 2.8rem;
    /* font-size: 5vw; */
    font-weight: 250;
    line-height:111%;
    padding-bottom: 1.3rem;
    color: gray;
}

div h1 {
    /* font-size: 102px; */
    font-size: 8vw;
    line-height:101%;
    font-weight: 330;
    opacity: 91%;
    padding-bottom: 1.3rem;
}

div p {
    font-size: 16px;
    color:gray;
}


div a {
    color:#bbb;
    font-weight: 300;
}

div a:hover {
    text-decoration: none;
    color: white;
}

/* Quotes */

blockquote {
    font-size: 1.7rem;
    width: 91%;
    border-left: 4px solid black;
    padding: 1em 1em 1em 2.5em;
}

/* Button CTAs */

#main-cta {
    background-color: transparent;
    border-radius: 3rem;
    padding: .75rem 2rem;
    border: 1px solid #515151;
    margin-top: 2rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    /* font-size: 22px; */
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;

    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: #333 0.35s, #333 0.35s;
}

#main-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 3rem;
    background: #222222;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: -1;
}

#main-cta:hover {
    color: #e8e8e8;
    border-color: #333;
  }

#main-cta:hover::before {
    transform: scaleX(1);
}



/* Sections */ 

.main-header {
    height: 88vh;
    width: 80vw;
    align-content: end;
    flex-wrap: wrap;
    /* border: 1px solid black; */
}

.main-header img {
    max-width: 15vw;
    min-width: 11vw;
    margin-bottom: 3rem;
    aspect-ratio: 1 / 1;
    border-radius: 0.22rem;
    object-fit: cover;
}

.product-header {
    height: 55vh;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    max-width: 88vw;
    align-content: center;
}

.product-header h1 {
    font-size: 8vw;
}

.quote {
    display: flex;
    flex-wrap: wrap;
}

/* Articles settings spacing */

.article-copy h3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 90%;
}

.article-copy h5 {
    margin-bottom: 2rem;
}

.annotation {
    max-width: 190px;
    padding-bottom: 3rem;
}


.content-max img {
    width: 100%;
}


/* Image Behviors */

.image-bleed img {
    width: 100%;
    height: auto;
    margin:4rem auto;
    display:block;
    border-radius: 1rem;
}

.product-divider {
    display: flex;
    align-items:end;
    /*
    border: 1px solid black;
    border-top: 1px solid #e8e8e8; */
}

.title-subtitle {
    display: flex;
    /* background-color:gray; */
}

.title-subtitle p {
    font-size: 1.3em;
    opacity: 50%;
    
}

.accordion-section {
    padding-bottom: 1rem;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    padding: 1rem 0;
}

.accordion-section:not(.open) .accordion-header {
    border-bottom: 1px solid #e8e8e8;
}

.accordion-icon {
    margin-top: -1rem;
    font-size: 1rem;
    transition: transform 450ms ease;
}

.accordion-section.open .accordion-icon {
    transform: rotate(180deg);
}

.section-content {
    overflow: hidden;
    max-height: 80rem;
    opacity: 1;
    transition: max-height 0.52s ease, opacity 0.4s ease;
}

.accordion-section:not(.open) .section-content {
    max-height: 0;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .section-content,
    .accordion-icon {
        transition: none;
    }
}


.work-experience {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;

    border-top: 1px solid #e8e8e8;
}

.client-title {
    line-height: 1rem;
}

.container-goldenflex {
    display: grid;
    grid-template-columns: 32% 65%;
    gap: 2rem;
}

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

.container-flex-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

#button-pill {
    padding: 10px 20px 10px 20px;
    border-radius: 30px;
    border: none;
    color: #333;
}

#button-status-ongoing {
    padding: 10px 20px 10px 20px;
    border-radius: 30px;
    border: none;
    color: orange;
    background-color:transparent;
    border: 1px solid orange;
}

#button-status-completed {
    padding: 10px 20px 10px 20px;
    border-radius: 30px;
    border: none;
    color: green;
    background-color:transparent;
    border: 1px solid green;
}



body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    min-height: 100vh;
    background-color: #f5f5f5;

/* Grid Area */    
    display: grid;

    grid-template-areas:
    'header'
    'content'
    'footer';

    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
}

header,
main,
footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
    /* border: #e8e8e8 1px solid; */
}

header {
    grid-area: header;
    padding: 0px;
}

#nav {
    position: sticky;
    top: 0;
    z-index: 1200;
}


main {
    grid-area: content;
    /* Keep first section from feeling cramped beneath sticky nav */
    padding-top: 12px;
    background-color: #f5f5f5;
    padding-bottom: 133px;
}


footer {
    padding-top: 50px;
    grid-area: footer;
    background-color: #0d0d0d;
    min-height: 80vh;
}

/* BOTTOM PROJECT NAVIGATION */

main.has-project-nav {
    padding-bottom: 0;
}

.project-nav {
    background-color:transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e8e8e8;
    margin-top: 6rem;
    padding: 1.3rem 0 1.3rem 0;
}

.project-nav a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2rem 0;
    text-decoration: none;
    color: black;
    transition: opacity 0.2s ease;
  }

.project-nav a:hover {
    opacity: 0.4;
    color: black;
    text-decoration: none;
  }

.nav-prev {
    margin-left: 1rem;
    padding-right: 2rem;
  }

.nav-next {
    text-align: right;
    padding-left: 2rem;
    margin-right: 1rem;
    /* border-left: 1px solid #e8e8e8; */
  }

  .nav-direction {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.35;
  }

  .nav-title {
    font-size: 1.2rem;
    font-weight: 330;
    letter-spacing: -0.01em;
  }

  @media (max-width: 640px) {
    .project-nav a { padding: 1.25rem 0; }
    .nav-prev { padding-right: 1rem; }
    .nav-next { padding-left: 1rem; }
    .nav-title { font-size: 0.875rem; }
  }

.project-nav:has(.nav-next:only-child) .nav-next {
    width: 100%;
    text-align: right;
    border-left: none;
    padding-left: 0;
    padding-right: 1rem;
    grid-column: 2;
}

.project-nav:has(.nav-prev:only-child) .nav-prev {
  width: 100%;
}

/* Container CSS Grid */

.container-one {
    max-width: 1280px;
    margin:55px auto;

    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;

    /* background-color: red; */
}

.container-two {
    max-width: 1280px;
    margin:33px auto 99px auto;

    display: grid;

    /* grid-template-columns: repeat(autofill, minmax(333px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: 33px;
    /* background-color: blue; */
}

.container-two img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container-three {
    max-width: 1280px;
    margin:33px auto 99px auto;

    display: grid;

    /* grid-template-columns: repeat(autofill, minmax(333px, 1fr)); */
    grid-template-columns: repeat(3, 1fr);
    gap: 33px;
}

.container-four {
    max-width: 1280px;
    margin:66px auto;

    display: grid;

    /* grid-template-columns: repeat(autofill, minmax(333px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    /* background-color:green ; */
}

.container-golden {
    padding-top: 11rem;
    max-width: 1280px;

    display: grid;

    /* grid-template-columns: repeat(autofill, minmax(333px, 1fr)); */
    grid-template-columns: 1fr 2fr;
    gap: 33px;
}

.container-golden h1 {
    font-size: 6vw;
}

.case-section {
    margin-bottom: 15rem;
}

.case-section-header .container-one,
.case-section-body .container-one {
    margin: 0;
}

.case-heading {
    border-bottom: 1px solid #e8e8e8;
    padding-top: 6rem;
    padding-bottom: 1.25rem;
}

.case-section-body {
    margin-top: 0;
}

.case-lead h2 {
    max-width: 94%;
}

.case-lead h3 {
    max-width: 88%;
}

#insight .case-section-body {
    padding-top: 2rem;
}

#insight .insight-quote {
    padding: 2.5rem 0 0.5rem 0;
}

#insight .insight-quote h2 {
    /* font-size: clamp(2.6rem, 6.2vw, 5.4rem); */
    font-size: 5vw;
    line-height: 111%;
    max-width: 88%;
    letter-spacing: -0.02em;
}

#insight .insight-support {
    margin-top: 3rem;
    max-width: 52ch;
    font-size: 1.05rem;
    color: #5f5f5f;
}

.case-media,
.case-point {
    margin-top: 6rem;
}

.case-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0;
}

.case-list li {
    margin-bottom: 1rem;
}

.case-image {
    margin-top: 1.5rem;
}

#role .case-image + .case-section-body {
    padding-top: 4rem;
}

#impact {
    background-color: #26292d;
    margin: 6rem calc(50% - 50vw);
    padding: 2.5rem 0 9rem;
}

#impact .container-one {
    margin: 2rem auto;
}

#impact .case-heading {
    border-bottom: 1px solid rgba(245, 245, 245, 0.28);
}

#impact .product-divider p,
#impact h1,
#impact h3,
#impact h4,
#impact p {
    color: #f3f4f6;
    opacity: 1;
}

#impact h4 {
    color: #d7dbe0;
}

#impact h3 {
    /* max-width: 26ch; */
    line-height: 1.06;
}

.legacy-main-content {
    display: none;
}


.thumbnail {
    /* 
    border: black 1px solid;
    color: #fff; */
    border: #e8e8e8 1px solid;
    color: #333;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 1rem;

    /* All cover cards start hidden */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.thumbnail.visible {
    opacity: 1;
    transform: translateY(0);
}

.thumbnail img {
    height: 25vh;
    border-radius: .5rem;

    margin-bottom: 1rem;
}

/*
.thumbnail img {
    object-fit:cover;
    height: auto;
    width: 100%;
    padding-left: 2rem;
    /* overflow: hidden;
}

.thumbnail img:hover {
    transform: scale(1.1);
    transition: 150ms ease;
}

*/


.projects {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: #333;
    border-radius: 11px;
    font-size: 20px;
    padding: 11px;

    /* Intersection Observer reveal */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects img {
    object-fit: cover;
    width: 100%;
    border-radius: 11px;
    transition: transform 250ms ease, filter 250ms ease;
}

.projects:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 250ms ease, transform 250ms ease;
}

.projects:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* .projects video {
    object-fit: cover;
} */

.cover {
    /* border: black 1px solid;
    background: gray;
    color: #fff; */
    background: transparent;
    border: #e8e8e8 1px solid;
    border-radius: 1rem;
    color: #333;
    padding: 20px;
    
    /* All cover cards start hidden */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Revealed state via I0 */
.cover.visible {
    opacity: 1;
    transform: translateY(0);
}

.cover-media {
    position: relative;
}

/* BASE IMAGE STYLE */
.cover img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 480px;
    border-radius: 0.5rem;
    display: block;

    margin-bottom: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .cover img {
      height: 300px;
    }
  }

.project-pill {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: #f5f5f5;
    opacity: 0.76;
    color: #545454;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    pointer-events: none;
}

.project-pill-group {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: calc(100% - 4rem);
    z-index: 2;
    pointer-events: none;
}

.cover:nth-of-type(1) {
    /* background: purple; */
    grid-column: 1 / 3;
}

.cover:nth-of-type(3) {
    /* background: blue; */
    grid-column: 1 /4;
}

.cover:nth-of-type(5) {
    /* background: green; */
    grid-column: 2 / 4;
}

/* PASSWORD GATE STYLING */

#gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 12px;
}

#gate h2 {
    font-size: 3.3vw;
    margin-bottom: 1.3rem;
}

#gate input {
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    width: 260px;
    outline: none;
    background: transparent;
}

#gate input:focus {
    border-bottom: 1px solid #333;
}

#gate input::placeholder {
    color: #bbb;
}

#gate button {
    background-color: transparent;
    border-radius: 3rem;
    padding: .75rem 2rem;

    border: 1px solid #515151;
    margin-top: 3rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;

    font-size: 1rem;
    cursor: pointer;
}

#gate button:hover {
    background-color: #3a3442;
    color: #e8e8e8;
    transition: 150ms;
}

#gate a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

#gate a:hover {
    color: #333;
}




/* MEDIA QUERIES FOR RESPONSIVENESS */


/* Golden ratio responsiveness */
@media(max-width: 600px) {
    .container-golden {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .container-goldenflex {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    main {
        padding-top: 8px;
    }
}


/* Portfolio 2 */
@media(max-width: 600px) {
    .container-two {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    #impact .container-one {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Portfolio 3 */
@media(max-width: 900px) {
    .container-three {
        grid-template-columns: 1fr;
        width: 100%;
    }

.cover:nth-of-type(1) {
    grid-column: 1;
}

.cover:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
}

.cover:nth-of-type(5) {
    grid-column: 1;
    grid-row: 5;
}

.project-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
}

.project-pill-group {
    left: 2rem;
    bottom: 3.3rem;
    max-width: calc(100% - 1.6rem);
    gap: 0.5rem;
}
}

@media(max-width: 900px) {
    .container-four {
        grid-template-columns: 1fr;
    }
}


/* Footer Queries */




/* Flexbox Navigation */

.navbar {
    background: transparent;
}

.navbar a {
    color: gray;
    position: relative;
    text-decoration: none;
}

.navbar a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -1px;

    width: 100%;
    height: 1px;

    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.3s ease;
}


.navbar a:hover {
    text-decoration:double;
    color: black;
}

.navbar a:hover::after  {
    transform: scaleX(1)
}


.custom-navbar-bg {
    background-color: #f5f5f5;
}

/* Underline Animation Exception */
a.navbar-brand::after,
#logo::after {
  display: none;
}


/* Image Logo */

header img {    
    max-width: 0.9em;
    margin-left: 0.3rem;

}


/* Footer */

.footer-item {
    color:white;
    padding: 20px;
    /* border: #e8e8e8 1px solid; */
    line-height: .66rem;
}

.footer-item h6 {
    /* font-weight: 650; */
    padding-bottom: 1rem;
    opacity: 77%;
}

/* Hide close buttons */
.close-btn {
    display: none;
}

/* Mobile Overlay Menu */
.mobile-overlay {
    visibility: hidden;
    pointer-events: none;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.mobile-nav {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    color: lightgray;
    font-size: 2rem;
    text-decoration: none;
    font-weight: 300;
}

.mobile-nav a:hover {
    color: white;
}


.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none !important;
    border: none !important;
    padding: 0;
    z-index: 10000;
  }
  
  .hamburger-btn:focus {
    box-shadow: none;
    outline: none;
  }
  
  .bar {
    display: block;
    width: 22px;
    height: 2px;
    background:gray;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
  }
  
  .hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: white;
  }
  .hamburger-btn.active .bar:nth-child(2) {
    background: white;
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: white;
  }

/* Ensure body doesn't scroll when overlay is open */
body.overlay-open {
    overflow: hidden;
}
