﻿/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', 'Inter', sans-serif;
    background-color: #000;
    color: #F2F2F2;
    overflow: hidden; /* Prevent scrolling on desktop */
    height: 100vh;
    width: 100%;
}

.hpr-background {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 28% 22%, rgba(98, 113, 158, .72), transparent 38%),
        radial-gradient(circle at 74% 72%, rgba(115, 75, 132, .52), transparent 42%),
        linear-gradient(135deg, #202942 0%, #303c62 52%, #251f3b 100%);
}

/* Container & Layout */
.portfolio-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center content */
    padding: 0 4rem; /* Horizontal padding only */
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Hero Image Centered */
.hero-image-container {
    position: absolute; /* Changed to absolute within container */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    z-index: 1;
    pointer-events: none;
    /* Use both the entry fade AND the continuous float animation */
    opacity: 0; /* Hidden initially for fade in */
    animation: heroFadeIn 1.5s ease forwards, float 6s ease-in-out infinite;
    animation-delay: 0.1s, 0s; /* Start float immediately, fade in slightly delayed */
}

.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 48% 48% 42% 42% / 42% 42% 54% 54%;
    object-fit: cover;
    object-position: center 25%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.project-card { color: inherit; text-decoration: none; }
.project-card:nth-child(3) { animation-delay: .7s; }

@keyframes float {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
    100% { transform: translate(-50%, -50%); }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-grid {
    display: flex;
    flex-direction: row;
    max-width: 1500px; /* Increased slightly to allow separation */
    width: 100%;
    gap: 8rem; /* Increased gap to push cards to the right */
    padding: 0;
    padding-bottom: 6rem; /* Add padding at bottom to clear the nav */
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Left Column */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    max-width: 500px;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    /* Entry Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.greeting {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.role-location {
    font-size: 18px;
    font-weight: 500;
    color: rgba(242, 242, 242, 0.9);
    line-height: 1.5;
}

.bio-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(242, 242, 242, 0.85);
    margin-top: 1rem;
    max-width: 440px;
}

/* Right Column */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding-right: 2rem;
    max-width: 600px;
    /* removed margin-left: auto to allow centering */
}

.section-title {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;

    /* Entry Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* iOS Liquid Glass Card Style */
.project-card {
    position: relative;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* The Glass Effect */
    background: rgba(40, 45, 40, 0.4); /* Dark greenish tint from screenshot */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Border and Shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Entry Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-card:nth-child(1) { animation-delay: 0.4s; }
.project-card:nth-child(2) { animation-delay: 0.55s; }
.project-card:nth-child(3) { animation-delay: 0.7s; }
.project-card:nth-child(4) { animation-delay: 0.85s; }

.project-card:hover {
    background: rgba(50, 55, 50, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 12px 32px -2px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);

    /* Override animation fill mode for hover state interaction if needed,
       but `forwards` keeps final state. We need to be careful not to fight transform.
       Actually, once animation finishes, it holds. Hover changes transform.
       Usually this works fine, but sometimes it snaps.
       Let's ensure hover uses !important or specific specificity if issues arise.
       Testing suggests standard CSS hover works after animation completes.
    */
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px; /* slightly more rounded for iOS feel */
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.project-icon img.full-cover {
    width: 100%;
    height: 100%;
    margin: 0;
}

.card-title-group h3 {
    font-size: 19px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
}

.year {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.card-body {
    padding-left: 0; /* Aligned left */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.view-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    transition: color 0.2s;
}

.view-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Social Links at Bottom */
.social-links-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    /* Entry Animation */
    opacity: 0;
    /* transform is handled in animation */
    animation: socialEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1s;
}

.social-links {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure icons are white */
}

/* Keyframes for Entry Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes socialEntry {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        overflow-y: auto; /* Allow scrolling on tablets/mobile */
        overflow-x: hidden; /* Prevent horizontal scroll */
        height: auto;
        width: 100%;
    }

    .portfolio-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem;
        display: block; /* Standard block layout */
    }

    .background-layer .bg-img {
        animation: none; /* Disable background animation */
    }

    .content-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-top: 2rem;
        padding-bottom: 6rem;
    }

    .hero-image-container {
        display: none; /* Hide hero image on tablet/mobile as requested */
    }

    .left-column {
        padding-left: 0;
        text-align: center;
        align-items: center;
        max-width: 600px;
    }

    .greeting {
        font-size: 32px; /* Smaller text */
    }

    .bio-text {
        max-width: 100%;
        font-size: 15px;
    }

    .right-column {
        padding-right: 0;
        width: 100%;
        max-width: 100%; /* Full width cards */
    }

    .social-links-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 3rem auto 1rem;
        display: flex;
        justify-content: center;

        /* Reset mobile animation */
        animation-name: socialEntryMobile;
    }

    @keyframes socialEntryMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile specific tweaks */
@media (max-width: 600px) {
    .portfolio-container {
        padding: 1.5rem;
    }

    .greeting {
        font-size: 28px;
    }

    .project-card {
        padding: 1.25rem;
    }

    .card-title-group h3 {
        font-size: 17px;
    }

    .year {
        font-size: 14px;
    }
}

