/* ---------------------------------------------------------------------------
   Clare Lou Photography
   Design tokens first, then layout, then page-specific blocks.
   --------------------------------------------------------------------------- */

/* Fonts are served from this site (SIL Open Font License, via Fontsource) rather than
   Google Fonts: faster, and no visitor data sent to a third party. Latin subset only. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/playfair-display-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/montserrat-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }

:root {
    --ivory: #FAF6F0;
    --cream: #FDFBF8;
    --sand: #F3EDE5;
    --white: #FFFFFF;

    --ink: #3D362F;
    --ink-strong: #241F1B;
    --muted: #635A50;
    --muted-light: #8F8579;

    /* The accent family. A studio's own palette overrides these four, plus the two link
       colours, in /brand/{slug}/{version}/theme.css - nothing else. The neutrals above are
       chosen from a small set of tested bases rather than typed in, because backgrounds and
       body text are where a free hand produces something unreadable.

       --gold-* are kept as aliases so the 1,300 lines below need no sweep; new rules should
       use --accent-*. */
    --accent: #94743C;
    --accent-light: #B6945E;
    --accent-pale: #D4BC90;
    --accent-cream: #EDE1C9;

    /* Worked out from --accent rather than chosen: text on an accent-coloured button. */
    --on-accent: #FFFFFF;

    --gold: var(--accent);
    --gold-light: var(--accent-light);
    --gold-pale: var(--accent-pale);
    --gold-cream: var(--accent-cream);

    --border: #E9E1D6;
    --rule: #DCD5CB;

    --link: #B36A50;
    --link-hover: #7C4A38;

    /* Neutral, not a studio's to change: states that mean something. */
    --danger: #8E3B2A;
    --danger-strong: #6E2C1F;
    --invalid: #A85B44;
    --invalid-wash: #F6EDE8;
    --field-placeholder: #B3A896;
    --heart: #C2553A;
    --lightbox: #14110F;
    --placeholder-from: #EFE7DB;
    --placeholder-to: #E3D8C8;
    --placeholder-ink: #9A8B76;

    --success: #5A7F4C;
    --success-wash: #E6EFE2;
    --success-ink: #3E6233;
    --warning: #C08A3E;
    --warning-wash: #F4EAD7;
    --warning-ink: #7C5B23;
    --critical: #A64B33;

    /* The wash over a photograph that keeps white text on it readable, and the shadow colour.
       Both derive from the base's darkest ink rather than a fixed near-black. */
    --scrim: var(--ink-strong);
    --shadow: #000000;
    --danger-wash: #F3E2DC;
    --danger-border: #E8CFC6;
    --danger-border-strong: #E2B8AA;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --script: 'Cormorant Garamond', Georgia, serif;
    --sans: Montserrat, 'Helvetica Neue', Arial, sans-serif;

    --shell: 1240px;
    --gutter: 40px;
    /* 18px padding + the 52px logo + 18px padding + the 1px rule. */
    --header-height: 89px;

    --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* A studio's mark, whatever shape it is.
   --header-height above is "18px padding + the 52px logo + 18px + 1px rule", so the logo has
   to occupy exactly that 52px however tall the file happens to be. object-fit keeps the whole
   mark visible inside the box instead of cropping or stretching it. */
.brand-mark {
    display: block;
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark--text {
    display: flex;
    align-items: center;
    font-family: var(--serif);
    font-size: 26px;
    letter-spacing: .01em;
    color: var(--ink-strong);
    white-space: nowrap;
}

/* Components set display: flex/grid; the hidden attribute must still win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

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

::selection { background: var(--accent-pale); color: var(--ink-strong); }

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

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --- Shared type ---------------------------------------------------------- */

.shell {
    max-width: var(--shell);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow--light { color: var(--gold-cream); }
.eyebrow--pale { color: var(--gold-pale); }

.meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--ink-strong);
    line-height: 1.18;
    margin: 0;
    text-wrap: pretty;
}

.lede { font-size: 16px; line-height: 1.75; color: var(--ink); }
.body-copy { font-size: 15px; line-height: 1.75; color: var(--ink); }
.body-copy--muted { color: var(--muted); line-height: 1.7; }

.quote {
    margin: 0;
    font-family: var(--script);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.6;
    color: var(--ink);
}

/* --- Buttons and links ---------------------------------------------------- */

/* --- Buttons ---------------------------------------------------------------- */

