/* ============================================================================
   SUBPAGES.CSS — 2026-05-27 BUILD_HANDOFF
   ----------------------------------------------------------------------------
   Side-index taped-binder nav, mobile hamburger fallback, and subpage helper
   styles for the 6 inner pages plus Home. Loaded AFTER callingcard.css.
   ============================================================================ */

/* ---------- 1. SIDE-INDEX NAV (taped-binder, fixed left column) ---------- */
.cc-index {
    /* Absolute (not fixed) so the index scrolls with the dossier rather than
       staying pinned to the viewport - the index belongs to the page, not the
       chrome. The .cc-index is a body-level sibling of <main>, so absolute
       anchors against the initial containing block (the document). top:88
       clears the 80px-tall nav so the first (active) tab isn't hidden behind
       it on initial page load. */
    position: absolute;
    top: 88px;
    left: 28px;
    z-index: 9;
    width: max-content;
    pointer-events: auto;
}

.cc-index__heading {
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(238, 240, 241, 0.5);
    margin: 0 0 0.7rem 0.9rem;
    padding: 0;
}

.cc-index__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-index__break {
    height: 22px;
    pointer-events: none;
}

.cc-index__tab {
    position: relative;
    display: flex;
    align-items: center;
    width: 150px;
    height: 38px;
    padding: 0 0.7rem 0 1.2rem;
    background: #f4f1ea;
    color: #08070a;
    text-decoration: none;
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.22),
        1px 1px 3px rgba(0, 0, 0, 0.2);
    transition:
        width 180ms ease,
        height 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        font-size 180ms ease,
        font-weight 180ms ease;
    line-height: 1.1;
}

.cc-index__tape {
    position: absolute;
    left: -7px;
    top: -2px;
    bottom: -2px;
    width: 12px;
    background: var(--tape, #cccccc);
    opacity: 0.82;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.22);
    transform: rotate(-1.5deg);
    transform-origin: center;
    transition: width 180ms ease, top 180ms ease, bottom 180ms ease, left 180ms ease;
}
.cc-index__item:nth-child(even) .cc-index__tape {
    transform: rotate(1.5deg);
}

.cc-index__tab:hover,
.cc-index__tab:focus-visible {
    background: #fbfbf6;
    transform: translateX(3px);
    outline: none;
}

.cc-index__tab.is-active,
.cc-index__tab[aria-current="page"] {
    /* Active tab stays the SAME width as inactive so its right edge stays
       flush against the sheet without tucking into content. Emphasis comes
       from height + font + bg + shadow, not horizontal translation. */
    width: 150px;
    height: 64px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
    transform: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.cc-index__tab.is-active .cc-index__tape,
.cc-index__tab[aria-current="page"] .cc-index__tape {
    width: 16px;
    top: -8px;
    bottom: -8px;
    left: -9px;
}

@media (min-width: 901px) {
    /* Desk padding-left = 28px (index gutter) + 150px (inactive tab width) so
       the cover sheet's left edge starts exactly at the inactive tabs' right
       edge - tabs flush against the paper with no gap. The active tab (188px
       wide, translateX(+10)) tucks slightly under the sheet edge, like a
       filing-cabinet drawer pulled forward. */
    .hero.hero--callingcard.cc-desk {
        padding-left: 178px;
    }
    /* Left-align the sheet inside the desk's available space (not centered),
       so the sheet's left edge stays pinned to the tab column. */
    .hero.hero--callingcard.cc-desk .hero__container.cc-cover-sheet {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .cc-index { display: none; }
}

/* ---------- 2. MOBILE HAMBURGER + OVERLAY ---------- */
.cc-hamburger {
    display: none;
    position: relative;
    background: transparent;
    border: 2px solid var(--tt-bone-1);
    color: var(--tt-bone-0);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem 0.5rem 1.3rem;
    cursor: pointer;
    margin-right: 0.5rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
}
.cc-hamburger::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -3px;
    bottom: -3px;
    width: 8px;
    background: var(--tape, var(--tt-caution));
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.4);
    transform: rotate(-2deg);
}
.cc-hamburger__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}
.cc-hamburger__bars span {
    display: block;
    width: 14px;
    height: 2px;
    background: var(--tt-bone-0);
}

