body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f1f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
.nav-bar {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(33,83,154,0.06);
    border-bottom: 1px solid #e3e9ef;
    min-height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 70px;
    box-sizing: border-box;
}
.nav-left {
    font-weight: 600;
    font-size: 1.04rem;
    letter-spacing: 0.012em;
    text-decoration: none;
    border-radius: 5px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #21539a;
    transition: background 0.15s, color 0.15s;
}
.nav-left.active {
    background: #e3e9ef;
    font-weight: 700;
}
.nav-left:hover {
    background: #f1f6fb;
    color: #477abd;
}
.nav-menu {
    display: flex;
    gap: 8px;
}
.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.04rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    color: #21539a;
    transition: background 0.15s, color 0.15s;
}
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
    background: #e3e9ef;
    font-weight: 700;
}
.nav-menu a:hover {
    background: #f1f6fb;
    color: #477abd;
}
.nav-menu-linkedin {
    width: 40px;
    padding: 0;
}
.nav-menu-linkedin img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}
.main-wrap {
    max-width: 900px;
    width: 98vw;
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.portrait-section {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(33,83,154,0.11);
    margin-bottom: 36px;
    padding: 54px 70px;
    display: flex;
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
}
.portrait-img {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portrait-img img {
    width: 200px;
    height: 200px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(33,83,154,0.16);
    border: 2px solid #e3e9ef;
}
.synopsis {
    max-width: 510px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.synopsis h1 {
    margin: 0 0 16px 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #21539a;
    letter-spacing: 0.01em;
}
.synopsis p {
    margin: 0 0 13px 0;
    font-size: 1.18rem;
    color: #384450;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.96;
}
.synopsis .detail {
    font-size: 1.04rem;
    color: #395a7c;
    line-height: 1.5;
    margin: 0;
    opacity: 0.86;
}
/* Homepage: Four Column Grid */
.grid-container.four-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    width: 100%;
    max-width: calc(4 * 200px + 3 * 28px); /* cap at 4 columns */
    margin-top: 48px;
    justify-content: center;
    justify-items: center;
}
/* References Page: Two Column Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    width: 100%;
    box-sizing: border-box;
}
.square.home {
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(33,83,154,0.11);
    aspect-ratio: 1 / 1;
    min-width: 180px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
}
.square.home:hover {
    box-shadow: 0 8px 24px rgba(33,83,154,0.18);
    transform: translateY(-6px) scale(1.03);
    z-index: 1;
}
.square.home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 24px;
}

/* HIDE STRIPE ON HOMEPAGE GRID ONLY */
.grid-container.four-col .square-bar,
.grid-container.four-col .square-bar-center {
    display: none !important;
}

.square {
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(33,83,154,0.11);
    height: 200px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
}
.square:hover {
    box-shadow: 0 8px 24px rgba(33,83,154,0.18);
    transform: translateY(-6px) scale(1.03);
    z-index: 1;
}
.square img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 24px;
}
.square-bar {
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 0 0 24px 24px;
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}
.square-bar-center {
    width: 100%;
    text-align: center;
    color: #21539a;
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: 0.008em;
    margin: 0;
    opacity: 0.94;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.square-bar-left,
.square-bar-right {
    color: #21539a;
    font-size: 0.929rem;
    font-weight: 600;
    letter-spacing: 0.008em;
    flex: 1;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
}
.square-bar-left { text-align: left; }
.square-bar-right { text-align: right; }
@media (max-width: 1200px) {
    .grid-container.four-col {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        gap: 20px;
        justify-items: center;
    }
    .grid-container.four-col .square.home {
        aspect-ratio: 1 / 1;
        width: auto;
        max-width: 100%;
    }
}
@media (max-width: 1100px) {
    .nav-bar { padding: 0 4vw; }
    .portrait-section { padding: 36px 4vw; gap: 28px; }
    .portrait-img img { width: 130px; height: 130px; }
    .synopsis h1 { font-size: 1.24rem; }
    .synopsis p { font-size: 1.01rem; }
}
@media (max-width: 700px) {
    .grid-container.four-col {
        grid-template-columns: minmax(260px, 1fr);
        gap: 16px;
        justify-items: center;
    }
    .grid-container.four-col .square.home {
        aspect-ratio: 1 / 1;
        width: auto;
        max-width: 100%;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }
    .portrait-section { flex-direction: column; gap: 18px; }
    .synopsis { max-width: 90vw; }
}
@media (max-width: 700px) {
    .square {
        height: auto;
        aspect-ratio: 2 / 1;
        max-height: 180px;
    }
}
@media (max-width: 900px) {
    .document-bubble { padding: 36px 18px; }
}
.document-bubble {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 30px rgba(33,83,154,0.11);
    padding: 54px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    margin: 0 auto 48px auto;
    box-sizing: border-box;
}
.document-info {
    text-align: center;
    margin-bottom: 32px;
}
.document-info h1 {
    font-size: 2rem;
    color: #21539a;
    font-weight: 700;
    margin-bottom: 6px;
}
.document-meta {
    font-size: 1.08rem;
    color: #477abd;
    opacity: 0.83;
    margin-bottom: 0;
}
.document-image img {
    max-width: 100%;
    max-height: 740px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(33,83,154,0.08);
    margin-bottom: 20px;
    display: block;
}
.document-attachment { margin-top: 10px; }
.download-btn {
    display: inline-block;
    background: #21539a;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(33,83,154,0.11);
    transition: background 0.2s;
}
.download-btn:hover { background: #477abd; }
.back-link {
    display: inline-block;
    background: #e3e9ef;
    color: #21539a;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 11px;
    padding: 4px 14px 4px 11px;
    text-decoration: none;
    box-shadow: 0 0.5px 2px rgba(33,83,154,0.07);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    border: none;
    outline: none;
    align-self: flex-start;
    position: relative;
    margin: 0;
}
.back-link:hover,
.back-link:focus {
    background: #f1f6fb;
    color: #477abd;
    box-shadow: 0 2px 8px rgba(33,83,154,0.12);
}
