/* ═══════════════════════════════════════════════════════════════════════════
   Atelier — front page.

   One stylesheet for the whole page rather than one per section: the sections
   share the hero's grid and the card treatment, and splitting them meant the
   same rules twice plus five render-blocking requests on the most-visited URL.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.at-hero {
    position: relative;
    overflow: hidden;
    background: var(--at-band, #f2ebe1);
}

/* Linen: split hero, copy left on the warm ground, painting right.
   Noir overrides this to a centred, full-bleed photograph. See
   noir-layout.css -- that is a variation's layout, not dark mode. */
.at-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: min(78vh, 700px);
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* rem, not ch. A `ch` on this container resolves against its own 1rem font
   size, not the h1's, so `30ch` came out ~240px and folded a two-line headline
   into four. The measure that matters here is the headline's. */
.at-hero-copy { max-width: 34rem; }

.at-hero h1 {
    font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
    line-height: 1.06;
    margin-bottom: 0.5em;
}

.at-hero p {
    max-width: 38ch;
    color: var(--at-muted, #6b625a);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.at-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* The full-bleed photograph behind the Noir hero. Hidden in Linen. */
.at-hero-media {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.at-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.at-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Denser at the top so the fixed header's links stay legible over it. */
    background: linear-gradient(180deg,
        rgba(8, 7, 6, 0.72) 0%,
        rgba(8, 7, 6, 0.5) 45%,
        rgba(8, 7, 6, 0.68) 100%);
}

/* ── The layered painting stack on the right of the Linen hero ─────────── */
.at-hero-stack {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 5 / 4;
}

.at-hero-stack figure {
    position: absolute;
    margin: 0;
    background: var(--at-panel, #ffffff);
    box-shadow: var(--at-shadow-soft, 0 18px 48px rgba(42, 39, 36, 0.09));
    overflow: hidden;
}

/* The main canvas, square on the easel. */
.at-hero-stack .at-stack-main {
    inset: 0 12% 8% 0;
    z-index: 2;
}
/* The smaller study tucked behind and below, rotated a touch. */
.at-hero-stack .at-stack-aside {
    right: 0; bottom: 0;
    width: 46%;
    aspect-ratio: 3 / 4;
    z-index: 3;
    transform: rotate(3deg);
    border: 8px solid var(--at-panel, #ffffff);
    box-shadow: var(--at-shadow-lift, 0 26px 64px rgba(42, 39, 36, 0.15));
}
.at-hero-stack img { width: 100%; height: 100%; object-fit: cover; }

/* The soft painted wash behind the stack — a blurred blush ellipse, not an
   image, so it costs nothing and recolours with the palette. */
.at-hero-stack::before {
    content: '';
    position: absolute;
    inset: -12% -8% -6% 4%;
    z-index: 0;
    background: var(--at-blush, #e8d3cb);
    border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
    filter: blur(28px);
    opacity: 0.7;
}

/* ── Cards: the shared tile used by the featured strip ─────────────────── */
.at-card { position: relative; display: block; }
.at-card .at-frame { margin-bottom: 1.1rem; }

.at-card h3 {
    font-family: var(--at-sans, sans-serif);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* ── Mediums: the watercolour-blot icon row ────────────────────────────── */
.at-mediums {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
    text-align: center;
}

.at-medium-blot {
    position: relative;
    width: clamp(84px, 11vw, 118px);
    aspect-ratio: 1;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    color: var(--at-ink, #2a2724);
}
/* The organic wash under each icon. Four different border-radius sets so the
   row does not read as four identical circles. */
.at-medium-blot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--at-blush, #e8d3cb);
    opacity: 0.55;
    transition: transform 0.5s var(--at-ease, ease), opacity 0.5s var(--at-ease, ease);
}
.at-medium:nth-child(1) .at-medium-blot::before { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.at-medium:nth-child(2) .at-medium-blot::before { border-radius: 44% 56% 62% 38% / 55% 42% 58% 45%; }
.at-medium:nth-child(3) .at-medium-blot::before { border-radius: 62% 38% 40% 60% / 42% 60% 40% 58%; background: #cfdbc7; }
.at-medium:nth-child(4) .at-medium-blot::before { border-radius: 48% 52% 56% 44% / 60% 46% 54% 40%; }
.at-medium:hover .at-medium-blot::before { transform: scale(1.08) rotate(-4deg); opacity: 0.8; }
.at-medium-blot .at-icon { position: relative; z-index: 1; width: 34px; height: 34px; }

.at-medium h3 {
    font-family: var(--at-sans, sans-serif);
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

/* ── About strip: photograph beside the story ──────────────────────────── */
.at-about-strip .at-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.at-about-strip .at-split-copy { max-width: 34rem; }
.at-about-strip h2 { margin-bottom: 0.4em; }
.at-about-strip p { color: var(--at-muted, #6b625a); margin-bottom: 1.75rem; }

/* Linen puts the studio photo behind a torn-paper wash, like the light comp. */
.at-about-strip .at-photo { position: relative; }
.at-about-strip .at-photo::before {
    content: '';
    position: absolute;
    inset: -6% -4% -8% -6%;
    z-index: 0;
    background: var(--at-blush, #e8d3cb);
    border-radius: 52% 48% 44% 56% / 46% 54% 46% 54%;
    filter: blur(22px);
    opacity: 0.65;
}
.at-about-strip .at-photo .at-frame { position: relative; z-index: 1; }

/* Reverse the columns so the photo can lead on alternating sections. */
.at-split-reverse .at-photo { order: 2; }

/* ── Featured art: the 4-up strip ──────────────────────────────────────── */
.at-featured .at-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}
.at-featured .at-card h3 {
    font-family: var(--at-serif, Georgia, serif);
    font-size: 1.125rem;
    letter-spacing: 0;
    text-transform: none;
}
.at-featured .at-price {
    font-size: 0.8125rem;
    color: var(--at-muted, #6b625a);
    letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .at-featured .at-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .at-mediums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 860px) {
    .at-hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-block: clamp(2.5rem, 8vw, 4rem);
    }
    .at-hero-copy { max-width: none; }
    .at-hero-stack { justify-self: stretch; max-width: none; margin-top: 2.5rem; }
    .at-about-strip .at-split { grid-template-columns: 1fr; }
    .at-split-reverse .at-photo { order: 0; }
    .at-featured .at-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .at-featured .at-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .at-hero-actions .at-btn { flex: 1; justify-content: center; }
}

/* The stack's figures are not .at-frame wrappers, so the placeholder wash
   needs to be told to fill them. */
.at-hero-stack .at-frame-empty { position: absolute; inset: 0; }
.at-hero-stack figure { display: block; }
