:root {
    --tp88-bg: #F8F4EC;
    --tp88-card: #FBF7ED;
    --tp88-primary: #234133;
    --tp88-secondary: #6B6047;
    --tp88-accent: #C8A66A;
    --tp88-border: #E9DFC9;
    --tp88-hover: #8C7339;

    --tp88-dark-bg: #1C3528;
    --tp88-dark-bg-soft: #234133;
    --tp88-dark-text: #F8F4EC;
    --tp88-dark-secondary: #B9C2A8;
    --tp88-dark-border: rgba(248, 244, 236, 0.16);

    --tp88-olive: #6E7C47;
    --tp88-sand: #E9DFC9;
    --tp88-cream: #F8F4EC;

    --tp88-shadow-warm: 0 28px 50px -22px rgba(35, 65, 51, 0.25);
    --tp88-shadow-soft: 0 18px 36px -18px rgba(35, 65, 51, 0.16);
    --tp88-gradient-card: linear-gradient(155deg, #FBF7ED 0%, #F3ECDB 100%);
    --tp88-gradient-dark: linear-gradient(155deg, #234133 0%, #1A2F23 100%);

    --tp88-font-head: 'Cormorant Garamond', serif;
    --tp88-font-body: 'Inter', sans-serif;

    --tp88-margin: 64px;
    --tp88-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--tp88-bg);
    color: var(--tp88-primary);
    font-family: var(--tp88-font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: linear-gradient(to right, transparent calc(var(--tp88-margin) - 1px), var(--tp88-accent) calc(var(--tp88-margin) - 1px), var(--tp88-accent) var(--tp88-margin), transparent var(--tp88-margin));
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

:focus-visible {
    outline: 2px solid var(--tp88-accent);
    outline-offset: 3px;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* SHARED */

.tp88-eyebrow {
    font-family: var(--tp88-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tp88-accent);
}

.tp88-text-link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--tp88-border);
    transition: border-color 0.35s var(--tp88-ease), color 0.35s var(--tp88-ease), letter-spacing 0.35s var(--tp88-ease);
}

.tp88-text-link:hover {
    border-color: var(--tp88-primary);
    letter-spacing: 0.01em;
}

.tp88-text-link-fill {
    color: var(--tp88-accent);
    border-color: var(--tp88-accent);
}

.tp88-text-link-fill:hover {
    border-color: var(--tp88-hover);
    color: var(--tp88-hover);
}

/* SCROLL FADE-UP */

.tp88-fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--tp88-ease), transform 0.9s var(--tp88-ease);
}

.tp88-fade-up.tp88-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tp88-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* HEADER */

.tp88-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s var(--tp88-ease), border-color 0.4s var(--tp88-ease);
    border-bottom: 1px solid transparent;
}

.tp88-header.tp88-scrolled {
    background-color: rgba(248, 244, 236, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tp88-border);
}

.tp88-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px var(--tp88-margin);
}

.tp88-logo {
    font-family: var(--tp88-font-head);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
}

.tp88-logo-mark {
    font-family: var(--tp88-font-body);
    font-size: 10px;
    color: var(--tp88-accent);
    margin-top: 2px;
}

.tp88-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0 auto;
}

.tp88-nav-link {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
}

.tp88-nav-num {
    font-family: var(--tp88-font-body);
    font-size: 11px;
    color: var(--tp88-accent);
}

.tp88-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    transition: gap 0.3s var(--tp88-ease), color 0.3s var(--tp88-ease);
}

.tp88-header-cta svg {
    transition: transform 0.3s var(--tp88-ease);
}

.tp88-header-cta:hover {
    gap: 13px;
    color: var(--tp88-accent);
}

.tp88-header-cta:hover svg {
    transform: translate(2px, -2px);
}

.tp88-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.tp88-burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--tp88-primary);
    transition: transform 0.3s var(--tp88-ease), opacity 0.3s var(--tp88-ease), width 0.3s var(--tp88-ease);
}

.tp88-burger-line:last-child {
    width: 60%;
    margin-left: auto;
}

.tp88-burger.tp88-open .tp88-burger-line {
    width: 100%;
}

.tp88-burger.tp88-open .tp88-burger-line:nth-child(1) {
    transform: translateY(3.75px) rotate(45deg);
}

.tp88-burger.tp88-open .tp88-burger-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

.tp88-mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--tp88-bg);
    border-bottom: 1px solid var(--tp88-border);
    padding: 4px var(--tp88-margin) 26px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--tp88-ease);
}

