/* ===== NAV ===== */
html {
    scroll-behavior: smooth;
}
section[id] {
    scroll-margin-top: 100px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #12141b;
}
.navlinks {
    display: flex;
    gap: 36px;
}
.navlinks a {
font-family: 'IBM Plex Mono', monospace;
font-size: 13px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #9aa0b4;
text-decoration: none;
transition: color 0.2s ease;
}
.navlinks a:hover {
    color: #e8a33d;
}

body {
    background-color: #12141b;
    color: #edeff5;
    font-family: 'Inter', sans-serif;
}

/* ===== H1 ===== */
h1 {
    font-family: 'Fraunces' , serif;
    font-size: 72px;
    font-weight: 500;
    line-height: 1.03;
    max-width: 12ch;
}
h1 em {
    color: #e8a33d;
    font-style: italic;
    font-weight: 500;
}

/* #region Layout Container */
.hero-wrap {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 60px;
    padding: 110px 40px;
    align-items: start;
}
nav, 
.hero-wrap,
section.work {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}
section.about {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    padding: 100px 40px;
}
/* #endregion */

/* #region PORTRAIT GROUP */
.hero-portrait {
    position: relative;
    width: 100%;
    height: 200px;
    transform: translate(-90px, 60px);
}
.portrait-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 72px;
    right: 40px;
}
.arrow-img {
    position: absolute;
    top: 0;
    right: 220px;
    width: 90px;
}
.thats-me-img {
    position: absolute;
    top: 30px;
    right: 50px;
    width: 140px;
}
/* #endregion */ 

.hero-copy p {
    font-size: 18px;
    color: #9aa0b4;
    max-width: 46ch;
    margin: 28px 0 36px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.text-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9aa0b4;
    text-decoration: underline;
}
.text-link:hover {
    color: #5fd4c0;
}
.text-link img {
    transition: transform 0.2s ease;
}
.text-link:hover img {
    transform: translateY(4px);
}
.down-arrow {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.text-link:hover .down-arrow {
    transform: translateY(4px);
}
/* ===== WORK ===== */
section.work {
    padding: 100px 40px;
}
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}
.sec-head h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 38px;
    margin: 0;
}
.counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9aa0b4;
}

/* #region CASE CARDS */
.case-card {
    display: block;
    background-color: #20242f;
    border: 1px solid rgba(237,239,245,0.12);
    border-radius: 2px;
    text-decoration: none;
    color: #edeff5;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.case-media {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}
.case-num {
    position: absolute;
    top: 18px;
    left: 18px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #9aa0b4;
    background-color: #12141B;
    border: 1px solid rgba(237,239,245,0.12);
    padding: 5px 10px;
}
.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    }
.work-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 28px;
}
.case-body {
    padding: 26px 28px 30px;
}
.case-body h3 {
    font-family: 'Fraunces',serif;
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 10px;
}
.case-arrow {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    color: #e8a33d;
}
.case-card:hover {
    border-color: #e8a33d;
    transform: translateY(-4px);
}
.arrow-char {
    display: inline-block;
    margin-left: 6px;
    font-size: 15px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}
.case-card:hover .arrow-char {
    transform: translateX(4px);
}
/* #endregion */

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: start;
}
.pull-quote {
    font-family: 'Fraunces',serif;
    font-style: italic;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.45;
    margin: 0 0 34px;
    padding-left: 34px;
    border-left: 2px solid #e8a33d;
}

.bio {
    color: #9aa0b4;
    font-size: 15.5px;
    max-width: 56ch;
}

.about-side {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
    color: #9aa0b4;
    border: 1px solid rgba(237,239,245,0.12);
    padding: 26px;
}
.about-side .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(237,239,245,0.12);
}
.about-side .row:last-child {
    border-bottom: none;
}
.about-side .row span:last-child {
    color: #edeff5;
    text-align: right;
}
.stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.stacked-title {
    color: #edeff5;
}
.stacked-author {
    font-style: italic;
    color: #9aa0b4;
    font-size: 12px;
}
.stacked-link {
    color: #5fd4c0;
    text-decoration: none;
    border-bottom: 1px solid rgba(237,239,245,0.12);
}
.stacked-link:hover {
    color: #e8a33d;
    border-bottom-color: #e8a33d;
}

/* ===== CONTACT ===== */
.contact {
    background-color: #e8a33d;
    padding: 100px 40px;
}
.contact-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}
.contact h2 {
    font-family: 'Fraunces',serif;
    font-weight: 500;
    font-size: 40px;
    color: #12141B;
    margin: 0;
    max-width: 12ch;
}

/* #region Buttons */
.contact-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary-dark {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #12141B;
    color: #e8a33d;
    padding:15px 28px;
    border-radius: 2px;
    text-decoration: none;
    border: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}
.btn-primary img {
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover img {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-ghost {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid #12141B;
    color: #12141B;
    padding: 15px 28px;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover {
    background-color: rgba(237,239,245,0.1);
    transform: translateY(-2px);
}
/* #endregion */

/* ===== FOOTER ===== */
footer {
    padding: 32px 40px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11.5px;
    color: #9aa0b4;
    text-align: center;
}

/* ===== MODAL FORM ======= */ 
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: #fff;
    color: #12141B;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    min-height: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 1.5rem 1rem;
    margin-bottom: 1rem;
}
.modal-title {
     font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: #12141B;
}
.modal-body {
    flex: 1;
}
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.40rem;
    color: #12141B;
}
.form-control {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0.85rem 0.75rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}
.form-control:focus {
    outline: none;
    border-color: #12141b;
    box-shadow: 0 0 0 0.2rem rgba(18, 20, 27, 0.15);
}
textarea.form-control {
    min-height: 140px;
}
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1.25rem;
    margin-top: auto;
}


/* ===== MEDIA SIZING ===== */
@media (max-width: 950px) {
    .hero-wrap {
        grid-template-columns: 1fr;
    }
    .arrow-text-group {
        display: flex;
        align-items: center;
        gap: 7px;
    }
    .portrait-img,
    .thats-me-img {
        position: static;
        width: 160px;
    }
     .arrow-img {
        position: static;
        width: 70px;
    }
    .hero-portrait {
        position: relative;
        height: auto;
        transform: none;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    .portrait-img {
        margin-top: 22px;
        height: 160px;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* #region ARROW ANIMATION */
 @keyframes nudge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% {transform: translateY(6px) rotate(-3deg); }
}
.arrow-img {
    animation: nudge 2s ease-in-out infinite;
}
/* #endregion */

/* #region JAVASCRIPT FOR SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* #endregion */