html, body, div, span, applet, 
object, iframe, h1, h3, h4, h5, 
h6, p, blockquote, pre, a, abbr, 
acronym, address, big, cite, code,  
del, dfn, em, img, ins, kbd, q, s,
samp, small, strike, strong, sub, 
sup, tt, var, b, u, i, center, dl, 
dt, dd, ol, ul, li, fieldset, form, 
label, legend, table, caption, tbody, 
tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure, 
figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, 
summary, time, mark, audio, video,
img {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

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

:root {
    --bg: #fffffb;
    --proj-bg: #f3f3f2;
    --font: #000;
    --font-2: #666;
    --font-2: #585858;
    --font-3: #737373;
    --lines: #d1d1d1;
    --selection: #ddff4a;
    --selection: #e3ff66;
    --lg: 18px;
    --md: 17px;
    --sm: 16px;
    --xsm: 14px;
    --badge-ls: 10%;
}

::selection {
    /* background: #04ffb7; */
    background: var(--selection);
    color: #000;
}

::-moz-selection {
    background: var(--selection);
    color: #000;
}

img,
video {
    display: block;
}

img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

html {
    font-family: 'reg', sans-serif;
}

@font-face {
    font-family: 'reg';
    src: url(/SuisseIntl-Regular.ttf) format('truetype');
}

body {
    background-color: var(--bg);
    color: var(--font);
    font-family: 'reg', sans-serif;
    font-size: var(--md);
    line-height: 1.3em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
    transition: background-color 0.25s, color 0.25s;
}

#page-container {
    padding: 0 1.5rem;
    padding-bottom: 1rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.5rem 1.5rem 0 1.5rem; 
    /* padding-bottom: 0.6cqw; */
    /* margin-bottom: 10vh; */
    background-color: var(--bg);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6cqw;
    z-index: 30;
}

.header-top {
    grid-column: span 12;
    position: relative;
    /* z-index: 20; */
    font-size: var(--md);
    position: sticky;
    top: 0;
    background-color: var(--bg);
}

.header-title {
    font-size: var(--md);
    grid-column: span 12;
}
.name {
    padding-right: 2px;
}
.header-bottom { 
    grid-column: span 12;
    position: fixed;
    z-index: 1;
    color: var(--font);
    font-size: var(--md);
    top: 47px;
}

#homepage main {
    position: relative;
    top: 59.5703px;
    margin-top: 23vh;
    background-color: var(--bg);
    z-index: 5;
    margin-bottom: 10rem;
}

#homepage main ul {
    display: flex;
    flex-direction: column;
}

#homepage main .projects {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about {
    font-size: var(--lg);
    color: var(--font);
    grid-column: 1 / 13;
    letter-spacing: -0.02em;
}

.about-light {
    color: var(--font-3);
}

header, footer, main ul, #casestudy main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6cqw;
}

#homepage header {
    display: block;
    padding-bottom: 4px;
}

#casestudy header {
    padding-bottom: 0.6cqw;
}

img {
    height: auto;
    display: block;
}

a {
    color: var(--font-2);
    font-family: 'reg';
    text-decoration: none;
    cursor: pointer;
    line-height: 1.3em;
}

button {
    font-family: 'reg';
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'reg';
    line-height: 1.3em;
    font-weight: 400;
    color: var(--font);
}

h1 {
    font-size: var(--lg);
    grid-column: span 1;
}

h2 {
    font-size: var(--lg);
}

h3 {
    font-size: var(--md)
}

h3 {
    font-size: var(--md);
}

#casestudy main {
    margin-bottom: 1rem;
}

main ul {
    column-gap: 0.6cqw;
    row-gap: 4rem;
}

.project-section-title {
    grid-column: span 2;
    padding-bottom: 1.8cqw;
    padding-top: 0.6cqw;
    text-align: end;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--badge-ls)
}

/* .project-grid {
    border-top: 1px solid var(--font);
} */

.projects li {
    overflow: hidden;
    padding: 1.8cqw 0;
    border-top: 1px solid var(--lines); 
}

article {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6cqw;
}

.project-text {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 1.8cqw;
}

