/* ==========================================================================
   Designer Flair - page sections
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------
   The photograph is busy in the middle, so the copy is anchored to the same
   left gutter as the logo and given a directional scrim. That keeps the
   headline legible without flattening the image.                             */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(92svh, 880px);
    /* The sticky header sits over the hero, so pull the image up behind it. */
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        /* Top band: the header is transparent over the hero, so this guarantees
           the white navigation stays legible whatever photograph is used. */
        linear-gradient(to bottom, rgba(14, 14, 14, .58) 0%, rgba(14, 14, 14, .22) 14%,
                        rgba(14, 14, 14, 0) 26%),
        /* Directional scrim behind the headline. Kept light enough that the
           fabric texture still reads through it. */
        linear-gradient(96deg, rgba(14, 14, 14, .74) 0%, rgba(14, 14, 14, .56) 34%,
                        rgba(14, 14, 14, .26) 62%, rgba(14, 14, 14, .1) 100%),
        linear-gradient(to top, rgba(14, 14, 14, .55) 0%, rgba(14, 14, 14, 0) 45%);
}

.hero__inner {
    width: 100%;
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero__content {
    max-width: 44rem;
}

.hero__title {
    font-size: var(--fs-hero);
    line-height: var(--lh-tight);
    letter-spacing: -.025em;
    color: #fff;
    text-wrap: balance;
}

.hero__title .accent {
    color: var(--gold);
    /* A whisper of shadow so the gold italic holds up over the bright window. */
    text-shadow: 0 2px 24px rgba(14, 14, 14, .35);
}

.hero__text {
    margin-top: var(--space-lg);
    max-width: 34rem;
    font-size: var(--fs-lead);
    color: rgba(255, 255, 255, .86);
}

.hero__actions {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Subtle "scroll" cue in the bottom corner - decorative only. */
.hero__cue {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.hero__cue::after {
    content: "";
    width: 46px;
    height: 1px;
    background: var(--gold);
    transform-origin: right;
    animation: cue 2.6s ease-in-out infinite;
}

@keyframes cue {
    0%, 100% { transform: scaleX(.4); opacity: .5; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* ---- About --------------------------------------------------------------- */

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 4.5vw, 4rem);
    align-items: center;
}

.about__media {
    position: relative;
}

.about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Thin gold frame offset behind the photograph. */
.about__media::before {
    content: "";
    position: absolute;
    inset: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem) auto auto;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    z-index: -1;
}

/* The 40+ years badge - the single loudest statement of experience. */
.experience-badge {
    position: absolute;
    left: clamp(-1rem, -1.5vw, -.5rem);
    bottom: clamp(-1.25rem, -2vw, -1rem);
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: clamp(1rem, 2.2vw, 1.5rem) clamp(1.25rem, 2.6vw, 2rem);
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
}

.experience-badge__number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
    font-weight: 700;
    line-height: 1;
    color: var(--gold-light);
}

.experience-badge__label {
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.about__body > * + * {
    margin-top: var(--space-lg);
}

.about__signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold-deep);
}

/* ---- Services ------------------------------------------------------------ */

