:root {
    --ink: #0f5858;
    --cream: #F0DFC8;
    --paper: #ffffff;
    --pink: #8ECDD3; /* primary teal */
    --deep-pink: #5AABAF; /* darker teal for accents */
    --yellow: #EDE6D8; /* warm sand */
    --green: #BDD9D5; /* sage */
    --lavender: #EDF7F6; /* soft warm teal for backgrounds */
    --orange: #ff9b6a;
    --line: rgba(15, 88, 88, 0.10);
    --shadow: 0 20px 60px rgba(15, 88, 88, 0.08);
    --radius-lg: 40px;
    --radius-md: 24px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(81, 171, 178, 0.08), transparent 22%),
        radial-gradient(circle at 90% 20%, rgba(225, 218, 198, 0.35), transparent 25%),
        #FAF7F2;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

button {
    font: inherit;
}

.page-shell {
    overflow: hidden;
}

.site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
    background: #F0DFC8;
    border: 1px solid rgba(15, 88, 88, 0.18);
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(15, 88, 88, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pink);
    border: 1px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    font-family: "Fraunces", serif;
}

/* When an image logo is present */
.brand-mark.has-img {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-mark.has-img img {
    display: block;
    width: 180px;
    height: auto;
}

/* Ensure logo scales on small screens */
@media (max-width: 720px) {
    .brand-mark.has-img img {
        width: 120px;
    }
}

/* Header color adjustments for contrast */
.site-header,
.site-header .brand,
.site-header .site-nav {
    color: var(--ink);
}

.site-header a:not(.nav-cta),
.site-header .brand > span {
    color: var(--ink);
}

.site-nav a:not(.nav-cta)::after {
    background: rgba(15, 88, 88, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav a:not(.nav-cta) {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--deep-pink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--ink);
    border-radius: 50%;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: white;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 110px 0;
}

.hero {
    min-height: 760px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
    padding-top: 90px;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-card h2 {
    font-family: "Fraunces", serif;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.8rem, 5.4vw, 5.8rem);
}

.hero h1 em {
    color: var(--deep-pink);
    font-weight: inherit;
}

.hero-description {
    max-width: 650px;
    margin: 30px 0;
    font-size: 1.15rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
    background: var(--pink);
}

.button-secondary {
    background: var(--yellow);
}

.text-link {
    font-weight: 700;
}

.hero-art {
    min-height: 540px;
    position: relative;
}

.art-card {
    position: absolute;
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
}

.card-main {
    inset: 55px 40px 45px 30px;
    padding: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--yellow);
    border-radius: 48% 52% 42% 58% / 42% 42% 58% 58%;
    transform: rotate(-3deg);
}

.card-main p {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(1.4rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    max-width: 12ch;
    text-wrap: balance;
}

.sparkle {
    position: absolute;
    top: 45px;
    right: 55px;
    font-size: 3rem;
}

.scribble {
    margin-top: 30px;
    font-size: 1rem;
    font-weight: 700;
    transform: rotate(-5deg);
}

.card-small {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    z-index: 4;
    border-radius: 50%;
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-pink {
    top: 15px;
    left: 0;
    background: var(--pink);
    transform: rotate(-12deg);
}

.card-yellow {
    right: 0;
    bottom: 40px;
    background: var(--yellow);
    transform: rotate(10deg);
}

.card-green {
    top: 70px;
    right: 5px;
    background: var(--green);
    transform: rotate(7deg);
}

.orbit {
    position: absolute;
    border: 2px dashed var(--deep-pink);
    border-radius: 50%;
    opacity: 0.5;
}

.orbit-one {
    inset: 5px 10px 15px 0;
    animation: spin 26s linear infinite;
}

.orbit-two {
    inset: 95px 70px 85px 60px;
    border-color: var(--ink);
    animation: spin 18s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.marquee {
    overflow: hidden;
    margin: 34px auto 0;
    padding: 14px;
    border: 1px solid rgba(15, 88, 88, 0.25);
    border-radius: 28px;
    background:
        linear-gradient(120deg, rgba(81, 171, 178, 0.2), rgba(255, 255, 255, 0.55) 45%, rgba(225, 218, 198, 0.45));
    box-shadow: 0 12px 30px rgba(15, 88, 88, 0.1);
    transform: none;
}

.marquee-track {
    gap: 16px;
    padding-right: 16px;
    width: max-content;
    display: flex;
    align-items: center;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    padding: 10px 18px;
    white-space: nowrap;
    border: 1px solid rgba(15, 88, 88, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 3px 12px rgba(15, 88, 88, 0.12);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
}

.marquee-track span::after {
    content: "✦";
    margin-left: 14px;
    color: var(--deep-pink);
}

.marquee-track span:nth-child(odd) {
    background: rgba(225, 218, 198, 0.72);
}

.marquee-track span:nth-child(3n) {
    background: rgba(150, 194, 187, 0.34);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.section-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 54px;
}

.section h2 {
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.8rem);
}

.section-heading > p {
    margin: 0;
    font-size: 1.05rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.project-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(57, 32, 39, 0.06);
}

/* all featured cards span the full grid width */
.project-card.featured {
    grid-column: span 2;
}

.project-card.featured:first-child {
    display: flex;
    flex-direction: column;
}

.project-image {
    min-height: 340px;
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.project-card.featured:first-child .project-image {
    min-height: 470px;
}

/* tall image area for the stacked supper club card */
.project-card.featured:last-child .project-image {
    min-height: 620px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.55s ease;
}

.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-arrow {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    position: absolute;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    font-size: 1.35rem;
}

.project-content {
    padding: 30px;
}

.project-category,
.project-tech {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card h3 {
    margin: 6px 0 12px;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    line-height: 1.05;
}

.project-tech {
    display: inline-block;
    margin-top: 16px;
    color: var(--deep-pink);
}

.about-section {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 70px;
}

.about-visual {
    min-height: 600px;
    position: relative;
}

.portrait-placeholder {
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 34px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50% 50% 28px 28px;
    background:
        radial-gradient(circle at 50% 32%, var(--yellow) 0 16%, transparent 16.5%),
        radial-gradient(circle at 50% 45%, var(--pink) 0 30%, transparent 30.5%),
        linear-gradient(145deg, var(--lavender), var(--green));
    box-shadow: 12px 12px 0 var(--ink);
}

.portrait-copy {
    width: 100%;
    padding: 22px;
    background: rgba(255, 253, 248, 0.84);
    border: 1px solid var(--ink);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.portrait-copy span,
.portrait-copy strong {
    display: block;
    align-items: center;
}

.portrait-copy strong {
    font-family: "Fraunces", serif;
    font-size: 2rem;
}

.sticker {
    position: absolute;
    padding: 12px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 700;
}

.sticker-one {
    top: 40px;
    right: -40px;
    transform: rotate(8deg);
}

.sticker-two {
    left: -35px;
    bottom: 300px;
    background: var(--yellow);
    transform: rotate(-8deg);
}

.about-copy p:not(.eyebrow) {
    font-size: 1.08rem;
}

.skills-section {
    padding-top: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    min-height: 310px;
    padding: 28px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.skill-card:nth-child(2) { background: var(--pink); }
.skill-card:nth-child(3) { background: var(--green); }
.skill-card:nth-child(4) { background: var(--yellow); }

.skill-number {
    display: inline-block;
    margin-bottom: 70px;
    font-weight: 800;
}

.skill-card h3 {
    margin: 0 0 12px;
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    line-height: 1.05;
}

.quote-section {
    position: relative;
    text-align: center;
}

.quote-mark {
    height: 80px;
    font-family: "Fraunces", serif;
    font-size: 8rem;
    color: var(--pink);
}

blockquote {
    max-width: 950px;
    margin: 0 auto;
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 5vw, 5.6rem);
    line-height: 1.02;
}

.contact-card {
    padding: 80px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 15%, var(--pink) 0 9%, transparent 9.5%),
        radial-gradient(circle at 93% 68%, var(--green) 0 14%, transparent 14.5%),
        var(--cream);
    box-shadow: 12px 12px 0 var(--ink);
}

.contact-card h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(3.2rem, 6vw, 6.8rem);
}

.contact-card > p:not(.eyebrow):not(.contact-note) {
    max-width: 680px;
    font-size: 1.1rem;
}

.contact-note {
    margin-top: 28px;
    font-size: 0.85rem;
}

code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,.55);
}

footer {
    width: min(1180px, calc(100% - 40px));
    margin: 26px auto 28px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    background: #F0DFC8;
    color: var(--ink);
    border: 1px solid rgba(15, 88, 88, 0.18);
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(15, 88, 88, 0.07);
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

footer .brand {
    gap: 14px;
}

footer .brand-mark.has-img img {
    width: 150px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
    .hero,
    .about-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-art {
        min-height: 500px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card.featured:last-child .project-image {
        min-height: 400px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 720px) {
    .site-header {
        width: calc(100% - 24px);
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 25;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        padding: 120px 28px 40px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 18px;
        background: var(--cream);
        transform: translateY(-110%);
        transition: transform 0.35s ease;
    }

    .site-nav.open {
        transform: translateY(0);
    }

    .site-nav a {
        padding: 12px 0;
        font-family: "Fraunces", serif;
        font-size: 2.2rem;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        color: white;
        font-family: "DM Sans", sans-serif !important;
        font-size: 1rem !important;
    }

    .section {
        width: calc(100% - 28px);
        padding: 78px 0;
    }

    .hero {
        min-height: auto;
        gap: 25px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 15vw, 5.2rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-art {
        min-height: 410px;
    }

    .card-main {
        inset: 55px 18px 40px 18px;
        padding: 38px;
    }

    .card-small {
        width: 78px;
        height: 78px;
        font-size: 1rem;
    }

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

    .project-card.featured:first-child {
        grid-column: auto;
    }

    .project-image,
    .project-card.featured:first-child .project-image,
    .project-card.featured:last-child .project-image {
        min-height: 300px;
    }

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

    .skill-card {
        min-height: 260px;
    }

    .skill-number {
        margin-bottom: 40px;
    }

    .contact-card {
        padding: 48px 24px;
    }

    footer {
        width: calc(100% - 28px);
        padding: 18px 18px 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    footer .brand {
        align-self: center;
    }

    footer .brand-mark.has-img img {
        width: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