/* The base class is a finished button, not a set of fonts waiting for a modifier. It used
   to be the latter: no height, no padding, no background - so anything wearing only "btn"
   came out as whatever the browser draws by default, and the one variant half the studio
   asked for had never been written at all. A class that does nothing on its own is a class
   that will be used on its own. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    background: var(--accent);
    color: var(--on-accent);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease), transform .08s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink-strong)); color: var(--on-accent); }

/* A button that moves when pressed is a button somebody believes they pressed. */
.btn:active { transform: translateY(1px); }

/* Two rings, so the focused button is visible on a pale page and on a dark one. */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink-strong);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    background: var(--sand);
    color: var(--muted-light);
    border-color: var(--border);
    cursor: not-allowed;
    transform: none;
}

.btn--outline {
    height: 44px;
    padding: 0 22px;
    border-color: var(--ink-strong);
    color: var(--ink-strong);
    background: transparent;
}
.btn--outline:hover { background: var(--ink-strong); color: var(--cream); }

/* The quiet one: still plainly a button, but it does not compete with the action beside it.
   Used wherever something is secondary - "view your site", "cancel", "back to photos". */
.btn--ghost {
    border-color: var(--rule);
    color: var(--ink);
    background: var(--cream);
}
.btn--ghost:hover { background: var(--sand); color: var(--ink-strong); border-color: var(--muted-light); }

/* --- Choosing a file --------------------------------------------------------- */

/* Left to itself this is the one control on the page drawn entirely by the browser: a grey
   system button and "No file chosen", sitting among everything else that was designed. The
   element cannot be replaced without script and a hidden input, but it can be dressed: the
   control becomes a field, and the part that is a button is styled like one.

   :not(.visually-hidden) matters - the collection uploader hides a real file input behind
   its own drop zone, and a type selector would otherwise be specific enough to show it. */
input[type="file"]:not(.visually-hidden) {
    display: block;
    width: 100%;
    padding: 7px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    background: var(--cream);
    border: 1px solid var(--border);
    cursor: pointer;
}

input[type="file"]:not(.visually-hidden):hover { border-color: var(--muted-light); }

input[type="file"]:not(.visually-hidden):focus-visible {
    outline: none;
    border-color: var(--ink-strong);
    box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink-strong);
}

input[type="file"]:not(.visually-hidden)::file-selector-button {
    height: 34px;
    margin: 0 12px 0 0;
    padding: 0 16px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--sand);
    border: 1px solid var(--rule);
    cursor: pointer;
    transition: background .22s var(--ease), color .22s var(--ease);
}

input[type="file"]:not(.visually-hidden):hover::file-selector-button {
    background: var(--ink-strong);
    color: var(--cream);
    border-color: var(--ink-strong);
}

.btn--dark {
    height: 52px;
    padding: 0 34px;
    background: var(--ink-strong);
    color: var(--cream);
}
.btn--dark:hover { background: var(--ink); color: var(--cream); }

.btn--light {
    height: 52px;
    padding: 0 34px;
    background: var(--cream);
    color: var(--ink-strong);
}
.btn--light:hover { background: var(--gold-cream); color: var(--ink-strong); }

.link-underline {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink-strong);
    border-bottom: 1px solid var(--gold-pale);
    padding-bottom: 5px;
    transition: border-color .28s var(--ease);
}
.link-underline:hover { color: var(--ink-strong); border-color: var(--ink-strong); }

.link-quiet {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--muted);
}
.link-quiet:hover { color: var(--ink-strong); }

/* --- Image frames --------------------------------------------------------- */

.frame {
    position: relative;
    overflow: hidden;
    background: var(--sand);
}

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

/* Stands in for a photograph that has not been uploaded yet. */
.frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--placeholder-from) 0%, var(--placeholder-to) 100%);
    color: var(--placeholder-ink);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--ivory) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: opacity .28s var(--ease);
}
.wordmark:hover { opacity: .78; }

/* Width follows the mark's own proportions; only the height is pinned. */
.wordmark img {
    display: block;
    height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.site-nav a { color: var(--muted); }
.site-nav .site-nav__account { color: var(--gold); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink-strong); }
.site-nav .btn--outline[aria-current="page"] { background: var(--ink-strong); color: var(--cream); }

/* --- Navigation: the menu button and the drop-downs ------------------------- */

/* Both layouts use these. The button is hidden until nav.js says it works and the
   screen is small enough to need it, so a page without that script keeps every link
   on screen rather than behind a button that does nothing. */
