@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');
:root {
    --paper: #f7f7f2;
    --ink: #22231f;
    --muted: #62635d;
    --line: #d9dad1;
    --accent: #6350b7;
    --lavender: #e8e2f4
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px
}

button {
    border: 0
}

img {
    max-width: 100%;
    display: block
}

.wrap {
    width: min(1240px, calc(100% - 112px));
    margin-inline: auto
}

.header {
    height: 100px;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.wordmark {
    font-size: 37px;
    letter-spacing: -3px;
    font-weight: 700
}

.wordmark span {
    font-size: 12px;
    vertical-align: top;
    letter-spacing: 0;
    display: inline-block;
    margin: 8px 0 0 5px
}

.header nav {
    display: flex;
    gap: 38px;
    font-size: 14px
}

.header nav a {
    padding: 10px 0
}

.header nav a:hover,
.text-link:hover {
    color: var(--accent)
}

.header-note {
    font-size: 12px;
    color: var(--muted)
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    font-weight: 500
}

.hero {
    padding-top: 75px
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 100%
}

h1,
h2,
h3,
p {
    margin: 0
}

h1 {
    font-size: clamp(65px, 8.3vw, 118px);
    line-height: 1.03;
    letter-spacing: -6px;
    font-weight: 450;
    margin: 35px 0 44px;
    position: relative
}

.serif {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.045em
}

.asterisk {
    position: absolute;
    right: 9%;
    top: 15px;
    color: var(--accent);
    font-size: 135px;
    font-weight: 400;
    animation: turn 35s linear infinite
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px
}

.hero-bottom p {
    font-size: 17px;
    line-height: 1.65;
    max-width: 460px;
    color: var(--muted)
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: var(--ink);
    color: white;
    border-radius: 40px;
    padding: 20px 27px;
    font-size: 14px;
    transition: transform .25s, background .25s;
    white-space: nowrap
}

.pill:hover {
    background: var(--accent);
    transform: translateY(-3px)
}

.pill span {
    font-size: 22px;
    line-height: 15px
}

.hero-foot {
    margin: 65px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1.3px;
    color: var(--muted)
}

.work {
    padding-top: 100px
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 48px;
    gap: 24px
}

h2 {
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 1.05;
    letter-spacing: -2.7px;
    font-weight: 450;
    margin-top: 22px
}

.section-top p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7
}

.project {
    margin-bottom: 65px
}

.project-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    text-align: left;
    border-radius: 7px;
    height: 570px
}

.game-image {
    background: #171a17;
    color: white;
    padding: 0
}

.game-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s
}

.game-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, #101510b0)
}

.image-tag {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 32px;
    font-size: 10px;
    letter-spacing: 1.7px;
    padding: 10px 14px;
    border: 1px solid currentColor;
    border-radius: 30px
}

.game-title {
    position: absolute;
    z-index: 2;
    bottom: 45px;
    left: 40px;
    font-size: clamp(45px, 6vw, 86px);
    letter-spacing: -4px;
    font-weight: 500
}

.game-title>span {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 12px;
    font-weight: 400
}

.image-arrow {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
    border-radius: 100%;
    background: var(--paper);
    color: var(--ink);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 25px;
    transition: transform .3s
}

.project-image:hover .image-arrow {
    transform: rotate(45deg)
}

.project-image:hover>img {
    transform: scale(1.025)
}

.project-caption {
    padding: 22px 0 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px
}

h3 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.7px
}

h3 button {
    padding: 0;
    background: transparent;
    text-align: left
}

h3 button:hover {
    color: var(--accent)
}

.project-caption p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.5
}

.tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.tags span {
    font-size: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 30px
}

.city-image {
    background: #e4eaf5;
    display: flex;
    align-items: center;
    padding: 60px 50px;
    color: #35446b
}

.city-title {
    font-size: 58px;
    letter-spacing: -3px;
    width: 37%;
    position: relative;
    z-index: 2
}

.city-title span {
    font-size: 13px;
    letter-spacing: 0;
    display: block;
    margin-top: 15px;
    max-width: 170px;
    line-height: 1.6
}

.phones {
    position: absolute;
    display: flex;
    gap: 22px;
    right: 4%;
    top: 80px;
    align-items: center;
    width: 57%;
    transform: rotate(-8deg);
    transition: transform .7s
}