.tp88-mobile-menu.tp88-open {
    display: flex;
    max-height: 360px;
}

.tp88-mobile-link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 0;
    font-size: 18px;
    font-weight: 500;
    font-family: var(--tp88-font-head);
    border-bottom: 1px solid var(--tp88-border);
}

.tp88-mobile-link span {
    font-family: var(--tp88-font-body);
    font-size: 11px;
    color: var(--tp88-accent);
}

.tp88-mobile-cta {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tp88-accent);
}

/* HERO — breaking-grid masthead type, not a split layout */

.tp88-hero {
    padding: 156px var(--tp88-margin) 96px;
    border-bottom: 1px solid var(--tp88-border);
}

.tp88-hero-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--tp88-border);
    margin-bottom: 40px;
}

.tp88-hero-meta {
    font-size: 13px;
    color: var(--tp88-secondary);
}

.tp88-hero-meta-divider {
    color: var(--tp88-border);
    margin: 0 4px;
}

.tp88-hero-heading {
    font-family: var(--tp88-font-head);
    font-weight: 600;
    font-size: clamp(46px, 8vw, 108px);
    line-height: 0.98;
    letter-spacing: -0.015em;
}

.tp88-hero-line {
    display: block;
}

.tp88-hero-line-indent {
    margin-left: clamp(40px, 9vw, 160px);
    color: var(--tp88-accent);
}

.tp88-hero-asterisk {
    font-family: var(--tp88-font-body);
    font-size: 0.32em;
    color: var(--tp88-secondary);
    vertical-align: super;
}

.tp88-hero-bottom {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--tp88-border);
    align-items: end;
}

.tp88-hero-footnote {
    font-size: 16px;
    color: var(--tp88-secondary);
    max-width: 480px;
}

.tp88-hero-footnote .tp88-hero-asterisk {
    font-size: 1em;
    color: var(--tp88-accent);
    margin-right: 2px;
}

.tp88-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

/* SERVICES — numbered stacked rows, not a 3-card grid */

.tp88-services {
    padding: 100px var(--tp88-margin);
    background: var(--tp88-gradient-dark);
    border-bottom: 1px solid var(--tp88-dark-border);
    color: var(--tp88-dark-text);
}

.tp88-services .tp88-eyebrow {
    color: var(--tp88-accent);
}

.tp88-services-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.tp88-services-heading {
    font-family: var(--tp88-font-head);
    font-weight: 600;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
    margin-top: 10px;
    color: var(--tp88-dark-text);
}

.tp88-services-list {
    display: flex;
    flex-direction: column;
}

.tp88-service-row {
    display: grid;
    grid-template-columns: 80px 1fr 56px;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--tp88-dark-border);
    transition: padding-left 0.4s var(--tp88-ease), background-color 0.4s var(--tp88-ease);
}

.tp88-service-row:last-child {
    border-bottom: 1px solid var(--tp88-dark-border);
}

.tp88-service-row:hover {
    padding-left: 16px;
}

.tp88-service-num {
    font-family: var(--tp88-font-head);
    font-size: 30px;
    font-weight: 600;
    color: var(--tp88-dark-secondary);
    transition: color 0.4s var(--tp88-ease);
}

.tp88-service-row:hover .tp88-service-num {
    color: var(--tp88-accent);
}

.tp88-service-title {
    font-family: var(--tp88-font-head);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tp88-dark-text);
}

.tp88-service-desc {
    font-size: 16px;
    color: var(--tp88-dark-secondary);
    max-width: 480px;
}

.tp88-service-icon {
    width: 36px;
    height: 36px;
    color: var(--tp88-dark-secondary);
    justify-self: end;
    transition: color 0.4s var(--tp88-ease), transform 0.4s var(--tp88-ease);
}

.tp88-service-row:hover .tp88-service-icon {
    color: var(--tp88-accent);
    transform: rotate(-8deg);
}

.tp88-service-icon svg {
    width: 100%;
    height: 100%;
}

/* PROJECTS */

.tp88-projects {
    padding: 100px var(--tp88-margin) 0;
}

.tp88-projects-head {
    margin-bottom: 72px;
}

.tp88-projects-heading {
    font-family: var(--tp88-font-head);
    font-weight: 600;
    font-size: clamp(36px, 5vw, 60px);
    margin: 10px 0 14px;
}

.tp88-projects-count {
    font-size: 14px;
    color: var(--tp88-secondary);
}