.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    width: 44px;
    height: 44px;
    margin: -8px -10px -8px 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink-strong);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* Three bars become a cross, so the button says what it will do next. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* A group of links behind one word. <details> rather than a scripted menu: it opens on a
   click or the keyboard with nothing running, which matters because a navigation that
   needs JavaScript to reach half the site is a navigation that can lose half the site. */
.nav-group { position: relative; }

.nav-group > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.nav-group > summary::-webkit-details-marker { display: none; }

/* Drawn here rather than left to the marker, so it can turn when the group opens. */
.nav-group > summary::after {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s var(--ease);
    opacity: .6;
}
.nav-group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }

.nav-group__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -8px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding: 8px;
    background: var(--cream);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--shadow) 30%, transparent);
}

.nav-group__menu a {
    padding: 9px 12px;
    white-space: nowrap;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
}

.hero .frame { height: 100%; }

/* The hero photograph carries the studio watermark near the top of the frame.
   A centred cover-crop clips it, so anchor the crop above centre - that keeps
   the logo clear of the header while still holding the couple in shot. */
.hero .frame img { object-position: center 20%; }

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--scrim) 42%, transparent), transparent 55%);
    pointer-events: none;
}

.hero__copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0 var(--gutter) 46px;
    pointer-events: none;
}

.hero__copy > div {
    max-width: var(--shell);
    margin: 0 auto;
    animation: rise .9s var(--ease) both;
}

.hero__heading { margin: 0; font-weight: inherit; }
.hero__heading .eyebrow { display: block; }

.hero__title {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.08;
    letter-spacing: .02em;
    color: var(--white);
    margin: 14px 0 0;
    max-width: 16ch;
    text-wrap: pretty;
}

/* --- Home: introduction --------------------------------------------------- */

.intro {
    padding-top: 90px;
    padding-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: start;
}

.intro__kicker {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    padding-top: 12px;
    /* No cap: the grid column is the constraint, which is what it is for. The 14ch here
       before suited "Est. 2014" and little else - "Twelve years behind the camera" came
       out as six stacked lines of two words in a 103px ribbon inside a 489px column, and
       read as a mistake rather than as the margin note it is. */
    line-height: 1.7;
}

.intro__heading {
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.24;
    letter-spacing: .01em;
}

.intro p { margin: 22px 0 0; max-width: 60ch; }

/* --- Home: numbered features --------------------------------------------- */

.feature {
    padding-top: 70px;
    display: grid;
    gap: 56px;
}

.feature--wide-left  { grid-template-columns: 1.35fr 1fr; align-items: end; }
.feature--pair-right { grid-template-columns: 1fr 1.35fr; align-items: start; }
/* Centred rather than bottom-aligned: this block's picture is an upright, so
   hanging the copy off the bottom would leave a long gap above it. */
.feature--landscape  { grid-template-columns: 1.35fr 1fr; align-items: center; }
.feature--last { padding-bottom: 96px; }

.feature__copy--bottom { padding-bottom: 16px; }
.feature__copy--top { padding-top: 24px; }

.feature__label { display: flex; align-items: baseline; gap: 14px; }

.feature__number {
    font-family: var(--script);
    font-size: 15px;
    font-style: italic;
    color: var(--gold-light);
}

.feature__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}

.feature__heading { margin-top: 16px; font-size: 28px; line-height: 1.2; }
.feature__body { margin: 16px 0 0; }
.feature__link { margin-top: 20px; }

.feature__pair {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    align-items: start;
}

/* The second image of the pair drops down to break the top line. */
.feature__pair > .frame:nth-child(2) { margin-top: 56px; }

/* --- Home: testimonials --------------------------------------------------- */