/* Homepage alignment refinement */
.hpr-header { padding: 0; }
.hpr-navbar { position: absolute; top: 0; right: 4%; left: 4%; display: flex; align-items: center; justify-content: space-between; width: 92%; margin: 3vh 0; color: #fff; font-family: "Heebo", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.hpr-logo { display: flex; align-items: center; transform: scale(1.2); }
.hpr-logo img { height: 28px; }
.hpr-nav-links { gap: 28px; }
.hpr-nav-links a { color: inherit; font-size: 13px; }
.content-grid { max-width: 1500px; justify-content: center; gap: clamp(74px, 9vw, 150px); }
.bio-text { max-width: 440px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; }
.project-list { display: grid; }
.hpr-more-projects { justify-self: center; align-self: center; gap: 13px; margin-top: 9px; }
.hpr-more-arrow { width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.hpr-more-projects:hover .hpr-more-arrow { transform: translateX(5px) rotate(45deg); }
.social-links-container { bottom: 3.35rem; }
.hpr-copyright { position: fixed; right: 4%; bottom: 3.6rem; z-index: 10; margin: 0; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .02em; }

.hpr-modal { display: flex; visibility: hidden; background: rgba(0,0,0,0); opacity: 0; pointer-events: none; backdrop-filter: blur(0); transition: opacity .55s ease, background .55s ease, backdrop-filter .55s ease, visibility 0s linear .55s; }
.hpr-modal.is-open { visibility: visible; background: rgba(9,13,16,.58); opacity: 1; pointer-events: auto; backdrop-filter: blur(12px); animation: none; transition-delay: 0s; }
.hpr-modal__card { background: rgba(22,27,27,.9); opacity: 0; transform: scale(.91) translateY(26px); transition: transform .78s cubic-bezier(.34,1.56,.64,1), opacity .5s ease; }
.hpr-modal.is-open .hpr-modal__card { opacity: 1; transform: scale(1) translateY(0); }
.hpr-modal__copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hpr-modal.is-open .hpr-modal__copy > * { opacity: 1; transform: translateY(0); }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(1) { transition-delay: .12s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(2) { transition-delay: .2s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(3) { transition-delay: .28s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(4) { transition-delay: .36s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(5) { transition-delay: .44s; }
.hpr-modal__media { border-left: 0; background: transparent; opacity: 0; transform: translateX(28px); transition: opacity .65s ease .28s, transform .8s cubic-bezier(.2,.8,.2,1) .28s; }
.hpr-modal.is-open .hpr-modal__media { opacity: 1; transform: translateX(0); }

@media (max-width: 1024px) {
  .hpr-navbar { right: 24px; left: 24px; width: calc(100% - 48px); }
  .hpr-copyright { position: relative; right: auto; bottom: auto; margin: 8px auto 30px; text-align: center; }
}
@media (max-width: 600px) {
  .hpr-navbar { right: 20px; left: 20px; width: calc(100% - 40px); }
  .hpr-nav-links { gap: 15px; }
  .hpr-nav-links a { font-size: 11px; }
}

/* Last-mile sizing guard: keep card dimensions independent of older rules above. */
.right-column { width: min(44vw, 540px); max-width: 540px; gap: .55rem; }
.project-list { gap: .82rem; }
.project-card { width: 100%; box-sizing: border-box; }
.section-title { margin-bottom: .2rem; }
.hpr-more-projects { margin-top: 2px; font-size: 14px; font-weight: 500; }
.social-links-container { bottom: 3.7rem; }
@media (min-width: 1600px) { .right-column { width: 540px; max-width: 540px; } }
@media (max-width: 1024px) { .right-column { width: 100%; max-width: 720px; } }

/* Homepage polish: compact cards, Apple-like menu, balanced preview */
.section-title { font-size: 15.5px; }
.greeting { font-size: clamp(48px, 3.5vw, 62px); }
.bio-text { width: min(100%, 510px); font-size: 18px; line-height: 1.58; }
.project-card { padding: 1rem 1.25rem; border-radius: 28px; }
.card-content { gap: .55rem; }
.card-header { align-items: center; }
.card-title-group h3,
.year { line-height: 1; }
.project-desc { margin: 0; font-size: 13.5px; line-height: 1.42; }
.view-link { margin-top: 2px; font-size: 12px; }
.social-links-container { bottom: 3.05rem; }

.hpr-footer .footer-navbar { justify-content: flex-end; color: #fff; }

.hpr-modal__card {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  width: min(1120px, 92vw);
  min-height: min(680px, 82vh);
  border-radius: 38px;
  background: rgba(28, 32, 33, .82);
  backdrop-filter: blur(30px) saturate(145%);
}
.hpr-modal__copy {
  display: flex;
  padding: clamp(66px, 7vw, 96px);
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.hpr-modal__heading { gap: 16px; align-items: center; }
.hpr-modal__heading img { width: 54px; height: 54px; border-radius: 14px; }
.hpr-modal__heading h2 { margin: 0; font-size: clamp(34px, 3vw, 44px); line-height: 1; }
#preview-description { max-width: 520px; margin-top: 40px; font-size: 17px; line-height: 1.65; }
.hpr-modal__details { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 4px; }
.hpr-modal__section { margin-top: 25px; }
.hpr-modal__section p { margin-top: 7px; font-size: 14px; line-height: 1.6; }
.hpr-modal__button {
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 34px;
  padding: 13px 19px;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.15);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background .25s ease, border-color .25s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.hpr-modal__button:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.16); transform: translateY(-2px); }
.hpr-modal__button span { transition: transform .25s ease; }
.hpr-modal__button:hover span { transform: translate(2px,-2px); }
.hpr-modal__media { min-height: 0; padding: clamp(58px, 6vw, 82px) clamp(38px, 5vw, 64px); }

@media (max-width: 1024px) {
  .hpr-modal__card { min-height: 0; }
  .hpr-modal__copy { padding: 62px 48px 48px; }
}

@media (max-width: 600px) {
  .content-grid { gap: 82px; padding-top: 162px; padding-bottom: 28px; }
  .section-title { margin-bottom: 12px; font-size: 14px; }
  .project-list { gap: 15px; }
  .project-card { padding: 1.05rem 1.1rem; border-radius: 26px; }
  .project-desc { font-size: 13px; }
  .hpr-nav-links { gap: 0; padding: 68px 18px 14px; }
  .hpr-nav-links a { display: flex; min-height: 49px; padding: 0 7px; align-items: center; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
  .hpr-nav-links a:first-child { border-top: 0; }
  .social-links-container { margin: 36px auto 0; }
  .hpr-footer { margin: 10px 20px 10px; }
  .hpr-footer .footer-navbar { justify-content: center; padding: 8px 0; font-size: 9px; }
  .hpr-modal__card { max-height: 94vh; }
  .hpr-modal__copy { padding: 62px 28px 38px; }
  #preview-description { margin-top: 30px; font-size: 15px; }
  .hpr-modal__media { min-height: 320px; padding: 34px 26px; }
}

/* Responsive homepage composition — authoritative overrides */
.portfolio-container { padding-inline: clamp(44px, 6vw, 108px); }
.content-grid {
  width: min(88vw, 1520px);
  max-width: none;
  margin-inline: auto;
  justify-content: space-between;
  gap: clamp(82px, 9vw, 190px);
}
.left-column { width: min(41vw, 530px); max-width: 530px; }
.right-column { width: min(44vw, 540px); max-width: 540px; gap: .55rem; }
.bio-text { width: min(100%, 510px); max-width: 510px; font-size: clamp(18px, 1.16vw, 21px); line-height: 1.58; }
.project-list { gap: .82rem; }
.project-card { width: 100%; box-sizing: border-box; }
.section-title { margin-bottom: .2rem; }
.hpr-more-projects { margin-top: 2px; font-size: 14px; font-weight: 500; }
.social-links-container { bottom: 3.7rem; }

.hpr-footer {
  position: fixed;
  right: 4%;
  bottom: 0;
  left: 4%;
  z-index: 30;
  width: 92%;
  box-sizing: border-box;
}
.hpr-footer .footer-navbar {
  display: flex;
  position: relative;
  justify-content: space-between;
  padding: 10px 0;
  color: rgba(255,255,255,.72);
  font-family: "Heebo", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hpr-footer a { color: inherit; text-decoration: none; }
.hpr-menu-toggle { display: none; }

.hpr-page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,31,31,.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 420ms cubic-bezier(.22,1,.36,1), backdrop-filter 420ms ease;
}
body.hpr-is-leaving .hpr-page-transition { opacity: 1; backdrop-filter: blur(14px); }
body.hpr-is-leaving .portfolio-container,
body.hpr-is-leaving .hpr-header,
body.hpr-is-leaving .hpr-footer { opacity: 0; transform: scale(.992); transition: opacity 360ms ease, transform 420ms cubic-bezier(.22,1,.36,1); }

@media (min-width: 1600px) {
  .content-grid { width: min(84vw, 1600px); gap: clamp(160px, 13vw, 300px); }
  .left-column { width: 530px; }
  .right-column { width: 540px; }
}

@media (max-width: 1024px) {
  .content-grid { width: min(88vw, 840px); }
  .left-column,
  .right-column { width: 100%; max-width: 720px; }
  .hpr-footer { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin: 28px 24px 0; }
  .social-links-container { position: relative; bottom: auto; margin: 42px auto 8px; }
}

@media (max-width: 600px) {
  .hpr-header { z-index: 80; }
  .hpr-navbar { align-items: flex-start; }
  .hpr-logo { z-index: 2; }
  .hpr-menu-toggle {
    display: flex;
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(55,58,58,.3);
    backdrop-filter: blur(12px);
  }
  .hpr-menu-toggle span { position: absolute; width: 15px; height: 1px; background: currentColor; transition: transform .28s ease, top .28s ease; }
  .hpr-menu-toggle span:first-child { top: 17px; }
  .hpr-menu-toggle span:last-child { top: 23px; }
  .hpr-menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
  .hpr-menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  .hpr-nav-links {
    display: grid;
    position: absolute;
    top: -10px;
    right: -8px;
    width: min(240px, calc(100vw - 40px));
    padding: 70px 24px 24px;
    gap: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    background: rgba(42,45,45,.76);
    opacity: 0;
    transform: translateY(-10px) scale(.97);
    transform-origin: top right;
    pointer-events: none;
    backdrop-filter: blur(20px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1);
  }
  .hpr-nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .hpr-nav-links a { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
  .hpr-nav-links a::after { display: none; }
  .portfolio-container { padding-inline: 20px; }
  .content-grid { width: 100%; gap: 76px; padding-top: 154px; }
  .left-column,
  .right-column { width: 100%; }
  .greeting { margin-top: 8px; }
  .bio-text { margin-bottom: 8px; font-size: 18px; line-height: 1.6; }
  .right-column { gap: .5rem; }
  .project-list { gap: 14px; }
  .hpr-more-projects { margin-top: 7px; font-size: 14px; }
  .social-links-container { margin-top: 54px; }
  .hpr-footer { margin: 26px 20px 12px; }
  .hpr-footer .footer-navbar { gap: 16px; font-size: 10px; }
}

/* Portfolio homepage integration */
body { background: #757575; }
body > canvas { position: fixed; inset: 0; z-index: -2; width: 100% !important; height: 100% !important; }
.hpr-header { position: fixed; top: 0; right: 0; left: 0; z-index: 40; padding: 22px 4%; }
.hpr-navbar { display: flex; align-items: center; justify-content: space-between; }
.hpr-logo img { display: block; width: auto; height: 30px; }
.hpr-nav-links { display: flex; gap: clamp(22px, 3vw, 48px); }
.hpr-nav-links a { position: relative; color: rgba(255,255,255,.86); font-size: 14px; text-decoration: none; }
.hpr-nav-links a::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.hpr-nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.portfolio-container { padding-inline: clamp(54px, 7vw, 130px); }
.content-grid { max-width: 1680px; justify-content: space-between; gap: clamp(120px, 16vw, 300px); padding-top: 72px; }
.left-column { max-width: 520px; padding-left: 0; }
.right-column { max-width: 630px; padding-right: 0; }
.section-title { font-size: 17px; }
.greeting { font-family: "EB Garamond", Georgia, serif; font-size: clamp(44px, 4.4vw, 70px); font-weight: 500; }
.bio-text { max-width: 470px; margin-top: 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.65; }
.project-card { border: 1px solid rgba(255,255,255,.18); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hpr-more-projects { display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; margin-top: 7px; color: rgba(255,255,255,.74); font-size: 13px; text-decoration: none; }
.hpr-more-projects span { transition: transform .25s ease; }
.hpr-more-projects:hover span { transform: translateX(5px); }
.social-links { gap: 8px; padding: 8px; }
.social-icon { width: 42px; height: 42px; color: #fff; text-decoration: none; }
.social-icon i { font-size: 18px; }

.hpr-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: clamp(22px, 5vw, 72px); background: rgba(11,14,20,.7); backdrop-filter: blur(18px); }
.hpr-modal.is-open { display: flex; animation: hprModalIn .28s ease both; }
.hpr-modal__card { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); width: min(1180px, 94vw); max-height: min(760px, 88vh); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 36px; color: #f4f4f2; background: rgba(22,27,27,.88); box-shadow: 0 36px 100px rgba(0,0,0,.42); }
.hpr-modal__close { position: absolute; top: 22px; right: 22px; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; background: rgba(255,255,255,.09); font-size: 25px; cursor: pointer; }
.hpr-modal__copy { padding: clamp(44px, 5vw, 74px); overflow-y: auto; }
.hpr-modal__heading { display: flex; align-items: center; gap: 18px; }
.hpr-modal__heading img { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.hpr-modal__heading h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.hpr-modal__heading p { margin-top: 7px; color: rgba(255,255,255,.55); }
#preview-description { max-width: 610px; margin-top: 42px; font-size: 17px; line-height: 1.7; }
.hpr-modal__section { margin-top: 30px; }
.hpr-modal__section strong { color: rgba(255,255,255,.48); font-size: 13px; }
.hpr-modal__section p { margin-top: 8px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.65; }
.hpr-modal__button { display: inline-flex; margin-top: 38px; padding: 14px 22px; border-radius: 999px; color: #14233a; background: #f1c867; font-size: 14px; font-weight: 600; text-decoration: none; }
.hpr-modal__media { display: grid; place-items: center; min-height: 620px; padding: 60px 42px; border-left: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.hpr-modal__media img { display: block; max-width: 100%; max-height: 580px; border-radius: 22px; object-fit: contain; }
.hpr-modal-open { overflow: hidden !important; }
@keyframes hprModalIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1024px) {
  .hpr-header { padding: 20px 24px; }
  .content-grid { gap: 62px; padding-top: 110px; }
  .left-column { text-align: left; align-items: flex-start; }
  .right-column { max-width: 720px; }
  .hpr-modal__card { grid-template-columns: 1fr; overflow-y: auto; }
  .hpr-modal__media { min-height: 430px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
}
@media (max-width: 600px) {
  .hpr-header { padding: 18px 20px; }
  .hpr-nav-links { gap: 15px; }
  .hpr-nav-links a { font-size: 11px; }
  .portfolio-container { padding: 0 20px; }
  .content-grid { align-items: stretch; padding-top: 120px; }
  .left-column { text-align: left; }
  .section-title { font-size: 15px; }
  .social-links { gap: 6px; padding: 7px; }
  .social-icon { width: 38px; height: 38px; }
  .hpr-modal { padding: 12px; }
  .hpr-modal__card { border-radius: 24px; }
  .hpr-modal__copy { padding: 54px 26px 36px; }
  .hpr-modal__media { min-height: 360px; padding: 38px 24px; }
}

/* Final homepage overrides */
.hpr-header { padding: 0; }
.hpr-navbar { position: absolute; top: 0; right: 4%; left: 4%; width: 92%; margin: 3vh 0; color: #fff; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.hpr-logo { transform: scale(1.2); }
.hpr-logo img { height: 28px; }
.hpr-nav-links { gap: 28px; }
.hpr-nav-links a { color: inherit; font-size: 13px; }
.content-grid { max-width: 1500px; justify-content: center; gap: clamp(74px, 9vw, 150px); }
.bio-text { max-width: 440px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; }
.project-list { display: grid; }
.hpr-more-projects { justify-self: center; align-self: center; gap: 13px; margin-top: 9px; }
.hpr-more-arrow { width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.hpr-more-projects:hover .hpr-more-arrow { transform: translateX(5px) rotate(45deg); }
.social-links-container { bottom: 3.35rem; }
.hpr-copyright { position: fixed; right: 4%; bottom: 3.6rem; z-index: 10; margin: 0; color: rgba(255,255,255,.55); font-size: 11px; }
.hpr-modal { display: flex; visibility: hidden; background: rgba(0,0,0,0); opacity: 0; pointer-events: none; backdrop-filter: blur(0); transition: opacity .55s ease, background .55s ease, backdrop-filter .55s ease, visibility 0s linear .55s; }
.hpr-modal.is-open { visibility: visible; background: rgba(9,13,16,.58); opacity: 1; pointer-events: auto; backdrop-filter: blur(12px); animation: none; transition-delay: 0s; }
.hpr-modal__card { background: rgba(22,27,27,.9); opacity: 0; transform: scale(.91) translateY(26px); transition: transform .78s cubic-bezier(.34,1.56,.64,1), opacity .5s ease; }
.hpr-modal.is-open .hpr-modal__card { opacity: 1; transform: scale(1) translateY(0); }
.hpr-modal__copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hpr-modal.is-open .hpr-modal__copy > * { opacity: 1; transform: translateY(0); }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(1) { transition-delay: .12s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(2) { transition-delay: .2s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(3) { transition-delay: .28s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(4) { transition-delay: .36s; }
.hpr-modal.is-open .hpr-modal__copy > *:nth-child(5) { transition-delay: .44s; }
.hpr-modal__media { border-left: 0; background: transparent; opacity: 0; transform: translateX(28px); transition: opacity .65s ease .28s, transform .8s cubic-bezier(.2,.8,.2,1) .28s; }
.hpr-modal.is-open .hpr-modal__media { opacity: 1; transform: translateX(0); }
@media (max-width: 1024px) {
  .hpr-navbar { right: 24px; left: 24px; width: calc(100% - 48px); }
  .hpr-copyright { position: relative; right: auto; bottom: auto; margin: 8px auto 30px; text-align: center; }
}
@media (max-width: 600px) {
  .hpr-navbar { right: 20px; left: 20px; width: calc(100% - 40px); }
  .hpr-nav-links { gap: 15px; }
  .hpr-nav-links a { font-size: 11px; }
}

/* Final cascade guard */
.right-column { width: min(44vw, 540px); max-width: 540px; gap: .55rem; }
.project-list { gap: .82rem; }
.project-card { width: 100%; box-sizing: border-box; }
.section-title { margin-bottom: .2rem; }
.hpr-more-projects { margin-top: 2px; font-size: 14px; font-weight: 500; }
.social-links-container { bottom: 3.7rem; }
@media (min-width: 1600px) { .right-column { width: 540px; max-width: 540px; } }
@media (max-width: 1024px) { .right-column { width: 100%; max-width: 720px; } }

/* Final responsive polish */
.social-links-container { bottom: 3.05rem; }
.year { transform: translateY(-2px); }
.hpr-modal__button {
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.16);
  backdrop-filter: blur(18px) saturate(150%);
}
.hpr-modal__button:hover { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.17); }
@media (max-width: 600px) {
  .hpr-nav-links { display: grid; grid-template-columns: 1fr; gap: 0; }
  .hpr-nav-links a { width: 100%; }
  .section-title { margin-bottom: 21px; }
  .social-links-container { margin: 36px auto 0; }
  .hpr-footer { margin: 8px 20px -30px; transform: translateY(-40px); }
}

/* Current homepage spacing and type */
.project-desc { font-size: 15px; line-height: 1.4; white-space: nowrap; }
.left-column { transform: translateY(18px); }
.right-column { transform: translateY(-10px); }
.social-links-container { bottom: 2.35rem; }
@media (max-width: 600px) {
  .left-column,
  .right-column { transform: none; }
  .project-desc { font-size: 14px; white-space: normal; }
  .hpr-menu-toggle { width: 44px; height: 44px; }
  .hpr-nav-links { top: -8px; right: -6px; width: min(224px, calc(100vw - 36px)); padding: 66px 16px 13px; border-radius: 28px; }
  .hpr-nav-links a { min-height: 52px; padding-inline: 10px; font-size: 15px; font-weight: 400; letter-spacing: .01em; text-transform: none; }
  .hpr-nav-links a + a { border-top: 1px solid rgba(255,255,255,.13); }
  .social-links-container { margin-top: 52px; }
}

/* Homepage rhythm and richer project previews */
.right-column { gap: .85rem; }
.project-list { gap: .82rem; }
.project-card { padding: 1.14rem 1.35rem; }
.card-content { gap: .72rem; }
.card-body { gap: 8px; }
.section-title { margin-bottom: .3rem; color: rgba(255,255,255,.62); font-size: clamp(11px, .66vw, 13px); font-weight: 500; letter-spacing: .06em; }
.project-desc { white-space: normal; overflow-wrap: break-word; }
.card-title-group h3 { font-size: clamp(17px, 1.05vw, 19px); }

.hpr-modal__card {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 32px;
  width: 1173px;
  height: 683px;
  min-height: 0;
  max-width: 95vw;
  max-height: 90vh;
  padding: 0 96px;
  box-sizing: border-box;
  border-radius: 32px;
  align-items: center;
  background: rgba(40,45,40,.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.hpr-modal__copy { display: flex; min-width: 0; width: 100%; height: 521px; min-height: 0; padding: 0; overflow: hidden; flex-direction: column; }
.hpr-modal__heading { flex: 0 0 auto; gap: 16px; }
.hpr-modal__heading img { width: 48px; height: 48px; border-radius: 12px; }
.hpr-modal__heading h2 { font-size: 24px; line-height: 1.2; }
.hpr-modal__scroll { min-height: 0; margin-top: 28px; padding-right: 14px; overflow-y: auto; flex: 1 1 auto; scrollbar-gutter: stable; }
.hpr-modal__details { margin-top: 8px; }
.hpr-modal__section { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.hpr-modal__section strong { flex: 0 0 auto; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hpr-modal__section p { margin: 0; font-size: 14px; line-height: 1.5; }
#preview-description { margin-top: 0; font-size: 14px; line-height: 1.5; }
.hpr-modal__button { flex: 0 0 auto; align-self: flex-start; margin-top: 22px; }
.hpr-modal__media { width: 250px; height: 521px; min-height: 0; align-self: center; padding: 0; border-left: 0; background: transparent; }
.hpr-modal__media img { width: 100%; height: 100%; max-height: none; border-radius: 42px; object-fit: contain; }
.hpr-modal__close { top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: rgba(120,120,128,.42); font-size: 0; }
.hpr-modal__close:focus { outline: none; }
.hpr-modal__close:focus-visible { box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 0 0 2px rgba(255,255,255,.12); }
.hpr-modal__close span::before,
.hpr-modal__close span::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.72); content: ""; }
.hpr-modal__close span::before { transform: translate(-50%,-50%) rotate(45deg); }
.hpr-modal__close span::after { transform: translate(-50%,-50%) rotate(-45deg); }
.hpr-modal__close:hover { background: rgba(120,120,128,.62); }

@media (max-height: 800px) and (min-width: 601px) {
  .hpr-modal__card {
    width: min(1173px, 95vw);
    height: min(683px, 90vh);
    padding: 0 clamp(58px, 7.5vw, 96px);
  }
  .hpr-modal__copy,
  .hpr-modal__media { height: min(521px, calc(90vh - 72px)); }
}

@media (min-width: 1600px) {
  .content-grid { width: min(82vw, 1700px); }
  .content-grid { gap: clamp(230px, 13vw, 340px); }
  .left-column { width: 560px; max-width: 560px; }
  .greeting { font-size: 70px; }
  .bio-text { width: 540px; max-width: 540px; font-size: 22px; line-height: 1.58; }
  .section-title { font-size: 13px; }
}

@media (min-width: 1800px) {
  .content-grid { width: min(90vw, 1940px); max-width: 1940px; gap: clamp(360px, 18vw, 500px); }
}

.social-links-container { bottom: clamp(38px, 4.2vh, 60px); }
.hpr-copyright { position: fixed; right: 4%; bottom: 32px; z-index: 10; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }

.hpr-header { opacity: 0; transform: translateY(-16px); animation: hprHeaderEntry .8s cubic-bezier(.34,1.56,.64,1) .08s forwards; }
@keyframes hprHeaderEntry { to { opacity: 1; transform: translateY(0); } }
.hpr-modal.is-open { background: rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

@media (max-width: 600px) {
  .right-column { gap: 1rem; }
  .project-list { gap: 18px; }
  .section-title { margin-bottom: 15px; }
  .project-card { padding: 1.16rem 1.2rem; }
  .card-content { gap: .7rem; }
  .social-links-container { bottom: auto; margin-bottom: 6px; }
  .hpr-copyright { position: relative; right: auto; bottom: auto; margin: 0 auto 12px; font-size: 10px; text-align: center; }
  .hpr-modal__card {
    grid-template-columns: 1fr;
    gap: 0;
    width: calc(100vw - 24px);
    height: auto;
    max-height: 94vh;
    padding: 0;
    overflow-y: auto;
  }
  .hpr-modal__copy { height: auto; min-height: 560px; padding: 64px 30px 42px; overflow: visible; }
  .hpr-modal__scroll { overflow: visible; }
  .hpr-modal__media { width: 100%; height: auto; min-height: 300px; padding: 42px 34px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .hpr-modal__media img { width: auto; height: auto; max-height: 330px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .hpr-modal__card {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(795px, calc(100vw - 44px));
    height: auto;
    max-height: calc(100vh - 44px);
    padding: 0;
    overflow-y: auto;
  }
  .hpr-modal__copy { height: auto; padding: 64px 44px 42px; overflow: visible; }
  .hpr-modal__scroll { overflow: visible; }
  .hpr-modal__media { width: 100%; height: auto; min-height: 360px; padding: 48px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .hpr-modal__media img { width: auto; height: auto; max-height: 400px; }
}

/* Staff-level project preview hierarchy */
.hpr-modal__card {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 54px;
  padding: 0 76px;
}
.hpr-modal[data-project="uircs"] .hpr-modal__card {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 46px;
}
.hpr-modal__copy {
  justify-content: flex-start;
  height: 500px;
  overflow: visible;
}
.hpr-modal__heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hpr-modal__heading img { flex: 0 0 auto; width: 52px; height: 52px; }
.hpr-modal__heading h2 { margin: 4px 0 0; font-size: 27px; line-height: 1.1; }
.hpr-modal__category {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.hpr-modal__year {
  position: absolute;
  top: 29px;
  right: 80px;
  z-index: 2;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .06em;
}
.hpr-modal__story { margin-top: 46px; }
#preview-description {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.55;
}
.hpr-modal__details { margin-top: 36px; }
.hpr-modal__section {
  display: block;
  margin-top: 26px;
}
.hpr-modal__section:first-child { margin-top: 0; }
.hpr-modal__section strong {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.hpr-modal__section p {
  max-width: 520px;
  margin: 11px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.55;
}
.hpr-modal__button { margin-top: 32px; }
.hpr-modal__media {
  width: 100%;
  height: 500px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 28px 70px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.hpr-modal__media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 22px;
  object-fit: contain;
}
.hpr-modal[data-project="polyverse"] .hpr-modal__media,
.hpr-modal[data-project="dollar-flip"] .hpr-modal__media { padding: 12px; }
.hpr-modal[data-project="polyverse"] #preview-media,
.hpr-modal[data-project="dollar-flip"] #preview-media {
  width: auto;
  height: 476px;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
.hpr-modal[data-project="uircs"] .hpr-modal__media { padding: 24px; }
.hpr-modal[data-project="uircs"] #preview-media { width: 100%; height: auto; max-height: 452px; margin: auto; border-radius: 14px; }
.hpr-copyright { bottom: 31.59375px; line-height: 1; }

@media (max-width: 900px) {
  .hpr-modal__card,
  .hpr-modal[data-project="uircs"] .hpr-modal__card { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .hpr-modal__copy { height: auto; min-height: 0; padding: 62px 30px 38px; overflow: visible; }
  .hpr-modal__story { margin-top: 34px; }
  .hpr-modal__year { top: 28px; right: 78px; }
  .hpr-modal__media,
  .hpr-modal[data-project="uircs"] .hpr-modal__media { width: 100%; height: 360px; min-height: 0; padding: 28px; border: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .hpr-modal__media img { max-height: 100%; }
  .hpr-modal[data-project] #preview-media { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; }
}

@media (max-width: 600px) {
  .hpr-modal__heading h2 { font-size: 23px; }
  #preview-description { font-size: 15px; }
  .hpr-modal__details { margin-top: 30px; }
  .hpr-modal__section { margin-top: 22px; }
  .hpr-modal__button { margin-top: 28px; }
  .hpr-modal__media,
  .hpr-modal[data-project="uircs"] .hpr-modal__media { height: 310px; padding: 26px; }
  .hpr-copyright { line-height: 1; }
}

/* Final preview refinements */
.hpr-modal__copy {
  justify-content: center;
  height: 500px;
}
.hpr-modal__heading { align-items: center; }
.hpr-modal__heading h2 { margin: 0; }
.hpr-modal__story { margin-top: 38px; }
.hpr-modal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hpr-modal__pills span {
  padding: 7px 11px 6px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.hpr-modal__details { margin-top: 30px; }
.hpr-modal__section { margin-top: 22px; }
#preview-focus { white-space: pre-line; line-height: 1.75; }
.hpr-modal__button { margin-top: 27px; }
.hpr-modal__media,
.hpr-modal[data-project="polyverse"] .hpr-modal__media,
.hpr-modal[data-project="dollar-flip"] .hpr-modal__media,
.hpr-modal[data-project="uircs"] .hpr-modal__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 500px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hpr-modal[data-project="polyverse"] #preview-media,
.hpr-modal[data-project="dollar-flip"] #preview-media { height: 470px; }
.hpr-modal[data-project="uircs"] #preview-media {
  width: 100%;
  height: auto;
  max-height: 500px;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.2));
}

@media (min-width: 1800px) {
  .right-column { width: min(42vw, 760px); max-width: 760px; flex: 0 1 760px; }
}

.hpr-footer {
  position: fixed;
  right: 4%;
  bottom: 0;
  left: 4%;
  z-index: 999;
  width: 92%;
  box-sizing: border-box;
}
.hpr-footer-navbar {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin: 21.6px 0;
  padding: 10px 0;
  color: #fff;
  font-family: 'Heebo', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.hpr-footer .hpr-copyright {
  position: static;
  right: auto;
  bottom: auto;
  margin: 0;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

@media (max-width: 900px) {
  .hpr-modal__copy { justify-content: flex-start; height: auto; }
  .hpr-modal__media,
  .hpr-modal[data-project="polyverse"] .hpr-modal__media,
  .hpr-modal[data-project="dollar-flip"] .hpr-modal__media,
  .hpr-modal[data-project="uircs"] .hpr-modal__media { height: 360px; padding: 28px; overflow: hidden; }
  .hpr-modal[data-project] #preview-media { width: auto; height: auto; max-height: 100%; }
}

@media (max-width: 600px) {
  .hpr-modal__story { margin-top: 30px; }
  .hpr-modal__pills { margin-top: 20px; }
  .hpr-modal__details { margin-top: 26px; }
  .hpr-footer { position: relative; right: auto; bottom: auto; left: auto; width: auto; margin: 0 20px; }
  .hpr-footer-navbar { justify-content: center; margin: 8px 0 0; padding: 4px 0 12px; font-size: 10px; }
}

/* Homepage typography and final responsive rhythm */
.bio-text {
  width: min(100%, 510px);
  max-width: 510px;
  color: #fff;
  font-family: 'Heebo', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 200;
  line-height: 25px;
}
.section-title {
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, .95vw, 18px);
  font-weight: 500;
  letter-spacing: .045em;
}
#preview-focus { white-space: normal; line-height: 1.55; }

/* Keep the original lightweight voice, but give it desktop presence. */
@media (min-width: 601px) {
  .bio-text { font-size: 19px; line-height: 30px; }
  .hpr-modal[data-project="polyverse"] .hpr-modal__card,
  .hpr-modal[data-project="dollar-flip"] .hpr-modal__card {
    grid-template-columns: minmax(0, 1.34fr) minmax(250px, .72fr);
    gap: 38px;
  }
}

@media (min-width: 1600px) {
  .bio-text { font-size: 21px; line-height: 33px; }
}

@media (max-width: 600px) {
  .bio-text { width: 100%; max-width: 100%; font-size: 16px; font-weight: 200; line-height: 25px; }
  .section-title { font-size: 15px; }
  .hpr-footer { transform: none; }
  .hpr-footer-navbar { margin-top: 0; padding-top: 4px; }
}

/* Production homepage: footer is independent from the social control. */
.hpr-footer {
  position: fixed;
  right: 4%;
  bottom: 0;
  left: 4%;
  z-index: 30;
  width: 92%;
  margin: 0;
}
.hpr-footer-navbar {
  justify-content: flex-end;
  margin: 21.6px 0;
  padding: 10px 0;
}
.hpr-modal__button { margin-top: 38px; }
.hpr-header,
.hpr-footer {
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.22,1,.36,1), visibility 0s linear 0s;
}
body.hpr-modal-open .hpr-header {
  visibility: hidden;
  opacity: 0 !important;
  animation: none !important;
  transform: translateY(-12px);
  pointer-events: none;
}
body.hpr-modal-open .hpr-footer {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

@media (max-width: 600px) {
  .hpr-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 20px;
  }
  .hpr-footer-navbar {
    justify-content: center;
    margin: 0;
    padding: 8px 0 12px;
  }
}