.cc-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(8, 7, 10, 0.94);
    backdrop-filter: blur(4px);
    padding: 5rem 1.25rem 2rem;
    overflow-y: auto;
}
.cc-mobile-nav.is-open { display: block; }
.cc-mobile-nav__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: 1px solid var(--tt-bone-1);
    color: var(--tt-bone-0);
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.cc-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cc-mobile-nav__tab {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1rem 1rem 1.6rem;
    background: #f4f1ea;
    color: #08070a;
    text-decoration: none;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
.cc-mobile-nav__tab::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -3px;
    bottom: -3px;
    width: 14px;
    background: var(--tape, #cccccc);
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.25);
    transform: rotate(-1.5deg);
}
.cc-mobile-nav__tab.is-active,
.cc-mobile-nav__tab[aria-current="page"] {
    background: #ffffff;
    font-weight: 800;
}
.cc-mobile-nav__break {
    height: 18px;
    list-style: none;
}
@media (max-width: 900px) {
    .cc-hamburger { display: inline-flex; }
}

/* ---------- 3. SMALL UPPER-RIGHT CLIPPED PHOTO (non-Home pages) ---------- */
.cc-dossier .cc-clip--small {
    width: clamp(110px, 14vw, 200px);
    margin: 0 0 1rem 1rem;
    float: right;
    transform: rotate(2deg);
    transform-origin: top center;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.22));
    position: relative;
    z-index: 40;
}
.cc-dossier .cc-clip--small .cc-clip__photo {
    padding: 0.3rem 0.3rem 0.7rem;
}
.cc-dossier .cc-clip--small .cc-clip__pin {
    top: -2.4rem;
    width: clamp(28px, 4vw, 38px);
}

/* ---------- 4. STENCIL PAGE HEADING ---------- */
.cc-dossier .cc-page-heading {
    font-family: 'Big Shoulders Stencil Display', sans-serif;
    font-weight: 900;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    color: var(--tt-ink-0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0 0 1.25rem;
}

/* ---------- 5. SECTION DIVIDER (// THE SERIOUS STUFF, etc.) ---------- */
.cc-dossier .cc-section-divider {
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(28, 24, 20, 0.55);
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(28, 24, 20, 0.2);
}

/* ---------- 6. PROJECT LISTING (bucket pages) ---------- */
.cc-dossier .cc-project {
    margin: 1.5rem 0 2.25rem;
}
.cc-dossier .cc-project__heading {
    font-family: 'Big Shoulders Stencil Display', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--tt-ink-0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0 0 0.85rem;
}
.cc-dossier .cc-project__heading em {
    font-style: italic;
    font-weight: 600;
}
.cc-dossier .cc-project__body,
.cc-dossier .cc-project__body p {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1612;
    margin: 0 0 0.9rem;
}
.cc-dossier .cc-project__body p:last-child { margin-bottom: 0; }
.cc-dossier .cc-project__sub {
    margin: 0.85rem 0;
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1a1612;
}
.cc-dossier .cc-project__sub strong {
    font-weight: 700;
    color: var(--tt-ink-0);
}
.cc-dossier .cc-project__closer {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1a1612;
    font-style: italic;
    margin: 0.85rem 0 0;
}
.cc-dossier .cc-project__link {
    color: var(--tt-ink-0);
    text-decoration: underline;
    text-decoration-color: #1da44f;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* ---------- 7. SERVICES LIST (Services page) ---------- */
.cc-dossier .cc-services-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cc-dossier .cc-services-list__name {
    font-family: 'Big Shoulders Stencil Display', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--tt-ink-0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0 0 0.4rem;
}
.cc-dossier .cc-services-list__desc {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1612;
    margin: 0;
}
.cc-dossier .cc-services-closer {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--tt-ink-0);
    margin: 2rem 0 1rem;
    padding: 0.9rem 1.2rem;
    border-left: 3px solid var(--tt-caution);
    background: rgba(120, 130, 140, 0.045);
    line-height: 1.55;
}

/* ---------- 8. ABOUT BIOGRAPHY (quoted-transcript multi-paragraph) ---------- */
.cc-dossier .cc-bio {
    margin: 0;
    padding: 1.15rem 1.6rem 0.95rem;
    border-left: 3px solid var(--tt-caution);
    background: rgba(120, 130, 140, 0.045);
}
.cc-dossier .cc-bio p {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1612;
    margin: 0 0 0.95rem;
}
.cc-dossier .cc-bio p:last-child { margin-bottom: 0; }
.cc-dossier .cc-bio a {
    color: var(--tt-ink-0);
    text-decoration: underline;
    text-decoration-color: rgba(28, 24, 20, 0.4);
    text-underline-offset: 2px;
}

/* ---------- 9. RAP SHEET ---------- */
.cc-dossier .cc-rap-sheet {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 1rem 0;
}
.cc-dossier .cc-rap-sheet__charge {
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.55;
    color: #1a1612;
    margin: 0;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* ---------- 10. PATENT NOTATION ---------- */
.cc-dossier .cc-patent {
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-style: italic;
    font-size: 1rem;
    color: rgba(28, 24, 20, 0.85);
    margin: 2.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(28, 24, 20, 0.2);
}
.cc-dossier .cc-patent a {
    color: var(--tt-ink-0);
    text-decoration: underline;
    text-decoration-color: rgba(28, 24, 20, 0.45);
    text-underline-offset: 2px;
}

/* ---------- 11. ALSO ON FILE ---------- */
.cc-dossier .cc-also-on-file {
    display: block;
    margin: 2rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px dashed rgba(28, 24, 20, 0.2);
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.7; /* generous so underlined link can't bleed into adjacent text */
    color: #1a1612;
}
.cc-dossier .cc-also-on-file__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4a4540;
    text-transform: uppercase;
    margin: 0 0 0.55rem;
    display: block;
    line-height: 1.3;
}
.cc-dossier .cc-also-on-file p {
    display: block;
    margin: 0;
    line-height: 1.7;
}
.cc-dossier .cc-also-on-file a {
    color: var(--tt-ink-0);
    text-decoration: underline;
    text-decoration-color: #1da44f;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    font-weight: 600;
    /* whitespace separation so adjacent text never crashes into the underline */
    margin-right: 0.15em;
}

/* ---------- 12. CONTACT INLINE FORM ---------- */
.cc-dossier .cc-form {
    margin: 1.5rem 0 0;
    max-width: 36rem;
}
.cc-dossier .cc-form__row { margin-bottom: 1.4rem; }
.cc-dossier .cc-form__label {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4a4540;
    margin-bottom: 0.45rem;
}
.cc-dossier .cc-form__input,
.cc-dossier .cc-form__textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--tt-ink-0);
    background: #ffffff;
    border: 1px solid rgba(28, 24, 20, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}