.phones img {
    width: 31%;
    border: 5px solid #f6f8fe;
    border-radius: 23px;
    box-shadow: 0 20px 40px #29374b29;
    height: auto
}

.phones img:nth-child(2) {
    transform: translateY(-34px)
}

.city-image:hover .phones {
    transform: rotate(-5deg) translateY(-8px)
}

.xml-image {
    height: 350px;
    background: #eae7df;
    color: #4b514a;
    padding: 75px 45px 30px
}

.xml-art {
    font: 14px/2.0 monospace;
    display: block
}

.xml-art i {
    font: italic 38px/1.4 'Instrument Serif', Georgia, serif;
    color: #58534c
}

.xml-art b {
    font: 500 45px/1.2 'DM Sans', Arial, sans-serif;
    letter-spacing: -2px
}

.more-work {
    border-top: 1px solid var(--line);
    padding: 35px 0 60px
}

.more-work p {
    font-size: clamp(20px, 2.5vw, 32px);
    margin: 22px 0 17px;
    letter-spacing: -1px
}

.more-work p span {
    color: var(--accent);
    padding: 0 18px
}

.small {
    font-size: 12px;
    color: var(--muted)
}

.about {
    margin-top: 45px;
    padding: 95px 0;
    background: #edeee7
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px
}

.about h2 {
    font-size: 49px
}

.about-mark {
    width: 115px;
    height: 215px;
    background: var(--lavender);
    border-radius: 50%;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    letter-spacing: -12px;
    position: relative;
    transform: rotate(-9deg)
}

.about-mark span {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic
}

.about-mark i {
    position: absolute;
    bottom: 24px;
    font-size: 8px;
    letter-spacing: 2px;
    font-style: normal
}

.about-copy {
    padding-top: 45px
}

.about-copy .large {
    font-size: 24px;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: -.6px
}

.about-copy p {
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 24px;
    color: var(--muted)
}

.interests {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0
}

.interests span {
    font-size: 11px;
    background: #f7f7f2;
    padding: 10px 13px;
    border-radius: 25px
}

.text-link {
    font-size: 13px;
    border-bottom: 1px solid;
    padding-bottom: 7px;
    display: inline-block
}

.contact {
    padding: 110px 0 75px
}

.contact h2 {
    font-size: clamp(65px, 8vw, 110px);
    position: relative
}

.contact-star {
    position: absolute;
    right: 12%;
    color: var(--accent);
    top: 10px;
    font-size: 120px
}

.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px
}

.contact p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8
}

.email {
    display: inline-block;
    font-size: 14px;
    margin-top: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 5px
}

footer {
    padding: 28px 0;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted)
}

footer div {
    display: flex;
    gap: 25px
}

footer a:hover {
    color: var(--accent)
}

.skip {
    position: fixed;
    top: -80px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 15px
}

.skip:focus {
    top: 10px
}

.reveal {
    opacity: 1
}

.js-motion .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s, transform .7s
}

.js-motion .reveal.visible {
    opacity: 1;
    transform: none
}

dialog {
    width: min(850px, calc(100% - 32px));
    max-height: 90vh;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 35px;
    border-radius: 12px
}

dialog::backdrop {
    background: #17191599;
    backdrop-filter: blur(8px)
}

.dialog-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px
}

.dialog-top button {
    background: var(--ink);
    color: white;
    padding: 12px 18px;
    border-radius: 30px
}

dialog h2 {
    margin-bottom: 18px
}

dialog p {
    line-height: 1.8;
    color: var(--muted);
    margin: 18px 0
}

dialog h3 {
    margin-top: 25px;
    font-size: 20px
}

dialog .detail-image {
    width: 100%;
    border-radius: 6px;
    margin: 25px 0
}

dialog .dialog-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin: 28px 0 10px
}

dialog .detail-phones {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 25px;
    background: #e4eaf5;
    border-radius: 6px;
    margin: 25px 0
}

dialog .detail-phones img {
    width: 29%;
    height: auto;
    align-self: start
}

body.modal-open {
    overflow: hidden
}

@keyframes turn {
    to {
        transform: rotate(360deg)
    }
}

