html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}



/*CUSTOM CSS FROM HERE*/

:root {
    --background: #f4f1eb;
    --text: #161616;
    --muted: #6d6a65;
    --line: rgba(22, 22, 22, 0.18);
    --page-gutter: clamp(1.25rem, 5vw, 5rem);
    --page-width: 1500px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
}

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: white;
}

.site-header__inner {
    display: flex;
    width: min(100%, calc(var(--page-width) + var(--page-gutter) + var(--page-gutter)));
    min-height: 78px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-header__brand {
    color: var(--text);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__brand:hover {
    color: var(--text);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-header__nav > a:not(.site-header__social) {
    position: relative;
    padding: 0.35rem 0;
    color: var(--text);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-header__nav > a:not(.site-header__social)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-header__nav > a:not(.site-header__social):hover::after,
.site-header__nav > a:not(.site-header__social):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header__social {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text);
    place-items: center;
    transition: opacity 180ms ease;
}

.site-header__social:hover {
    color: var(--text);
    opacity: 0.55;
}

.site-header__social svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

#work,
#portfolio,
#what-i-do,
#contact,
#testimonials {
    scroll-margin-top: 1.5rem;
}

.landing-testimonials {
    padding: clamp(4.5rem, 10vw, 9rem) var(--page-gutter);
    background: white;
}

.landing-testimonials__inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
}

.landing-testimonials__header {
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.landing-testimonials h2 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 3rem);
}

.testimonial-card {
    display: flex;
    min-height: 290px;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--line);
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card blockquote {
    margin: 0 0 3rem;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.testimonial-card figcaption strong,
.testimonial-card figcaption span {
    display: block;
}

.testimonial-card figcaption span,
.landing-testimonials__empty {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: 0;
    }
}

.landing-contact {
    padding: clamp(4.5rem, 10vw, 9rem) var(--page-gutter);
    background: #f4f1eb;
}

.landing-contact__inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(420px, 1fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: start;
}

.landing-contact h2 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.landing-contact__inner > p:not(.section-eyebrow) {
    max-width: 620px;
    margin: 2rem 0;
    color: var(--muted);
    line-height: 1.75;
}