.testimonials {
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials__grid {
    padding-top: 80px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.testimonials__grid .meta { margin-top: 18px; }

/* --- Home: about ---------------------------------------------------------- */

.about {
    padding-top: 96px;
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
    scroll-margin-top: var(--header-height);
}

.about__heading { margin-top: 18px; font-size: 34px; }
.about p { margin: 20px 0 0; max-width: 56ch; }
.about p + p { margin-top: 14px; }

.stats {
    margin-top: 34px;
    display: grid;
    /* Fit as many as the column is wide enough for rather than always three: a studio that adds
       a fourth figure got three across and one stranded underneath, which reads as a mistake
       rather than a choice. Three still sit in a row at the widths this column is ever given. */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

.stat { border-top: 1px solid var(--rule); padding-top: 12px; }
.stat__value { font-family: var(--serif); font-size: 24px; color: var(--ink-strong); }
.stat__label {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-light);
}

/* --- Home: services ------------------------------------------------------- */

.services {
    background: var(--cream);
    border-top: 1px solid var(--border);
    scroll-margin-top: var(--header-height);
}

.services__inner { padding-top: 88px; padding-bottom: 88px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.section-head__heading { margin-top: 16px; font-size: 34px; }
.section-head p { margin: 0; max-width: 44ch; }

.services__grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: border-color .28s var(--ease);
}
.service-card:hover { color: inherit; border-color: var(--gold-pale); }

.service-card__body { padding: 20px; }
.service-card__title { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink-strong); margin: 0; }
.service-card__body p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.service-card__cta {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Home: closing band --------------------------------------------------- */

.cta-band { background: var(--ink-strong); }

.cta-band__inner {
    padding-top: 96px;
    padding-bottom: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-band__heading {
    margin-top: 16px;
    font-size: 38px;
    line-height: 1.16;
    color: var(--ivory);
    max-width: 22ch;
}

/* --- Portfolio ------------------------------------------------------------ */

.portfolio { padding-top: 72px; padding-bottom: 40px; }
.portfolio__heading { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }

.portfolio-row { margin-top: 60px; }
.portfolio-row + .portfolio-row { margin-top: 56px; }
.portfolio-row:last-child { padding-bottom: 20px; }

.portfolio-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.portfolio-row__title { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--ink-strong); margin: 0; }

.row-scroller {
    margin-top: 22px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
}

.row-scroller::-webkit-scrollbar { height: 2px; }
.row-scroller::-webkit-scrollbar-thumb { background: var(--rule); }

.gallery-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    color: inherit;
}
.gallery-card:hover { color: inherit; }
.gallery-card .frame img { transition: transform .6s var(--ease); }
.gallery-card:hover .frame img { transform: scale(1.03); }

.gallery-card__title { margin-top: 12px; font-family: var(--serif); font-size: 17px; color: var(--ink-strong); }

.gallery-card__meta {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-light);
}

/* --- Gallery detail ------------------------------------------------------- */

.gallery-crumbs {
    padding-top: 34px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.gallery-crumbs .eyebrow { letter-spacing: .24em; }

.gallery-body { padding-top: 34px; }

.gallery-intro { max-width: 60ch; margin: 46px auto 0; text-align: center; }
.gallery-intro__title { margin-top: 16px; font-size: 34px; line-height: 1.2; }

.gallery-intro__story {
    margin: 18px 0 0;
    font-family: var(--script);
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.65;
    color: var(--muted);
}

.photo-row { margin-top: 20px; display: grid; gap: 20px; }
.photo-row:first-of-type { margin-top: 52px; }
.photo-row--1 { grid-template-columns: 1fr; }
.photo-row--2 { grid-template-columns: repeat(2, 1fr); }
.photo-row--3 { grid-template-columns: repeat(3, 1fr); }

.gallery-quote {
    margin-top: 80px;
    background: var(--sand);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gallery-quote__inner { max-width: 60ch; margin: 0 auto; padding: 70px var(--gutter); text-align: center; }
.gallery-quote__inner .quote { font-size: 24px; }
.gallery-quote__inner .meta { margin-top: 20px; }

.gallery-foot {
    padding-top: 44px;
    padding-bottom: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gallery-foot__spacer { flex: 0 0 auto; min-width: 1px; }

/* --- Contact -------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: calc(100vh - var(--header-height));
}

.contact__image { position: relative; min-width: 0; min-height: 520px; }
.contact__image .frame { position: absolute; inset: 0; }

.contact__panel {
    min-width: 0;
    padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px) 88px;
    max-width: 660px;
}

.contact__heading { margin-top: 16px; font-size: 40px; line-height: 1.14; }
.contact__panel > p { margin: 16px 0 0; max-width: 46ch; }

.enquiry-form { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label,
.fieldset__legend {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0;
}

.field input,
.field textarea {
    padding: 0 14px;
    border: 1px solid var(--rule);
    background: var(--white);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-strong);
    outline: none;
    border-radius: 0;
    transition: border-color .24s var(--ease);
}

.field input { height: 46px; }
.field textarea { padding: 12px 14px; line-height: 1.7; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold-light); }
.field input::placeholder, .field textarea::placeholder { color: var(--field-placeholder); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--invalid); }

.field-error {
    font-family: var(--script);
    font-style: italic;
    font-size: 15px;
    color: var(--invalid);
}

.session-picker { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; }
.session-picker__options { display: flex; flex-wrap: wrap; gap: 9px; }

/* Radio styled as a pill; the input itself is hidden but still focusable. */
.pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.pill span {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}

.pill:hover span { border-color: var(--gold-light); }

.pill input:checked + span {
    background: var(--ink-strong);
    color: var(--cream);
    border-color: var(--ink-strong);
}

.pill input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Honeypot: off-screen for people, still fillable by a bot. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.form-sent {
    font-family: var(--script);
    font-style: italic;
    font-size: 17px;
    color: var(--gold);
}

.form-summary {
    margin: 0;
    padding: 14px 16px;
    border-left: 2px solid var(--invalid);
    background: var(--invalid-wash);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
}
.form-summary ul { margin: 0; padding-left: 18px; }

.contact-details {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}
.contact-details a { color: var(--muted); }
.contact-details a:hover { color: var(--ink-strong); }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--cream); border-top: 1px solid var(--border); }

.site-footer__inner {
    padding-top: 56px;
    padding-bottom: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px 48px;
}

.site-footer__mark img { display: block; height: 62px; width: auto; }

.site-footer__strapline {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.site-footer__contact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-style: normal;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
}
.site-footer__contact a { color: var(--muted); }
.site-footer__contact a:hover { color: var(--ink-strong); }

.site-footer__links { display: flex; gap: 52px; font-size: 13px; line-height: 2.1; color: var(--muted); }
.site-footer__links > nav { display: flex; flex-direction: column; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--ink-strong); }

