/* =========================================
   GK Theme — Main Stylesheet
   Design: Clean, white, image-first (Horizon-style)
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

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

/* --- Container --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #ebebeb;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 1.5rem;
}

.site-name {
    font-family: 'Jost', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: 2rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.site-name__first {
    font-weight: 700;
    color: #1a1a1a;
}

.site-name__last {
    font-weight: 300;
    color: #888888;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.25rem;
}

.nav-menu a, .header-client-btn {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
}

.nav-menu a:hover { color: #1a1a1a; }

/* --- Client Login Button --- */
.header-client-btn {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    color: #999;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-client-btn:hover {
    color: #1a1a1a;
}

/* --- Header Right (nav + social grouped) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* --- Header Social Icon --- */
.header-social {
    display: flex;
    align-items: center;
}

.header-social__link {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.header-social__link:hover { opacity: 1; }

.header-social__icon {
    width: 18px;
    height: 18px;
}

/* --- Hero --- */
.hero {
    position: relative;
    max-height: 100vh;
    overflow: hidden;
    background: #111;
    line-height: 0;
}

.hero-media {
    display: block;
    line-height: 0;
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-media--placeholder {
    height: 60vw;
    background: #e8e8e8;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 3.5rem 2rem;
    color: #fff;
    max-width: 1280px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: none;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 1.75rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: none;
    border: 1px solid currentColor;
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
}
.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}
.btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* --- Section Title --- */
.section-title {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: none;
    opacity: 0.4;
    margin-bottom: 2rem;
}

/* =========================================
   Portfolio Grid — Mixed Layout (Horizon-style)
   Layout:
   Row 1: 1 large feature (2/3) + 2 stacked tiles (1/3)
   Row 2: 3 equal tiles
   ========================================= */

.portfolio-grid {
    padding: 5rem 0 3rem;
}

.portfolio-grid__inner {
    columns: 3;
    column-gap: 4px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.portfolio-item__link {
    display: block;
}

.portfolio-item__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item__image img {
    transform: scale(1.03);
}

.portfolio-item--placeholder {
    height: 400px;
    background: #ebebeb;
    cursor: default;
}

.portfolio-grid__cta {
    text-align: center;
    padding: 3rem 0;
}

/* =========================================
   About Strip
   ========================================= */

.about-strip {
    padding: 0;
    background: #fff;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.about-strip__inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    height: 220px;
    overflow: hidden;
}

.about-strip__image {
    overflow: hidden;
    background: #f0f0f0;
}

.about-strip__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.about-strip__image--placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.about-strip__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    background: #fff;
}

.about-strip__content h2 {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.about-strip__content p {
    font-size: 0.85rem;
    line-height: 1.65;
    opacity: 0.65;
    margin-bottom: 1.25rem;
    max-width: 420px;
}

/* =========================================
   Instagram Strip
   ========================================= */

.instagram-strip {
    padding: 0.75rem 0;
    text-align: center;
}

.instagram-feed {
    margin-bottom: 2rem;
}

/* =========================================
   Sign-up Strip
   ========================================= */

.signup-strip {
    background: #f4f4f4;
    padding: 0;
}

.signup-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    gap: 4rem;
}

.signup-strip__text .section-title {
    margin-bottom: 0.75rem;
}

.signup-strip__text h2 {
    font-family: 'Jost', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 0;
}

.signup-strip__text p {
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.55;
    max-width: 440px;
}

.signup-strip__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.signup-strip__btn {
    white-space: nowrap;
}

.signup-strip__sub {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    opacity: 0.35;
    text-align: center;
}

@media ( max-width: 768px ) {
    .signup-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .signup-strip__action {
        align-items: flex-start;
    }
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid #ebebeb;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-copy { font-size: 0.75rem; opacity: 0.35; text-align: center; flex: 1; }

.footer-nav { display: none; }

.footer-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-menu a {
    font-size: 0.75rem;
    opacity: 0.35;
    transition: opacity 0.2s;
}
.footer-menu a:hover { opacity: 1; }

/* =========================================
   General page padding
   ========================================= */

.site-main { padding-top: 100px; }

/* =========================================
   Responsive
   ========================================= */

@media ( max-width: 900px ) {

    .about-strip__inner {
        grid-template-columns: 1fr;
    }

    .about-strip__content {
        padding: 3rem 2rem;
    }

    .portfolio-grid__inner {
        columns: 2;
    }
}

@media ( max-width: 600px ) {

    .header-inner { padding: 1rem 1.25rem; }

    .nav-menu { gap: 1.25rem; }

    .hero-content { padding: 2.5rem 1.25rem; }

    .portfolio-grid__inner {
        columns: 1;
    }

    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }

    .footer-menu { justify-content: center; flex-wrap: wrap; }
}

/* =========================================
   Page Header (Portfolio, About, etc.)
   ========================================= */

.page-header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid #ebebeb;
}

.page-header__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.page-header__subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: none;
    opacity: 0.4;
    margin-top: 0.6rem;
}

/* =========================================
   Portfolio Filter Bar
   ========================================= */