.tp88-entry {
    border-top: 1px solid var(--tp88-border);
    padding: 64px 0;
    display: grid;
    gap: 48px;
}

.tp88-projects>.tp88-entry:last-child {
    border-bottom: 1px solid var(--tp88-border);
}

.tp88-entry-num {
    display: block;
    font-family: var(--tp88-font-head);
    font-size: 16px;
    color: var(--tp88-accent);
    margin-bottom: 18px;
}

.tp88-entry-category {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tp88-secondary);
    margin-bottom: 16px;
}

.tp88-entry-title {
    font-family: var(--tp88-font-head);
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 600;
    margin-bottom: 20px;
}

.tp88-entry-desc {
    font-size: 16px;
    color: var(--tp88-secondary);
    max-width: 420px;
}

.tp88-entry-figure {
    position: relative;
}

.tp88-entry-figure img {
    width: 100%;
    height: 100%;
}

.tp88-entry-a {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
}

.tp88-entry-a .tp88-entry-text {
    order: 2;
    padding-top: 28px;
}

.tp88-entry-b {
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
}

.tp88-entry-c {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
}

/* FOOTER */

.tp88-footer {
    margin-top: 100px;
    border-top: 1px solid var(--tp88-border);
    background: var(--tp88-gradient-dark);
    color: var(--tp88-dark-text);
}

.tp88-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding: 80px var(--tp88-margin);
}

.tp88-footer-heading {
    font-family: var(--tp88-font-head);
    font-weight: 600;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.12;
    color: var(--tp88-dark-text);
}

.tp88-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tp88-accent);
    padding: 16px 0;
    border-bottom: 1px solid var(--tp88-accent);
    flex-shrink: 0;
    transition: gap 0.3s var(--tp88-ease), color 0.3s var(--tp88-ease), border-color 0.3s var(--tp88-ease);
}

.tp88-footer-cta svg {
    transition: transform 0.3s var(--tp88-ease);
}

.tp88-footer-cta:hover {
    gap: 15px;
    color: var(--tp88-sand);
    border-color: var(--tp88-sand);
}

.tp88-footer-cta:hover svg {
    transform: translate(2px, -2px);
}

.tp88-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px var(--tp88-margin);
    border-top: 1px solid var(--tp88-dark-border);
}

.tp88-footer-logo {
    font-family: var(--tp88-font-head);
    font-size: 19px;
    font-weight: 700;
    color: var(--tp88-dark-text);
}

.tp88-footer-nav {
    display: flex;
    gap: 28px;
}

.tp88-footer-link {
    font-size: 13px;
    color: var(--tp88-dark-secondary);
    transition: color 0.3s var(--tp88-ease);
}

.tp88-footer-link:hover {
    color: var(--tp88-dark-text);
}

.tp88-footer-copy {
    font-size: 13px;
    color: var(--tp88-dark-secondary);
}

/* RESPONSIVE */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    :root {
        --tp88-margin: 36px;
    }

    .tp88-hero-bottom {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .tp88-hero-actions {
        align-items: flex-start;
    }

    .tp88-entry-a,
    .tp88-entry-b,
    .tp88-entry-c {
        grid-template-columns: 1fr;
    }

    .tp88-entry-a .tp88-entry-text {
        order: 0;
        padding-top: 0;
    }

    .tp88-entry-figure {
        margin-bottom: 12px;
    }

    .tp88-service-row {
        grid-template-columns: 56px 1fr;
    }

    .tp88-service-icon {
        display: none;
    }
}

/* Mobile nav switch */
@media (max-width: 860px) {

    .tp88-nav,
    .tp88-header-cta {
        display: none;
    }

    .tp88-burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
        background-image: none;
    }

    :root {
        --tp88-margin: 20px;
    }

    .tp88-hero {
        padding: 132px var(--tp88-margin) 64px;
    }

    .tp88-hero-line-indent {
        margin-left: 24px;
    }

    .tp88-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tp88-services,
    .tp88-projects {
        padding-left: var(--tp88-margin);
        padding-right: var(--tp88-margin);
    }

    .tp88-services {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .tp88-services-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 44px;
    }

    .tp88-service-row {
        padding: 28px 0;
    }

    .tp88-projects {
        padding-top: 72px;
    }

    .tp88-entry {
        padding: 44px 0;
        gap: 28px;
    }

    .tp88-footer-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px var(--tp88-margin);
    }

    .tp88-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}