.site-footer__heading {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-footer__copyright {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted-light);
}

/* --- Error page ----------------------------------------------------------- */

.error-page { padding: 120px 0 140px; text-align: center; }
.error-page h1 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); }
.error-page p { margin: 18px auto 32px; max-width: 46ch; }

/* --- Buttons: extra sizes ------------------------------------------------- */

/* Size only. Everything about how a button looks comes from the base and the colour
   variants, so these can be combined with any of them. */
.btn--small { height: 36px; padding: 0 16px; font-size: 10px; letter-spacing: .16em; }
.btn--tall { height: 52px; padding: 0 32px; }

.btn--danger { background: var(--danger); color: var(--cream); border-color: transparent; }
.btn--danger:hover { background: var(--danger-strong); color: var(--cream); }

/* --- Inner page heading -------------------------------------------------- */

.page-head { padding-top: 72px; padding-bottom: 8px; max-width: calc(var(--shell)); }
.page-head__title { margin-top: 16px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.14; max-width: 22ch; }
.page-head__intro { margin: 20px 0 0; max-width: 60ch; color: var(--muted); }

.prose p { margin: 0 0 18px; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.about--page { padding-top: 48px; align-items: start; }
.about__link { margin-top: 26px; }

.testimonials__more { padding-bottom: 56px; margin-top: -24px; }
.testimonials--spaced { margin-top: 88px; }

.empty-note { padding-top: 40px; padding-bottom: 96px; }

/* --- Breadcrumbs --------------------------------------------------------- */

.crumbs {
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted-light);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink-strong); }

/* --- Services ------------------------------------------------------------ */