.portfolio-filter {
    padding: 1.75rem 0;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 72px;
    background: #fff;
    z-index: 50;
}

.filter-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: none;
    opacity: 0.4;
    transition: opacity 0.2s;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.filter-btn:hover { opacity: 0.8; }

.filter-btn.is-active {
    opacity: 1;
    border-bottom-color: #1a1a1a;
}

/* =========================================
   Portfolio Archive Grid — 3-column uniform
   ========================================= */

.portfolio-archive {
    padding: 3rem 0 5rem;
}

.portfolio-archive__grid {
    columns: 3;
    column-gap: 4px;
}

.archive-item {
    break-inside: avoid;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.archive-item__link {
    display: block;
}

.archive-item__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.archive-item:hover .archive-item__image img {
    transform: scale(1.03);
}

/* =========================================
   Pagination
   ========================================= */

.portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 3.5rem;
}

.portfolio-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    border: 1px solid #ebebeb;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.portfolio-pagination .page-numbers.current,
.portfolio-pagination .page-numbers:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.portfolio-empty {
    padding: 4rem 0;
    text-align: center;
    opacity: 0.4;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

/* =========================================
   Portfolio Archive — Responsive
   ========================================= */

@media ( max-width: 900px ) {
    .portfolio-archive__grid {
        columns: 2;
    }
}

@media ( max-width: 600px ) {
    .portfolio-archive__grid {
        columns: 1;
    }

    .portfolio-filter {
        top: 62px;
    }

    .filter-list {
        gap: 1.25rem;
    }
}

/* =========================================
   About Page
   ========================================= */

/* Hero — reuses .hero styles, with slight adjustments */
.about-hero {
    position: relative;
    height: 85vh;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about-hero__image {
    position: absolute;
    inset: 0;
    background: #111;
}

.about-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.about-hero__image--placeholder {
    background: #e0e0e0;
    width: 100%;
    height: 100%;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

.about-hero__content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 2rem;
    color: #fff;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* Bio Section */
.about-bio {
    padding: 6rem 0;
}

.about-bio__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 6rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

.about-bio__body {
    margin-bottom: 2.5rem;
}

.about-bio__body p {
    font-size: 1.05rem;
    line-height: 1.85;
    opacity: 0.7;
    margin-bottom: 1.25rem;
    max-width: 560px;
}

.about-bio__body p:last-child { margin-bottom: 0; }

.about-bio__portrait {
    position: sticky;
    top: 100px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 3 / 4;
}

.about-bio__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bio__portrait--placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

/* Stats Strip */
.about-stats {
    padding: 4rem 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    background: #fafafa;
}

.stats-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-item__number {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.stats-item__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: none;
    opacity: 0.4;
}

/* Specialisms */
.about-specialisms {
    padding: 5rem 0;
}

.specialisms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.specialism-item h3 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.specialism-item p {
    font-size: 0.88rem;
    line-height: 1.75;
    opacity: 0.55;
}

/* Clients */
.about-clients {
    padding: 4rem 0 5rem;
    border-top: 1px solid #ebebeb;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-top: 1rem;
    opacity: 0.45;
    filter: grayscale(1);
}

.clients-grid img {
    height: 32px;
    width: auto;
}

/* CTA */
.about-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
}

.about-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 0.95rem;
    opacity: 0.55;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.about-cta .btn-primary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.about-cta .btn-primary:hover {
    background: #fff;
    color: #1a1a1a;
}

/* About — Responsive */
@media ( max-width: 1024px ) {
    .about-bio__inner {
        grid-template-columns: 1fr 340px;
        gap: 4rem;
    }

    .specialisms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media ( max-width: 768px ) {
    .about-bio__inner {
        grid-template-columns: 1fr;
    }

    .about-bio__portrait {
        position: static;
        max-width: 420px;
        order: -1;
    }

    .about-bio__body p {
        max-width: 100%;
    }
}

@media ( max-width: 600px ) {
    .specialisms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta { padding: 4rem 1.5rem; }
}

/* =========================================
   Contact Page
   ========================================= */

.contact-body {
    padding: 5rem 0 7rem;
}

.contact-body__inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 7rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
}

/* Info Column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 100px;
}

.contact-info__block p,
.contact-info__block a {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info__block a {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.contact-info__block a:hover { opacity: 0.45; }

.contact-info__sub {
    opacity: 0.45;
    font-size: 0.85rem !important;
    margin-top: 0.35rem;
}

/* Form */
.contact-form-wrap {
    width: 100%;
}

.gk-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row--half {
    flex-direction: row;
    gap: 1.5rem;
}

.form-row--half .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: none;
    opacity: 0.5;
}

.required {
    color: #1a1a1a;
    opacity: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a1a1a;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
}

.form-row--submit {
    padding-top: 0.5rem;
}

.form-row--submit .btn-primary {
    align-self: flex-start;
    cursor: pointer;
    font-family: inherit;
}

/* CF7 overrides — styles apply to Contact Form 7 output too */
.wpcf7-form .form-row,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    font-family: inherit;
}

.wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    font-size: 0.85rem;
}