.landing-contact__placeholder {
    display: inline-block;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-contact__intro > p:not(.section-eyebrow) { margin:2rem 0 0; color:var(--muted); line-height:1.75; white-space:pre-line; }
.landing-contact__form-wrap { min-width:0; }
.contact-form { display:grid; gap:1.25rem; }
.contact-form__row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.contact-field label { display:block; margin-bottom:.55rem; font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.contact-field label span { color:var(--muted); font-weight:400; text-transform:none; }
.contact-field input,.contact-field select,.contact-field textarea { width:100%; padding:.85rem 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--text); outline:0; }
.contact-field textarea { min-height:150px; resize:vertical; }
.contact-field input:focus,.contact-field select:focus,.contact-field textarea:focus { border-bottom-color:var(--text); }
.contact-form__footer { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-top:.5rem; }
.contact-form__footer p { max-width:430px; margin:0; color:var(--muted); font-size:.72rem; line-height:1.55; }
.contact-form__footer button { display:inline-flex; align-items:center; gap:.7rem; flex:0 0 auto; padding:.9rem 1.15rem; border:1px solid var(--text); background:var(--text); color:white; cursor:pointer; transition:background 180ms ease,color 180ms ease; }
.contact-form__footer button:hover { background:transparent; color:var(--text); }
.contact-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.contact-status { margin-bottom:1.25rem; padding:1rem 1.15rem; border:1px solid; font-size:.85rem; }
.contact-status--success { border-color:#85a98f; background:#edf5ef; color:#315d3d; }
.contact-status--error { border-color:#c99393; background:#faeeee; color:#7e3434; }

@media (max-width:900px) {
    .landing-contact__inner { grid-template-columns:1fr; }
}

@media (max-width:600px) {
    .contact-form__row { grid-template-columns:1fr; }
    .contact-form__footer { align-items:stretch; flex-direction:column; }
    .contact-form__footer button { justify-content:center; }
}

/* Per-section color themes */
.portfolio-home > section {
    --section-border: var(--section-fg);
    --section-muted: var(--section-fg);
    --section-border: color-mix(in srgb, var(--section-fg) 50%, transparent);
    --section-muted: color-mix(in srgb, var(--section-fg) 70%, transparent);
    background-color: var(--section-bg) !important;
    color: var(--section-fg);
}

/* Section typography controls. clamp() preserves responsive scaling while the
   CMS value remains the desktop maximum. */
.portfolio-home > section h1,
.portfolio-home > section h2 {
    font-size: clamp(2.4rem, 8vw, var(--section-heading-size));
}

.portfolio-home .landing-hero__intro,
.portfolio-home .work-header > p,
.portfolio-home .landing-about p:not(.section-eyebrow),
.portfolio-home .landing-contact__intro > p:not(.section-eyebrow) {
    font-size: var(--section-body-size);
}

.portfolio-home .testimonial-card blockquote {
    font-size: clamp(1rem, 2vw, var(--section-body-size));
}

.portfolio-home .section-eyebrow,
.portfolio-home .testimonial-card figcaption,
.portfolio-home .contact-field label,
.portfolio-home .contact-form__footer p {
    font-size: var(--section-small-size);
}

.portfolio-home .editorial-card__overlay h3 {
    font-size: var(--section-small-size);
}

.portfolio-home .work-header > p,
.portfolio-home .landing-about p:not(.section-eyebrow),
.portfolio-home .landing-contact__intro > p:not(.section-eyebrow),
.portfolio-home .contact-form__footer p,
.portfolio-home .testimonial-card figcaption span,
.portfolio-home .landing-testimonials__empty {
    color: var(--section-muted);
}

.portfolio-home .testimonial-card,
.portfolio-home .contact-field input,
.portfolio-home .contact-field select,
.portfolio-home .contact-field textarea,
.portfolio-home .landing-contact__placeholder {
    border-color: var(--section-border);
}

.portfolio-home .testimonial-card,
.portfolio-home .contact-field input,
.portfolio-home .contact-field select,
.portfolio-home .contact-field textarea {
    color: var(--section-fg);
}

.portfolio-home .contact-form__footer button {
    border-color: var(--section-fg);
    background: var(--section-fg);
    color: var(--section-bg);
}

.portfolio-home .contact-form__footer button:hover {
    background: transparent;
    color: var(--section-fg);
}

.portfolio-home .landing-hero__link {
    border-color: var(--section-border);
    color: var(--section-fg);
}

.portfolio-home .editorial-card__overlay,
.portfolio-home .editorial-card__info {
    color: var(--section-fg);
}

@media (max-width: 650px) {
    .site-header__inner {
        display: flex;
        min-height: 68px;
        padding: 0 1rem;
        gap: 1rem;
    }

    .site-header__brand {
        max-width: 120px;
        flex: 0 0 120px;
        white-space: normal;
        line-height: 1.05;
    }

    .site-header__nav {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0.85rem;
    }

    .site-header__nav > a:not(.site-header__social) {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .site-header__social {
        width: 1.3rem;
        height: 1.3rem;
    }
}

.portfolio-home .landing-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 650px;
    overflow: hidden;
    background: var(--section-bg);
    color: var(--section-fg);
}

/* Carousel fills the complete hero */
.portfolio-home .landing-hero__carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

    /* Bootstrap carousel wrappers must all have a real height */
    .portfolio-home .landing-hero__carousel .carousel-inner,
    .portfolio-home .landing-hero__carousel .carousel-item {
        position: relative;
        width: 100%;
        height: 100%;
    }

.portfolio-home .landing-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--focal-x, 50%) var(--focal-y, 50%);
}

.portfolio-home .landing-hero__fallback {
    position: absolute;
    inset: 0;
    background: url("/images/hero.jpg") center / cover no-repeat;
}

.portfolio-home .landing-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.08) 100% ), linear-gradient( to top, rgba(0, 0, 0, 0.42), transparent 55% );
}

