/* ============================================================
   HEMMINGWAY TECHNOLOGIES — PROJECT PAGE
   Inherits tokens from ../home_style.css
   ============================================================ */

/* ---- PAGE BASE ---- */
body {
    background: var(--black);
    color: var(--white);
    padding-top: 64px;       /* height of fixed o-header at default/tablet */
}

@media (min-width: 961px) {
    body {
        padding-top: 84px;   /* height of fixed o-header at desktop */
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 54px;   /* height of fixed o-header at mobile */
    }
}

/* ============================================================
   TOP BAR  (sits just below fixed header)
   ============================================================ */
.pg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 3rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pg-topbar_breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.pg-topbar_breadcrumb a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.pg-topbar_breadcrumb a:hover { color: var(--white); }
.pg-topbar_breadcrumb a svg { width: 1.2rem; height: 1.2rem; }
.pg-topbar_sep { opacity: 0.25; }
.pg-topbar_current { color: var(--white); }

.pg-topbar_right { display: flex; align-items: center; gap: 1.2rem; }

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3rem;
}
.pg-badge_dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #28CA41;
}

.pg-topbar_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    background: var(--white);
    color: var(--black);
    transition: background 0.25s, transform 0.25s;
}
.pg-topbar_btn svg { width: 1.2rem; height: 1.2rem; }
.pg-topbar_btn:hover { background: #ddd; transform: translateY(-1px); }

/* ============================================================
   PREVIEW SECTION
   ============================================================ */
.pg-preview {
    padding: 2.4rem 3rem;
}

/* Tab switcher */
.pg-tabs {
    display: flex;
    gap: 0;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.6rem;
}
.pg-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.pg-tab + .pg-tab { border-left: 1px solid rgba(255,255,255,0.1); }
.pg-tab svg { width: 1.3rem; height: 1.3rem; }
.pg-tab.is-active { background: var(--white); color: var(--black); }
.pg-tab:not(.is-active):hover { color: var(--white); }

/* Browser chrome wrapper */
.pg-browser {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #0d0d0d;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.pg-browser_bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: #161616;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.pg-browser_dots { display: flex; gap: 0.5rem; flex-shrink: 0; }
.pg-browser_dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
}
.pg-browser_dot--r { background: #FF5F57; }
.pg-browser_dot--y { background: #FFBD2E; }
.pg-browser_dot--g { background: #28CA41; }

.pg-browser_url {
    flex: 1;
    min-width: 0;
    max-width: 44rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 0.45rem 1.1rem;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}
.pg-browser_url:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.pg-browser_url svg { width: 1rem; height: 1rem; flex-shrink: 0; color: #28CA41; }

.pg-browser_actions { display: flex; gap: 0.6rem; margin-left: auto; }
.pg-browser_action {
    width: 3rem; height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.pg-browser_action svg { width: 1.2rem; height: 1.2rem; }
.pg-browser_action:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* Screenshot */
.pg-shot { display: block; }
.pg-shot.is-hidden { display: none; }

.pg-shot_img {
    display: block;
    width: 100%;
    max-height: 55vh;
    object-fit: cover;
    object-position: center top;
}

.pg-shot_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.pg-shot_note { font-size: 1.2rem; color: rgba(255,255,255,0.3); }
.pg-shot_link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.pg-shot_link svg { width: 1.1rem; height: 1.1rem; }
.pg-shot_link:hover { color: var(--white); }

/* Live iframe */
.pg-live { display: block; }
.pg-live.is-hidden { display: none; }

.pg-live_wrap {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
}
.pg-live_frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}
.pg-live_blocked {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    background: #0d0d0d;
    text-align: center;
    padding: 4rem;
}
.pg-live_blocked.is-visible { display: flex; }
.pg-live_blocked-icon {
    width: 5rem; height: 5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
}
.pg-live_blocked-icon svg { width: 2.2rem; height: 2.2rem; color: rgba(255,255,255,0.4); }
.pg-live_blocked-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.pg-live_blocked-desc {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.4);
    max-width: 36rem;
    line-height: 1.6;
}

.pg-live_status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.3);
}
.pg-live_dot {
    width: 0.55rem; height: 0.55rem;
    border-radius: 50%;
    background: #28CA41;
    flex-shrink: 0;
}
.pg-live_status-note { margin-left: auto; font-size: 1.1rem; }

/* ============================================================
   INFO GRID  (3 columns below preview)
   ============================================================ */
.pg-info {
    display: grid;
    grid-template-columns: 20rem 1fr 22rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 0 3rem;
}

.pg-info_col {
    padding: 3rem 3rem 3rem 0;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.pg-info_col:first-child { padding-left: 0; }
.pg-info_col:last-child  { padding-left: 3rem; padding-right: 0; border-right: none; }

/* Col label */
.pg-col-label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Meta list */
.pg-meta { display: flex; flex-direction: column; gap: 0; }
.pg-meta_row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pg-meta_row:last-child { border-bottom: none; }
.pg-meta_key {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}
.pg-meta_val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
}

/* Overview text */
.pg-overview p {
    font-size: 1.5rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.4rem;
}
.pg-overview p:last-child { margin-bottom: 0; }

/* Quote */
.pg-quote {
    border-left: 2px solid rgba(255,255,255,0.15);
    padding-left: 1.8rem;
    margin-top: 2rem;
}
.pg-quote p {
    font-size: 1.4rem !important;
    font-style: italic;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 0.6rem !important;
}
.pg-quote_src {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
}

/* Tech tags */
.pg-tags {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.pg-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
    cursor: default;
}
.pg-tag:last-child { border-bottom: none; }
.pg-tag:hover { color: var(--white); }
.pg-tag_sub {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0;
}

/* ============================================================
   FEATURES  (full width row list)
   ============================================================ */
.pg-features {
    margin: 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 2.4rem 0;
}

.pg-features_head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.pg-features_label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.pg-feat-list { display: flex; flex-direction: column; }
.pg-feat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s var(--ease-out);
}
.pg-feat:last-child { border-bottom: none; }
.pg-feat:hover { padding-left: 1.2rem; }
.pg-feat_name {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
}
.pg-feat_desc {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.3);
    text-align: right;
    max-width: 34rem;
    line-height: 1.5;
}