/* =========================================
   Client Area Page
   ========================================= */

.client-body {
    padding: 6rem 0 8rem;
}

.client-body__inner {
    max-width: 680px;
}

.client-header {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #ebebeb;
}

.client-header__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.client-header__note {
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.55;
    max-width: 520px;
}

.client-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.client-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid #ebebeb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.client-link-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.client-link-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.client-link-card__icon svg {
    width: 24px;
    height: 24px;
}

.client-link-card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.client-link-card__label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.client-link-card__sub {
    font-size: 0.82rem;
    line-height: 1.6;
    opacity: 0.5;
}

.client-link-card__arrow {
    font-size: 1.1rem;
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
}

.client-link-card:hover .client-link-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

.client-note {
    font-size: 0.85rem;
    opacity: 0.45;
}

.client-note a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.client-note a:hover { opacity: 0.6; }

/* Password form */
.client-password-form .post-password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 360px;
}

.client-password-form .post-password-form p {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-password-form .post-password-form label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: none;
    opacity: 0.5;
}

.client-password-form .post-password-form input[type="password"] {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid #ddd;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.client-password-form .post-password-form input[type="password"]:focus {
    border-color: #1a1a1a;
}

.client-password-form .post-password-form input[type="submit"] {
    padding: 0.7rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: none;
    font-family: inherit;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
}

.client-password-form .post-password-form input[type="submit"]:hover {
    background: transparent;
    color: #1a1a1a;
}

/* =========================================
   Single Portfolio Page
   ========================================= */

/* Hero */
.portfolio-hero {
    position: relative;
    background: #fff;
    line-height: 0;
}

.portfolio-hero__image {
    display: block;
}

.portfolio-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-hero__image--placeholder {
    height: 60vw;
    background: #e0e0e0;
}

.portfolio-hero__overlay {
    display: none;
}

/* Project Meta */
.portfolio-meta {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #ebebeb;
}

.portfolio-meta__inner {
    max-width: 760px;
}

.portfolio-meta__cat {
    margin-bottom: 1rem;
}

.portfolio-meta__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.portfolio-meta__tagline {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.55;
    max-width: 580px;
}

/* Content / Gallery */
.portfolio-content {
    padding: 4rem 0 5rem;
}

/* Native WP Gallery block — override for full presentation */
.portfolio-content__body .wp-block-gallery {
    gap: 4px !important;
    margin: 0 0 4px !important;
}

.portfolio-content__body .wp-block-gallery .wp-block-image img,
.portfolio-content__body .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Single images inserted via WP editor */
.portfolio-content__body .wp-block-image {
    margin: 0 0 4px !important;
}

/* Body text / caption text beneath the gallery */
.portfolio-content__body p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.6;
    margin-top: 2.5rem;
    max-width: 640px;
}

/* Project Navigation — Prev / All / Next */
.portfolio-nav {
    padding: 4rem 0;
    border-top: 1px solid #ebebeb;
}

.portfolio-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.portfolio-nav__prev { text-align: left; }
.portfolio-nav__back { text-align: center; }
.portfolio-nav__next { text-align: right; }

.portfolio-nav__link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 220px;
}

.portfolio-nav__next .portfolio-nav__link {
    align-items: flex-end;
}

.portfolio-nav__direction {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: none;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.portfolio-nav__link:hover .portfolio-nav__direction { opacity: 1; }

.portfolio-nav__thumb {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
    width: 160px;
}

.portfolio-nav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-nav__link:hover .portfolio-nav__thumb img {
    transform: scale(1.04);
}

.portfolio-nav__title {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    opacity: 0.65;
    transition: opacity 0.2s;
}

.portfolio-nav__link:hover .portfolio-nav__title { opacity: 1; }

/* CTA Strip — mirrors .about-cta */
.portfolio-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
}

.portfolio-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.portfolio-cta p {
    font-size: 0.95rem;
    opacity: 0.55;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.portfolio-cta .btn-primary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.portfolio-cta .btn-primary:hover {
    background: #fff;
    color: #1a1a1a;
}

/* Single Portfolio — Responsive */
@media ( max-width: 900px ) {
    .portfolio-nav__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .portfolio-nav__back {
        grid-column: 1 / 3;
        order: -1;
        padding-bottom: 1rem;
        border-bottom: 1px solid #ebebeb;
        margin-bottom: 1rem;
    }

    .portfolio-nav__thumb { width: 120px; }
}

@media ( max-width: 600px ) {
    .portfolio-hero { height: 65vh; }

    .portfolio-nav__inner {
        grid-template-columns: 1fr;
    }

    .portfolio-nav__back {
        grid-column: 1;
    }

    .portfolio-nav__next {
        text-align: left;
    }

    .portfolio-nav__next .portfolio-nav__link {
        align-items: flex-start;
    }

    .portfolio-cta { padding: 4rem 1.5rem; }
}

/* Contact — Responsive */
@media ( max-width: 900px ) {
    .contact-body__inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .contact-info {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .contact-info__block {
        min-width: 140px;
    }
}

@media ( max-width: 600px ) {
    .form-row--half {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
    }
}