.portfolio-home .landing-hero__content {
    position: relative;
    z-index: 2;
}

.portfolio-home .landing-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.08) 100% ), linear-gradient( to top, rgba(0, 0, 0, 0.42), transparent 55% );
}

.portfolio-home .landing-hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, calc(var(--page-width) + var(--page-gutter) + var(--page-gutter)));
    margin: 0 auto;
    padding: clamp(7rem, 14vh, 10rem) var(--page-gutter) clamp(3rem, 8vh, 6rem);
}

.portfolio-home .landing-hero__eyebrow,
.section-eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.portfolio-home .landing-hero h1 {
    max-width: 1050px;
    margin: 0;
    font-size: clamp(3.2rem, 9vw, 8.5rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;
    white-space: pre-line;
}

.portfolio-home .landing-hero__intro {
    max-width: 560px;
    margin: 2rem 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
}

.portfolio-home .landing-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--section-border);
    color: var(--section-fg);
    text-decoration: none;
}

    .portfolio-home .landing-hero__link span {
        transition: transform 180ms ease;
    }

    .portfolio-home .landing-hero__link:hover span {
        transform: translateY(4px);
    }

.portfolio-home .work-section {
    width: min(100%, calc(var(--page-width) + var(--page-gutter) + var(--page-gutter)));
    margin: 0 auto;
    padding: clamp(4.5rem, 10vw, 9rem) var(--page-gutter);
}

.portfolio-home .work-header {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

    .portfolio-home .work-header h2 {
        max-width: 850px;
        margin: 0;
        font-size: clamp(2.6rem, 6vw, 6.2rem);
        font-weight: 400;
        line-height: 0.98;
        letter-spacing: -0.045em;
    }

    .portfolio-home .work-header > p {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
    }

.portfolio-home .editorial-grid {
    column-count: 3;
    column-gap: 1.25rem;
}

.portfolio-home .editorial-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 1.25rem;
    break-inside: avoid;
    vertical-align: top;
    color: inherit;
    text-decoration: none;
}

.portfolio-home .editorial-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #dedbd4;
}

.portfolio-home .editorial-card__image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 350ms ease;
}

.portfolio-home .editorial-card:hover .editorial-card__image img {
    transform: scale(1.035);
}

.portfolio-home .editorial-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(1rem, 2vw, 1.75rem);
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 65%);
    opacity: 0;
    transition: opacity 250ms ease;
}

/* Also positions the previous landing-page markup over the image. */
.portfolio-home .editorial-card__info {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: clamp(1rem, 2vw, 1.75rem);
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.portfolio-home .editorial-card__info p,
.portfolio-home .editorial-card__info .editorial-card__label,
.portfolio-home .editorial-card__info .editorial-card__arrow {
    display: none;
}

.portfolio-home .editorial-card h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.025em;
}

.portfolio-home .editorial-card:hover .editorial-card__overlay,
.portfolio-home .editorial-card:focus-visible .editorial-card__overlay,
.portfolio-home .editorial-card:hover .editorial-card__info,
.portfolio-home .editorial-card:focus-visible .editorial-card__info {
    opacity: 1;
}

@media (max-width: 800px) {
    .portfolio-home .editorial-grid {
        column-count: 2;
    }
}

@media (max-width: 520px) {
    .portfolio-home .editorial-grid {
        column-count: 1;
    }
}

.landing-about {
    padding: clamp(4.5rem, 10.8vw, 10rem) var(--page-gutter);
    background: #171717;
    color: white;
}

.landing-about__inner {
    width: min(100%, var(--page-width));
    margin: 0 auto;
}

.landing-about__inner--with-image {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
}

.landing-about--image-left .landing-about__portrait {
    grid-column: 1;
    grid-row: 1;
}

.landing-about--image-left .landing-about__content {
    grid-column: 2;
}

.landing-about__portrait {
    overflow: hidden;
    background: #2a2a2a;
}

.landing-about__portrait img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-about h2 {
    max-width: 1100px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: pre-line;
}