.service-hero {
    padding-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.service-hero__title { margin-top: 16px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.14; }
.service-hero .lede { margin: 22px 0 0; max-width: 52ch; }
.service-hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.service-body {
    padding-top: 88px;
    padding-bottom: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.includes {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 34px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.includes .link-underline { margin-top: 26px; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 17px;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

.service-list { padding-top: 40px; padding-bottom: 72px; }

.service-row {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.service-row:nth-child(even) .service-row__image { order: 2; }
.service-row__title { margin-top: 14px; font-size: 30px; line-height: 1.2; }
.service-row__title a { color: inherit; }
.service-row .body-copy { margin: 16px 0 0; max-width: 56ch; }
.service-row__actions { margin-top: 26px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.services--compact .services__inner { padding-top: 56px; padding-bottom: 56px; }
.other-services { margin-top: 18px; display: flex; gap: 32px; flex-wrap: wrap; }

/* --- FAQs ---------------------------------------------------------------- */

.faq-page { padding-top: 32px; padding-bottom: 96px; max-width: 900px; margin-left: auto; margin-right: auto; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group__title { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink-strong); }

.faq-list { border-top: 1px solid var(--rule); }

.faq { border-bottom: 1px solid var(--rule); }
.faq__question {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 22px 44px 22px 0;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.4;
    color: var(--ink-strong);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
    transition: transform .28s var(--ease);
}
.faq[open] .faq__question::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__question:hover { color: var(--link-hover); }
.faq__answer { padding: 0 0 24px; max-width: 64ch; }
.faq__answer p { margin: 0 0 12px; }

.faq-block { padding-top: 96px; padding-bottom: 32px; max-width: 900px; }
.faq-block .faq-list { margin-top: 28px; }
.faq-block__more { margin-top: 22px; }

/* --- Kind words ---------------------------------------------------------- */

.kind-words {
    padding-top: 48px;
    padding-bottom: 96px;
    columns: 2 380px;
    column-gap: 56px;
}
.kind-word {
    break-inside: avoid;
    margin: 0 0 48px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
}
.kind-word .quote { margin: 0; font-size: 22px; }
.kind-word .meta { margin-top: 16px; }

/* --- Legal pages --------------------------------------------------------- */

.legal { padding-top: 72px; padding-bottom: 96px; max-width: 820px; }
.legal .meta { margin-top: 14px; }
.legal .lede { margin: 28px 0 0; }
.legal h2 { margin: 44px 0 0; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink-strong); }
.legal h3 { margin: 26px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.legal p, .legal li { font-size: 15px; line-height: 1.8; color: var(--ink); }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal code { font-size: 12px; background: var(--sand); padding: 2px 6px; }

.table-scroll { margin-top: 18px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.legal-table th { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* --- Forms: extras ------------------------------------------------------- */

.field select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    background: var(--white);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-strong);
    border-radius: 0;
}
.field__help { font-size: 12px; line-height: 1.6; color: var(--muted-light); }
.field__optional { text-transform: none; letter-spacing: 0; color: var(--muted-light); }

/* --- Sign-in, invitations ------------------------------------------------ */

.auth-card { padding-top: 96px; padding-bottom: 120px; max-width: 680px; }
.auth-card__title { margin-top: 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.16; }
.auth-card .body-copy { margin: 18px 0 28px; }

.invite { padding-top: 72px; padding-bottom: 120px; display: flex; justify-content: center; }
.invite__card {
    width: 100%;
    max-width: 620px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 56px clamp(24px, 6vw, 64px) 52px;
    text-align: center;
}
.invite__logo { width: 112px; height: auto; margin: 0 auto 34px; }
.invite__title { margin-top: 16px; font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
.invite__title--small { font-size: clamp(26px, 3vw, 34px); }
.invite .lede { margin: 22px auto 0; max-width: 46ch; }
.invite .meta { margin-top: 12px; }
.invite__actions { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.invite__actions .btn, .invite__actions form, .invite__actions form .btn { width: 100%; max-width: 340px; }
.invite__note { margin: 28px auto 0; max-width: 44ch; font-size: 13px; line-height: 1.7; color: var(--muted-light); }

/* --- Client area --------------------------------------------------------- */

.client-collections { padding-top: 40px; padding-bottom: 96px; }
.collection-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.collection-card { color: inherit; }
.collection-card:hover { color: inherit; }
.collection-card .frame img { transition: transform .6s var(--ease); }
.collection-card:hover .frame img { transform: scale(1.02); }
.collection-card.is-closed .frame { opacity: .6; }
.collection-card__title { margin-top: 14px; font-family: var(--serif); font-size: 21px; color: var(--ink-strong); }
.collection-card__meta { margin-top: 5px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.client-collections__signout { margin-top: 64px; }

.empty-state { padding: 32px 0 64px; max-width: 60ch; }
.empty-state .body-copy { margin: 0 0 14px; }

.client-gallery__head { padding-top: 32px; padding-bottom: 28px; }
.client-gallery__intro { margin: 40px auto 0; max-width: 64ch; text-align: center; }
.client-gallery__title { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.client-gallery__message {
    margin-top: 20px;
    font-family: var(--script);
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
}
.client-gallery__message p { margin: 0 0 10px; }
.client-gallery__expiry { margin-top: 18px; text-align: center; }
.client-gallery__hint { margin: 14px 0 0; font-size: 13px; color: var(--muted-light); text-align: center; }

.notice {
    margin: 26px auto 0;
    max-width: 760px;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--gold-cream);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}
.notice--welcome { border-color: var(--gold-pale); }
.notice--studio { background: var(--sand); }

.gallery-toolbar {
    margin-top: 36px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.gallery-toolbar__tabs { display: flex; gap: 26px; }
.gallery-toolbar__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.gallery-tab {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.gallery-tab span { color: var(--muted-light); margin-left: 4px; }
.gallery-tab[aria-selected="true"] { color: var(--ink-strong); border-color: var(--ink-strong); }

.favourites-empty { padding-top: 8px; padding-bottom: 48px; text-align: center; }

/* A justified grid without script: each tile grows in proportion to its aspect ratio,
   so every row fills the width and every picture keeps its shape. */
.justified {
    --row: 260px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 8px 96px;
}
.justified::after { content: ''; flex-grow: 999999; }

.tile {
    position: relative;
    margin: 0;
    flex: calc(var(--ar) * 1000) 1 calc(var(--ar) * var(--row));
    background: var(--sand);
    overflow: hidden;
}
.tile::before { content: ''; display: block; padding-top: calc(100% / var(--ar)); }
.tile__open { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.tile:hover img { transform: scale(1.015); }

.is-favourites-only .tile:not(.is-favourite) { display: none; }

.heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--scrim) 32%, transparent);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s, transform .2s var(--ease);
}
.heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.heart:hover { background: color-mix(in srgb, var(--scrim) 50%, transparent); }
.heart[aria-pressed="true"] { background: var(--white); color: var(--heart); }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart.is-popping { transform: scale(1.18); }

.tile__heart { position: absolute; right: 10px; bottom: 10px; opacity: 0; }
.tile:hover .tile__heart, .tile__heart:focus-visible, .tile__heart[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .tile__heart { opacity: 1; } }

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--lightbox);
    display: grid;
    grid-template-rows: auto 1fr;
    color: var(--cream);
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 16px;
}
.lightbox__count { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-pale); }
.lightbox__actions { display: flex; align-items: center; gap: 10px; }
.lightbox__button {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
    background: transparent;
    color: var(--cream);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
}
.lightbox__button:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); color: var(--cream); }
.lightbox__stage { margin: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 28px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__nav {
    position: fixed;
    top: 50%;
    width: 52px;
    height: 72px;
    margin-top: -36px;
    border: 0;
    background: transparent;
    color: var(--cream);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
.lightbox .heart { background: color-mix(in srgb, var(--cream) 12%, transparent); }

body.has-lightbox { overflow: hidden; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    :root { --gutter: 28px; }

    .intro,
    .about,
    .feature--wide-left,
    .feature--pair-right,
    .feature--landscape { grid-template-columns: minmax(0, 1fr); gap: 32px; }

    .intro { padding-top: 64px; }
    .intro__kicker { max-width: none; padding-top: 0; }

    .about { padding-top: 72px; padding-bottom: 72px; }

    /* Copy always follows its picture once the columns stack. */
    .feature--pair-right .feature__copy { order: 2; padding-top: 0; }
    .feature--pair-right .feature__pair { order: 1; }
    .feature__copy--bottom { padding-bottom: 0; }

    .testimonials__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 60px; padding-bottom: 60px; }

    .contact { grid-template-columns: minmax(0, 1fr); }
    .contact__image { min-height: 360px; }
    .contact__panel { max-width: none; }

    .cta-band__inner { padding-top: 72px; padding-bottom: 72px; }
    .cta-band__heading { font-size: 30px; }

    .service-hero, .service-body, .service-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .service-row:nth-child(even) .service-row__image { order: 0; }
    .service-body { padding-top: 56px; }
    .includes { position: static; }
    .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    /* "14px padding + the 42px logo + 14px + 1px rule". The links are behind the menu
       button now, so the header is one row again and anchor offsets can go back to
       measuring it rather than a stack of wrapped links. */
    :root { --header-height: 71px; }

    .site-header__inner { padding: 14px var(--gutter); gap: 16px; }
    .wordmark img { height: 42px; }

    /* Without the script the links stay where they were: wrapped under the mark, which is
       untidy but complete. With it, they fold away behind the button. */
    .js-nav .nav-toggle { display: inline-flex; }

    .js-nav .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 18px;
        background: var(--ivory);
        border-bottom: 1px solid var(--border);
    }
    .js-nav .site-nav[data-open] { display: flex; }
    .js-nav .site-nav > * { padding: 13px 0; border-bottom: 1px solid var(--border); }
    .js-nav .site-nav > *:last-child { border-bottom: 0; }

    /* The enquire button is a link in this list, not a button floating in a column. */
    .js-nav .site-nav .btn--outline {
        align-self: flex-start;
        margin-top: 14px;
        padding: 0 22px;
        border-bottom: 1px solid currentColor;
    }

    .site-nav:not([data-open]) { gap: 18px; flex-wrap: wrap; }

    .hero { height: 70vh; min-height: 440px; }

    .services__grid { grid-template-columns: minmax(0, 1fr); }
    .field-pair { grid-template-columns: minmax(0, 1fr); }
    .photo-row--2, .photo-row--3 { grid-template-columns: minmax(0, 1fr); }

    .gallery-foot { flex-direction: column; align-items: stretch; text-align: center; }

    .stats { gap: 16px; }
    .stat__label { letter-spacing: .12em; }

    .site-footer__links { gap: 28px; flex-wrap: wrap; }

    .page-head { padding-top: 48px; }
    .justified { --row: 150px; gap: 4px; padding: 0 4px 64px; }
    .gallery-toolbar { justify-content: center; }
    .lightbox__stage { padding: 0 0 16px; }
    .lightbox__nav { display: none; }
    .lightbox__bar { padding: 10px 12px; }
    .lightbox__button { padding: 0 12px; }
}

@media (max-width: 460px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .gallery-card { flex-basis: 240px; }
}

/* --- A client's bill ------------------------------------------------------ */

/* Read by people who have no account here and may well be on a phone at a kitchen
   table, so it is one sheet, in reading order, with the amount due impossible to miss. */

.bill { padding-top: 48px; padding-bottom: 96px; }

.bill__sheet {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    padding: clamp(26px, 5vw, 52px);
}

.bill__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--rule);
}

.bill__ref { text-align: right; margin-left: auto; }
.bill__number { margin: 10px 0 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; font-weight: 400; }
.bill__ref .meta { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }

.bill__state {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bill__state--paid { background: var(--success-wash); color: var(--success-ink); }
.bill__state--due { background: var(--sand); color: var(--muted); }
.bill__state--late { background: var(--warning-wash); color: var(--warning-ink); }
.bill__state--void { background: var(--danger-wash); color: var(--danger); }

.bill__notice {
    margin: 26px 0 0;
    padding: 14px 16px;
    background: var(--warning-wash);
    color: var(--warning-ink);
    font-size: 14px;
    line-height: 1.6;
}

.bill__notice--good { background: var(--success-wash); color: var(--success-ink); }

.bill__parties {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px 32px;
}

.bill__line { margin: 0 0 3px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.bill__parties .eyebrow { margin-bottom: 9px; }

/* Across both columns, under the addresses: where to pay is the one thing here a client
   has to act on, and it should not read as four more lines of the studio's address. */
.bill__pay {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.bill__notes {
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-line;
}

.bill__lines { width: 100%; margin-top: 30px; border-collapse: collapse; font-size: 14px; }

.bill__lines th {
    padding: 0 0 9px;
    border-bottom: 1px solid var(--ink-strong);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-light);
    text-align: left;
}

.bill__lines td { padding: 13px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.bill__lines th + th, .bill__lines td + td { padding-left: 14px; }
.bill__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.bill__totals { margin: 22px 0 0; display: flex; flex-direction: column; gap: 9px; }

.bill__totals > div {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 24px;
    font-size: 14px;
}

.bill__totals dt { color: var(--muted); }
.bill__totals dd { margin: 0; min-width: 110px; text-align: right; font-variant-numeric: tabular-nums; }

.bill__total {
    margin-top: 5px;
    padding-top: 13px;
    border-top: 1px solid var(--ink-strong);
}

.bill__total dt { color: var(--ink-strong); font-size: 15px; }
.bill__total dd { font-size: 22px; color: var(--ink-strong); }

.bill__actions { margin-top: 34px; }
.bill__foot { margin: 22px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted-light); }

@media (max-width: 560px) {
    .bill__head { flex-direction: column; }
    .bill__ref { margin-left: 0; text-align: left; }
    .bill__ref .meta { justify-content: flex-start; }

    /* Four columns do not fit a phone. The unit price goes, because quantity and amount
       between them still say what the line is; the PDF has the lot. */
    .bill__lines th:nth-child(3), .bill__lines td:nth-child(3) { display: none; }
}