@media(min-width:1600px) {
    .hero {
        padding-top: 100px
    }
    .hero h1 {
        font-size: 130px
    }
    .hero-foot {
        margin-top: 80px
    }
}

@media(max-width:950px) {
    .wrap {
        width: calc(100% - 64px)
    }
    .header {
        padding: 0 32px
    }
    .header-note {
        display: none
    }
    .hero h1 {
        letter-spacing: -4px
    }
    .asterisk {
        font-size: 90px;
        right: 1%;
        top: 5px
    }
    .project-image {
        height: 440px
    }
    .city-title {
        font-size: 42px
    }
    .phones {
        top: 100px
    }
    .about-grid {
        gap: 35px
    }
    .about h2 {
        font-size: 40px
    }
    .xml-image {
        height: 330px
    }
}

@media(max-width:600px) {
    .wrap {
        width: calc(100% - 40px)
    }
    .header {
        height: 80px;
        padding: 0 20px
    }
    .wordmark {
        font-size: 32px
    }
    .header nav {
        gap: 22px;
        font-size: 12px
    }
    .hero {
        padding-top: 50px
    }
    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.1px
    }
    .hero h1 {
        font-size: 58px;
        letter-spacing: -3px;
        line-height: 1.04;
        margin: 28px 0
    }
    .asterisk {
        font-size: 44px;
        right: 7%;
        top: 0
    }
    .hero-bottom {
        display: block
    }
    .hero-bottom p {
        font-size: 15px;
        max-width: 340px
    }
    .hero-bottom .pill {
        margin-top: 25px
    }
    .pill {
        padding: 17px 22px;
        font-size: 12px;
        gap: 40px
    }
    .hero-foot {
        margin-top: 40px;
        font-size: 8px;
        letter-spacing: .7px;
        gap: 12px
    }
    .work {
        padding-top: 60px
    }
    .section-top {
        display: block;
        margin-bottom: 30px
    }
    .section-top p {
        margin-top: 20px;
        font-size: 12px
    }
    h2 {
        font-size: 43px;
        letter-spacing: -2px
    }
    .project {
        margin-bottom: 45px
    }
    .project-image {
        height: 360px
    }
    .game-image>img {
        object-position: 52% center
    }
    .image-tag {
        top: 20px;
        left: 20px;
        font-size: 8px;
        padding: 8px 10px
    }
    .game-title {
        left: 22px;
        bottom: 28px;
        font-size: 47px;
        letter-spacing: -2px
    }
    .game-title>span {
        font-size: 7px;
        letter-spacing: 1.8px
    }
    .image-arrow {
        width: 40px;
        height: 40px;
        right: 18px;
        bottom: 20px;
        font-size: 20px
    }
    .project-caption {
        display: block;
        padding-top: 16px
    }
    h3 {
        font-size: 23px
    }
    .project-caption p {
        font-size: 12px
    }
    .tags {
        margin-top: 15px
    }
    .tags span {
        font-size: 9px;
        padding: 6px 10px
    }
    .city-image {
        height: 430px;
        padding: 70px 25px;
        align-items: start
    }
    .city-title {
        font-size: 36px;
        width: 100%;
        letter-spacing: -1.7px
    }
    .city-title span {
        font-size: 11px;
        max-width: none;
        margin-top: 5px
    }
    .phones {
        width: 77%;
        right: 8%;
        top: 180px;
        gap: 12px
    }
    .phones img {
        border-width: 3px;
        border-radius: 15px
    }
    .phones img:nth-child(2) {
        transform: translateY(-15px)
    }
    .xml-image {
        height: 280px;
        padding: 70px 25px 30px
    }
    .xml-art {
        font-size: 11px
    }
    .xml-art i {
        font-size: 27px
    }
    .xml-art b {
        font-size: 29px;
        letter-spacing: -1.4px
    }
    .more-work {
        padding-bottom: 20px
    }
    .more-work p {
        font-size: 22px;
        line-height: 1.6;
        max-width: 300px
    }
    .more-work p span {
        padding: 0 8px
    }
    .about {
        padding: 60px 0
    }
    .about-grid {
        display: block
    }
    .about-mark {
        width: 145px;
        height: 145px;
        font-size: 70px;
        letter-spacing: -8px;
        margin-top: 30px
    }
    .about-mark i {
        font-size: 6px;
        bottom: 17px;
        letter-spacing: 1px
    }
    .about-copy {
        padding-top: 35px
    }
    .about-copy .large {
        font-size: 22px
    }
    .about-copy p {
        font-size: 14px
    }
    .contact {
        padding: 65px 0 45px
    }
    .contact h2 {
        font-size: 64px;
        letter-spacing: -3px
    }
    .contact-star {
        font-size: 65px;
        right: 4%;
        top: 12px
    }
    .contact-bottom {
        display: block;
        margin-top: 25px
    }
    .contact-bottom .pill {
        margin-top: 22px
    }
    .contact p {
        font-size: 14px
    }
    footer {
        flex-wrap: wrap;
        font-size: 10px;
        gap: 22px
    }
    footer div {
        order: 3;
        justify-content: space-between;
        width: 100%;
        gap: 20px
    }
    dialog {
        padding: 23px
    }
    dialog h2 {
        font-size: 38px
    }
    dialog p {
        font-size: 14px
    }
    dialog .detail-phones {
        gap: 8px;
        padding: 15px
    }
}