/* ============================================================
   BOTTOM SPLIT  (challenges + metrics)
   ============================================================ */
.pg-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.pg-bottom_col {
    padding: 3rem 3rem 3rem 0;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.pg-bottom_col:last-child { padding: 3rem 0 3rem 3rem; border-right: none; }

.pg-bottom_label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Challenge list */
.pg-chal-list { display: flex; flex-direction: column; gap: 2.4rem; }
.pg-chal { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.6rem; align-items: start; }
.pg-chal_num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255,255,255,0.1);
    padding-top: 0.2rem;
}
.pg-chal_title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.pg-chal_text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.4);
}

/* Metrics */
.pg-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.pg-metric {
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background 0.25s;
}
.pg-metric:nth-child(2n) { border-right: none; }
.pg-metric:nth-child(3),
.pg-metric:nth-child(4) { border-bottom: none; }
.pg-metric:hover { background: rgba(255,255,255,0.025); }
.pg-metric_val {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.pg-metric_label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pg-footer {
    margin: 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 2.4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.pg-footer_credit {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
}
.pg-footer_credit a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.pg-footer_credit a:hover { color: var(--white); }

.pg-footer_nav { display: flex; gap: 2.4rem; }
.pg-footer_nav a {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}
.pg-footer_nav a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */


@media (max-width: 1100px) {
    .pg-info {
        grid-template-columns: 16rem 1fr 18rem;
        margin: 0 2rem;
    }
    .pg-features { margin: 0 2rem; }
    .pg-bottom { margin: 0 2rem; }
    .pg-footer { margin: 0 2rem; }
}

@media (max-width: 860px) {
    .pg-topbar { padding: 1.2rem 2rem; }
    .pg-preview { padding: 2rem; }

    .pg-info {
        grid-template-columns: 1fr 1fr;
        margin: 0 2rem;
    }
    .pg-info_col:nth-child(1) {
        grid-column: 1;
        border-right: 1px solid rgba(255,255,255,0.07);
    }
    .pg-info_col:nth-child(2) {
        grid-column: 2;
        border-right: none;
        padding-left: 2.4rem;
    }
    .pg-info_col:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding-top: 2.4rem;
        padding-left: 0;
    }

    .pg-feat { grid-template-columns: 1fr; gap: 0.4rem; }
    .pg-feat_desc { text-align: left; }

    .pg-bottom { grid-template-columns: 1fr; }
    .pg-bottom_col { border-right: none; padding: 2.4rem 0; }
    .pg-bottom_col:last-child { padding-left: 0; border-top: 1px solid rgba(255,255,255,0.07); }
}



@media (max-width: 600px) {
    .pg-topbar { flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; }
    .pg-topbar_right { width: 100%; justify-content: space-between; }
    .pg-preview { padding: 1.5rem; }

    .pg-info { grid-template-columns: 1fr; margin: 0 1.5rem; }
    .pg-info_col {
        border-right: none;
        padding: 2.4rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .pg-info_col:last-child { border-bottom: none; }

    .pg-features  { margin: 0 1.5rem; }
    .pg-bottom    { margin: 0 1.5rem; }
    .pg-footer    { margin: 0 1.5rem; flex-direction: column; align-items: flex-start; gap: 1.4rem; }

    .pg-feat_name { font-size: 2rem; }
    .pg-metric_val { font-size: 3.5rem; }
    .o-header_nav { display: none; }
}