.project-text-btm {
    display: flex;
    flex-direction: column;
    gap: 0.6cqw;
}

.badge {
    font-size: 11px;
    padding: 2px 6px;
    letter-spacing: var(--badge-ls);
    outline: 1px solid var(--font);
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
}

.contributions {
    padding-left: 1px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-images {
    grid-column: span 8;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.6cqw;
}

.project-image {
    grid-column: span 4;
    background-color: black;
    height: 23rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.substrate-1 {
    background-color: #77d0fd;
    object-fit: contain;
}

.substrate-1 img {
    width: 80%;
    height: auto;
}

.nola-2 {
    background-color: #d2deda;
    background-color: #ededed;;
    object-fit: contain;
}

.nola-2 img {
    width: 80%;
    height: auto;
}

.synapse-1 {
    position: relative;
}

.synapse-2 {
    background-color: #D4FF65;
    object-fit: contain;
}

.synapse-1 svg {
    width: 16%;
    height: auto;
    position: absolute;
    background-color: #fff;
    margin-right: 0.6cqw;
}

.synapse-2 svg {
    width: 45%;
    height: auto;
    margin-right: 1.3cqw;
    margin-top: 0.6cqw;
}

.hl-1 {
    position: relative;
}

.hl-svg-contain {
    position: absolute;
    display: flex;
    width: 84%;
    gap: 1.25rem;
}

.type-link {
    display: flex;
    flex-direction: column;
    grid-column: span 1;
    justify-self: end;
    align-items: flex-end;
    height: 100%;
    justify-content: space-between;
}

.type-link .badge {
    display: inline-block;
    margin-right: 1px;
}

#homepage .linkout {
    height: unset;
    display: inline-flex;
    padding: 0;
    margin-bottom: -2px;
    white-space: nowrap;
    align-items: center;
    width: auto;
}

#homepage .arrowout {
    margin-right: 0;
    margin-left: .3rem;
    display: inline-flex;
    align-items: center;
}

/* .projects:hover {
    cursor: pointer;
} */

/* - - - project text container - - - */ 
/* .project-text {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6cqw;
    align-items: center;
}

.project-text h3 {
    grid-column: 1 / 3;
}

.contributions {
    display: none;
    gap: 10px;
    grid-column: 3 / 7;
    flex-wrap: wrap;
    width: 100%;
    top: 0;
    left: 0;
}

li {
    list-style: none;
} */

/* to enable text animation: add "display: none" */
/* .project-description {
    grid-column: 3 / 7;
    display: none;
} */
/* ----- */


/* .project-description.is--current {
    display: block;
}

.contributions.is--current {
    display: flex;
}


.wrapper {
    display: inline-block;
    overflow: hidden;
    position: relative;
} 

.wrapper, .word {
    display: inline-block;
    white-space: nowrap;
}  */

/* - - - project image container - - - */ 
/* .project-image {
    background-color: var(--proj-bg);
    height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6cqw;
    position: relative;
}

.substrate {
    width: 72%;
    height: auto;
}

img.nola {
    width: 68%;
    height: auto;
}

.synapse {
    width: 73%;
    height: auto;
}

.halflight {
    width: 68%;
    height: auto;
} */

/* - - - - - - footer - - - - - - */
footer, footer .underline {
    line-height: 1.3em;
    color: var(--font);
    font-size: var(--lg);
}

.email {
    grid-column: 8 / 12;
    cursor: pointer;
}

#toast-wrap {
    grid-column: 10 / 11;
    overflow: hidden;
    position: relative;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

#toast-wrap .toast {
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 0 0.5rem;
    background-color: var(--selection);
    transform: translateX(73.27px);
    font-size: var(--sm);
    letter-spacing: 0.01em;
    border: 1px solid var(--font);
    line-height: 1em;
    display: flex;
    align-items: center;
    padding-bottom: 1.5px;
}

.copyright {
    grid-column: 12 / 13;
    text-align: right;
}

/* - - - - - - - - - - - - project hover effects - - - - - - - - - - - - - */

/* hover effect • underline animation • duration based on length */
.underline-trigger {
    height: 1.3em;
}

.underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
    width: max-content;
    line-height: 1.3em;
    vertical-align: baseline;
}

/* underlined */
.underline-line {
  position: absolute;
  bottom: 0; 
  left: 0;
  height: 1.1px;
  width: 0; 
  background-color: currentColor;
}



/* - - - - - - - case study pages - - - - - - - */
#casestudy {
    font-size: var(--md);
}

#casestudy main {
    grid-auto-rows: auto;
    margin-top: 59.5703px;
}

#image-side {
    grid-column: 1 / 9;
    gap: 0.6cqw;
    display: grid;
}

#image-side img {
    width: 100%;
    height: auto;
}

#text-side {
    grid-column: 9 / 13;
    padding-left: 0.75rem;
}

.text-contain {
    position: sticky;
    top: 1.25rem;
    top: 59.5703px;
}

.title-contain {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
    position: relative;
}

.project-type {
    color: var(--font);
    border: var(--font) 1px solid;
    line-height: 1em;
    font-size: var(--xsm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}

#casestudy h3 {
    color: var(--font-2);
    margin-bottom: 1rem;
    font-size: var(--md);
}

.infobar {
    display: flex;
    font-size: var(--sm);
    border-top: var(--lines) 1px solid;
    border-bottom: var(--lines) 1px solid;
}

.infobar > * {
    display: flex;
    padding: 0.5rem 0;
    white-space: nowrap;
    align-items: center;
}

.infobar > *:not(:first-child) {
  border-left: 1px solid var(--lines);
} 

.year { 
    justify-content: flex-start;
    padding-right: 1rem;
    padding: 1rem 1rem 1rem 0;
}

.role { 
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.linkout { 
    color: var(--font);
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    height: 100%;
    display: flex;
}

.arrowout {
    margin-right: 0.45rem;
}

.proj-row {
    height: 680px;
    overflow: hidden;
}

.full {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--proj-bg);
}

.half {
    display: flex;
    gap: 0.6cqw;
}

.video-bg {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--proj-bg);
    height: auto;
}

.video-bg:has(.vid-hl)  {
    width: 50%;
}

video {
    height: auto;
}

.vid-hl {
    padding: 3.2rem;
}



body.substrate-body #image-side img {
    width: 100%;
    height: auto;
}

body.nola-body #image-side img {
    width: 82%;
    height: auto;
}

body.synapse-body #image-side img {
    width: 70%;
    height: auto;
}

body.halflight-body #image-side img {
    width: 85%;
    height: auto;
}

/* - - - - - -  accordion - - - - - - */
.accordion {
    border-bottom: 1px solid var(--lines);
}

.accordion:last-of-type {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--md);
    background-color: var(--bg);
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
}

.accordion-content {
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}

#casestudy p {
    margin-bottom: 1rem;
}

.accordion[data-state="open"] .accordion-content {
    max-height: 1000px;
    padding-bottom: 1rem;
}

.toggle-icons .minus { display: none; }
.accordion[data-state="open"] .toggle-icons .plus { display: none; }
.accordion[data-state="open"] .toggle-icons .minus { display: block; }


@media (max-width: 1040px) {
    article {
        grid-template-columns: 1fr;
        gap: unset;
    }

    .project-text {
        padding-bottom: 1.2cqw;
    }

     .project-images {
        padding-bottom: 1.2cqw;
    } 

    .type-link {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-self: stretch;
        min-width: 0;
    }

    .type-link .badge {
        margin-left: 1px;
        margin-right: unset;
    }

    .email {
        grid-column: 7 / 12;
    }
}

@media (max-width: 768px) {
    .project-images {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.2cqw
    } 

    .project-image {
        grid-column: span 8;
    }

    .hl-svg-contain {
        width: 70%;
    }

    .project-image {
        max-height: 421px;
    }

    .projects li {
        padding: 1.5rem 0;
    }
}

@media (max-width: 584px) {
    .hl-svg-contain {
        width: 85%;
    }

    .email {
        grid-column: 1 / 12;
    }

    #page-container {
        padding: 0 0.75rem;
        padding-bottom: 1rem;
    }

    header {
        padding: 24px 12px 0;
    }
}