@media(max-width:600px) {
    .hero .asterisk {
        font-size: 28px;
        top: -27px;
        right: 0
    }
    .contact-star {
        font-size: 35px;
        top: -30px;
        right: 0
    }
}


/* Palette sampled from Noa's supplied portfolio reference. */

:root {
    --paper: #8511a6;
    --ink: #fff;
    --muted: #f0dcf5;
    --line: #ffffff40;
    --accent: #ead2f3;
    --lavender: #f1e5f5
}

.pill,
.image-arrow {
    background: #f4f4f1;
    color: #171717
}

.pill:hover {
    background: #e6d0ee;
    color: #171717
}

.header nav a:hover,
.text-link:hover,
h3 button:hover,
footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px
}

.city-image {
    background: #eddef4;
    color: #47105a
}

.xml-image {
    background: #220b29;
    color: #f4e7f8
}

.xml-art i {
    color: #e2b4ed
}

.about {
    background: #8511a6;
    border-top: 1px solid var(--line)
}

.about-mark {
    background: #f1e5f5;
    color: #71118b
}

.interests span {
    background: #ffffff19;
    border: 1px solid var(--line)
}

.contact.wrap,
footer.wrap {
    width: 100%;
    margin: 0;
    background: #000;
    padding-inline: max(56px, calc((100% - 1240px)/2))
}

.contact {
    --muted: #e5e5e5;
    --line: #ffffff40
}

.contact-star {
    color: #fff
}

footer {
    color: #e5e5e5;
    border-color: #333
}

.skip {
    color: #171717
}

dialog {
    --paper: #faf7fb;
    --ink: #25142a;
    --muted: #66566b;
    --line: #d9cddd;
    --accent: #8511a6
}

dialog .pill,
.dialog-top button {
    background: #8511a6;
    color: #fff
}

dialog .pill:hover {
    background: #681080
}

dialog .text-link:hover {
    color: #8511a6
}

dialog .detail-phones {
    background: #eddef4
}

@media(max-width:950px) {
    .contact.wrap,
    footer.wrap {
        padding-inline: 32px
    }
}

@media(max-width:600px) {
    .contact.wrap,
    footer.wrap {
        padding-inline: 20px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    *,
    *:before,
    *:after {
        animation: none!important;
        transition: none!important
    }
    .js-motion .reveal {
        opacity: 1;
        transform: none
    }
}

.detail-gallery img,
.detail-gallery video {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    margin: 20px 0
}

.detail-phones video {
    max-width: 100%
}

dialog .pill {
    margin: 12px 12px 0 0
}

dialog h3 {
    margin-top: 25px
}

.game-image:has(.game-title):not(:has(img)) {
    background: #220b29
}
/* Centered About section, including its actions on smaller screens. */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}
.about-copy {
    width: 100%;
    max-width: 680px;
    padding-top: 0;
}
.about-copy h2.large {
    margin: 0 0 24px;
    font-weight: 450;
}
.about .interests,
.about-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.about .interests {
    gap: 8px;
}