.cc-dossier .cc-form__input:focus,
.cc-dossier .cc-form__textarea:focus {
    outline: 2px solid var(--tt-caution);
    outline-offset: 2px;
    border-color: var(--tt-ink-0);
}
.cc-dossier .cc-form__textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.5;
}
.cc-dossier .cc-form__submit {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    background: var(--tt-caution);
    color: var(--tt-ink-0);
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 2px solid var(--tt-ink-0);
    box-shadow:
        0 4px 0 var(--tt-phosphor-deep),
        0 8px 16px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.cc-dossier .cc-form__submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 5px 0 var(--tt-phosphor-deep),
        0 10px 20px rgba(0, 0, 0, 0.6);
}
.cc-dossier .cc-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline submit status (error) + the "FILE RECEIVED" success swap. */
.cc-dossier .cc-form__status {
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 1rem 0 0;
    padding: 0.7rem 0.95rem;
    color: #1a1612;
    border-left: 3px solid currentColor;
    background: rgba(120, 130, 140, 0.05);
}
.cc-dossier .cc-form__status--error {
    color: #c8302e;
    background: rgba(200, 48, 46, 0.08);
}

.cc-dossier .cc-form__success {
    margin: 1.5rem 0 0;
    padding: 1.25rem 1.5rem;
    background: rgba(29, 164, 79, 0.08);
    border-left: 3px solid #0e5b2a;
    font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
    outline: none;
}
.cc-dossier .cc-form__success-stamp {
    font-family: 'Big Shoulders Stencil Display', sans-serif;
    font-weight: 900;
    font-size: 1.45rem;
    color: #0e5b2a;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
}
.cc-dossier .cc-form__success-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1612;
    margin: 0;
}

/* ---------- 13. CONTACT CLOSER (serif quoted block) ---------- */
.cc-dossier .cc-contact-closer {
    margin: 1.5rem 0;
    padding: 1.15rem 1.6rem 0.95rem;
    border-left: 3px solid var(--tt-caution);
    background: rgba(120, 130, 140, 0.045);
}
.cc-dossier .cc-contact-closer p {
    font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1612;
    margin: 0;
}

/* ---------- 14. HIDE old top-tab nav (replaced by side index) ---------- */
.cc-nav__tabs { display: none !important; }