.landing-about p:not(.section-eyebrow) {
    max-width: 620px;
    margin: 2.5rem 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-line;
}

.text-link {
    display: inline-flex;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
}

/* Scroll reveal */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .7, .2, 1);
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .editorial-card__image img {
        transition: none;
    }
}

@media (max-width: 850px) {
    .landing-hero h1 br {
        display: none;
    }

    .work-header {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 800px) {
    .landing-about__inner--with-image {
        grid-template-columns: 1fr;
    }

    .landing-about--image-left .landing-about__portrait,
    .landing-about--image-left .landing-about__content {
        grid-column: auto;
        grid-row: auto;
    }
}

.gallery-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.gallery-page__header {
    max-width: 850px;
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.gallery-page__back {
    display: inline-block;
    margin-bottom: 2rem;
    color: #555;
    text-decoration: none;
    transition: opacity 180ms ease;
}

    .gallery-page__back:hover {
        color: #555;
        opacity: 0.6;
    }

.gallery-page h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.gallery-page__summary {
    max-width: 700px;
    margin: 1.5rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.7;
}

.gallery-page__description {
    max-width: 700px;
    margin-top: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.photo-grid {
    columns: 3 360px;
    column-gap: 1.25rem;
}

.photo-grid__item {
    break-inside: avoid;
    margin: 0 0 1.25rem;
}

    .photo-grid__item img {
        display: block;
        width: 100%;
        height: auto;
    }

    .photo-grid__item figcaption {
        padding-top: 0.5rem;
        color: #666;
        font-size: 0.85rem;
    }

.portfolio-empty {
    padding: 3rem;
    border: 1px solid rgba(22, 22, 22, 0.18);
    text-align: center;
    color: #666;
}

.hero-focal-editor {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #222;
    cursor: crosshair;
}

.hero-focal-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-focal-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

    .hero-focal-marker::before,
    .hero-focal-marker::after {
        content: "";
        position: absolute;
        background: white;
    }

    .hero-focal-marker::before {
        width: 8px;
        height: 2px;
        left: 5px;
        top: 8px;
    }

    .hero-focal-marker::after {
        width: 2px;
        height: 8px;
        left: 8px;
        top: 5px;
    }

@media (hover: none) {
    .portfolio-home .editorial-card__overlay,
    .portfolio-home .editorial-card__info {
        opacity: 1;
    }
}

/* Site footer */
.site-footer {
    background: #111;
    color: #fff;
}

.site-footer__inner {
    width: min(100%, calc(var(--page-width) + var(--page-gutter) + var(--page-gutter)));
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) var(--page-gutter) 2rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(500px, 1.8fr) minmax(130px, .55fr) auto;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer__brand {
    color: inherit;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer__brand:hover,
.site-footer a:hover {
    color: inherit;
}

.site-footer__nav {
    display: grid;
    gap: .85rem;
}

.site-footer__nav a,
.site-footer__bottom a {
    position: relative;
    width: fit-content;
    color: inherit;
    font-size: .76rem;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer__nav a:hover,
.site-footer__bottom a:hover {
    opacity: .58;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

.site-footer__socials a {
    display: grid;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .7rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: inherit;
    place-items: center;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.site-footer__socials a:hover {
    background: #fff;
    color: #111;
}

.site-footer__socials svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.site-footer__socials span {
    font-size: .7rem;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}

.site-footer__legal button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.site-footer__legal a:hover,
.site-footer__legal button:hover {
    color: #fff;
}

/* Cookie and analytics preferences */
.cookie-consent {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    z-index: 3000;
    width: min(100% - 2rem, 760px);
    margin-left: auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 4px;
    background: #151515;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__copy strong {
    display: block;
    margin-bottom: .6rem;
    font-size: 1rem;
    font-weight: 500;
}

.cookie-consent__copy p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    line-height: 1.65;
}

.cookie-consent__copy a {
    color: #fff;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.25rem;
}

.cookie-consent__actions button {
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 2px;
    background: transparent;
    color: #fff;
    font-size: .78rem;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.cookie-consent__actions button:hover,
.cookie-consent__actions button:focus-visible {
    background: #fff;
    color: #151515;
}

@media (max-width: 520px) {
    .cookie-consent {
        width: auto;
        margin: 0;
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__brand {
        grid-column: auto;
        white-space: normal;
    }

    .site-footer__socials {
        justify-content: flex-start;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }
}

/* Privacy and legal notice pages */
.legal-page {
    width: min(100%, 980px);
    min-height: 65vh;
    margin: 0 auto;
    padding: clamp(4rem, 9vw, 8rem) var(--page-gutter);
}

.legal-page__back {
    display: inline-block;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    color: inherit;
    font-size: .78rem;
    text-decoration: none;
}

.legal-page__back:hover {
    color: inherit;
    opacity: .55;
}

.legal-page__header {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.legal-page__header h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.05em;
}

.legal-page__content {
    max-width: 760px;
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.legal-page__content p {
    margin: 0 0 1.5rem;
    line-height: 1.8;
    white-space: pre-line;
}

.legal-page__empty {
    color: var(--muted);
    font-style: italic;
}

/* CMS typography overrides live last so template and mobile rules cannot
   accidentally replace an editor-selected size. */
.portfolio-home > .landing-hero .landing-hero__content h1,
.portfolio-home > .work-section .work-header h2,
.portfolio-home > .landing-about h2,
.portfolio-home > .landing-testimonials h2,
.portfolio-home > .landing-contact h2 {
    font-size: clamp(24px, 8vw, var(--section-heading-size));
}

.portfolio-home > .landing-hero .landing-hero__intro,
.portfolio-home > .work-section .work-header > p,
.portfolio-home > .landing-about p:not(.section-eyebrow),
.portfolio-home > .landing-contact .landing-contact__intro > p:not(.section-eyebrow) {
    font-size: clamp(12px, 1.6vw, var(--section-body-size));
}

.portfolio-home > .landing-testimonials .testimonial-card blockquote {
    font-size: clamp(12px, 2vw, var(--section-body-size));
}

.portfolio-home > section .section-eyebrow,
.portfolio-home > .landing-testimonials .testimonial-card figcaption,
.portfolio-home > .landing-contact .contact-field label,
.portfolio-home > .landing-contact .contact-form__footer p,
.portfolio-home > .work-section .editorial-card h3 {
    font-size: clamp(10px, 1.25vw, var(--section-small-size));
}

/* Keep hero copy visually grounded near the bottom of the image. */
.portfolio-home > .landing-hero .landing-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    width: min(100%, calc(var(--page-width) + var(--page-gutter) + var(--page-gutter)));
    height: 100%;
    margin: 0 auto;
    padding: clamp(5rem, 10vh, 8rem) var(--page-gutter) 22vh;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 650px) {
    .portfolio-home > .landing-hero {
        height: calc(100svh - 112px);
        min-height: 650px;
    }

    .portfolio-home > .landing-hero .landing-hero__content {
        padding: 4rem 1.25rem 22svh;
    }

    .portfolio-home > .landing-hero .landing-hero__content h1 {
        max-width: 100%;
        font-size: min(var(--section-heading-size), clamp(2.15rem, 10.5vw, 3.65rem));
        line-height: .96;
        overflow-wrap: anywhere;
    }

    .portfolio-home > .landing-hero .landing-hero__intro {
        max-width: 100%;
        margin: 1.25rem 0 1.35rem;
        font-size: min(var(--section-body-size), 1.05rem);
        line-height: 1.5;
    }

    .portfolio-home > .landing-hero .landing-hero__link {
        align-self: flex-start;
        flex-shrink: 0;
        line-height: 1.4;
    }

    .portfolio-home > .work-section .work-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
        margin-bottom: 3rem;
    }

    .portfolio-home > .work-section .work-header h2,
    .portfolio-home > .work-section .work-header > p {
        width: 100%;
        max-width: 100%;
    }

    .portfolio-home > .work-section .work-header > p {
        margin: 0;
    }
}