.services__grid {
    margin-top: var(--heading-gap);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* ---- Gallery slider ------------------------------------------------------
   A horizontal strip the visitor swipes through, rather than a stack of
   images. It is a plain scroll container with CSS scroll-snap: the browser
   does the swiping, the momentum and the snapping, so there is no carousel
   library to download and it works even if the JavaScript never runs.        */

.gallery {
    overflow: hidden; /* the strip bleeds past the container edge */
}

.gallery__head {
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.carousel {
    position: relative;
}

.carousel__track {
    display: flex;
    gap: clamp(.75rem, 1.4vw, 1.25rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Start in line with the page container, but let the strip run off the
       right edge so it is obvious there is more to see. */
    padding-inline: max(var(--gutter), calc((100vw - var(--container-wide)) / 2 + var(--gutter)));
    padding-block: .5rem;

    /* Hide the scrollbar without losing the ability to scroll. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.carousel__track:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
}

.carousel__slide {
    position: relative;
    flex: 0 0 clamp(260px, 30vw, 460px);
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ground-deep);
    border-radius: var(--radius);
    scroll-snap-align: start;
}

/* The feature photograph gets a wider frame so the strip has a rhythm. */
.carousel__slide--feature {
    flex-basis: clamp(300px, 44vw, 680px);
    aspect-ratio: 3 / 2;
}

/* The photograph is a button that opens the full-screen viewer. It is stripped
   back to a plain block so it behaves exactly as the <img> used to, and only
   the focus ring and the cursor give it away as something to press. */
.carousel__open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
}

.carousel__open:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -4px;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel__slide:hover img {
    transform: scale(1.04);
}

/* Magnifier badge, so it is obvious the photographs open. It fades in on
   hover on a mouse, and is always showing on touch - where there is no hover
   to reveal it and no other hint that a tap does anything. */
.carousel__zoom {
    position: absolute;
    top: clamp(.625rem, 1.4vw, .875rem);
    right: clamp(.625rem, 1.4vw, .875rem);
    z-index: 1;

    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;

    background: rgba(14, 14, 14, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;

    opacity: 0;
    transform: scale(.9);
    transition: opacity var(--transition), transform var(--transition);
}

.carousel__zoom svg {
    width: 19px;
    height: 19px;
}

.carousel__slide:hover .carousel__zoom,
.carousel__open:focus-visible .carousel__zoom {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .carousel__zoom {
        opacity: 1;
        transform: none;
    }
}

.carousel__caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(to top, rgba(14, 14, 14, .85), rgba(14, 14, 14, 0));
    color: #fff;

    /* The caption is laid over the button that opens the photograph, so it must
       let clicks through - otherwise the bottom third of every slide would
       quietly do nothing when tapped. */
    pointer-events: none;
}

.carousel__number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--gold-light);
}

.carousel__label {
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
}

/* ---- Slider arrows ---- */

.carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    translate: 0 -50%;

    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;

    background: rgba(255, 255, 255, .82);
    /* Frosted, so the arrow sits over the photograph without hiding it. */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    color: var(--ink);
    box-shadow: var(--shadow-lift);
    transition: background-color var(--transition), color var(--transition),
                opacity var(--transition), border-color var(--transition);
}

.carousel__nav svg {
    width: 22px;
    height: 22px;
}

.carousel__nav:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.carousel__nav:disabled {
    opacity: 0;
    pointer-events: none;
}

.carousel__nav--prev {
    left: clamp(.5rem, 2vw, 1.5rem);
}

.carousel__nav--next {
    right: clamp(.5rem, 2vw, 1.5rem);
}

/* ---- Slider footer: count and progress ---- */

.carousel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.carousel__hint {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin: 0;
    max-width: none;
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
}

.carousel__count {
    color: var(--gold-deep);
    font-weight: 600;
}

.carousel__progress {
    flex: 1 1 auto;
    max-width: 340px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.carousel__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform-origin: left;
    transition: transform var(--transition);
}.gallery__note {
    margin-top: var(--space-xl);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* ---- Call to action ------------------------------------------------------ */

.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Two soft gold pools keep the black band from reading as a flat slab. */
.cta::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 120%;
    background:
        radial-gradient(50% 45% at 22% 30%, rgba(198, 161, 91, .16), transparent 70%),
        radial-gradient(45% 40% at 82% 72%, rgba(198, 161, 91, .12), transparent 70%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.cta__kicker {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--fs-lead);
    color: var(--gold-light);
}

.cta__title {
    font-size: var(--fs-h1);
    letter-spacing: -.02em;
    max-width: 18ch;
    text-wrap: balance;
}

.cta__text {
    max-width: 52ch;
}

.cta__actions {
    margin-top: var(--space-sm);
    justify-content: center;
}

/* ---- Contact ------------------------------------------------------------- */

/* The three blocks are placed by name rather than by source order, because a
   phone wants them in a different order to a laptop (heading, form, details -
   see css/responsive.css). Naming them here means neither layout depends on
   how the markup happens to be written. */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
        "intro   form"
        "details form";
    /* Rows are the gap between the heading and the details, which was a margin
       on the intro before it became a grid item; columns keep the wider gutter. */
    gap: clamp(2rem, 4vw, 3rem) clamp(2.5rem, 4vw, 3.5rem);
    align-items: start;
}

.contact__intro {
    grid-area: intro;
}

.contact__details {
    grid-area: details;
    position: sticky;
    top: calc(var(--header-h) + var(--space-xl));
    /* A sticky grid item can only travel inside its own grid area, and this one
       is a single row. Stretching it to the full row height - which the taller
       form beside it sets - gives the details something to travel within, which
       is what the container gave them before they became a grid item. Without
       this the sticky above is silently inert. */
    align-self: stretch;
}

.contact__form {
    grid-area: form;
}

.contact__actions {
    margin-top: var(--space-xl);
}

/* ---- Scroll reveal -------------------------------------------------------
   Applied by js/site.js. Elements are visible by default and only hidden once
   the script confirms it can animate them, so the site is fully readable with
   JavaScript disabled or motion reduced.                                     */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}
