/* ==========================================================================
   Designs - whole-site skins.
   Each owns its chrome: where the menu lives, whether there is a hero, how the
   page is structured. All still read the same theme custom properties, so any
   design works with any palette, typeface and density.

   Note on offsets: the preview bar is 44px and fixed, so anything else that is
   fixed has to start below it while `body.has-demo-bar` is present.
   ========================================================================== */

/* ==========================================================  2. ATELIER  == */
/* Fixed vertical rail on the left, hairline rules, small type.               */

.atelier { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.at-rail {
    position: fixed; top: 0; bottom: 0; left: 0; width: 232px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 26px 30px;
    border-right: 1px solid var(--line);
    background: var(--bg);
    z-index: 40;
}
body.has-demo-bar .at-rail { top: 44px; }

.at-brand {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: clamp(22px, 1.9vw, 30px);
    letter-spacing: .2em; text-transform: uppercase; line-height: 1;
}

.at-nav { display: flex; flex-direction: column; gap: 0; margin: 40px 0; }
.at-nav a {
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); padding: 13px 0;
    border-top: 1px solid var(--line);
    transition: color .22s ease, padding-left .25s ease;
}
.at-nav a:last-child { border-bottom: 1px solid var(--line); }
.at-nav a:hover { color: var(--ink); padding-left: 8px; }
.at-nav a[aria-current="page"] { color: var(--ink); }
.at-nav a[aria-current="page"]::before { content: "— "; }

.at-foot { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.at-foot a { text-decoration: underline; }

.at-main { grid-column: 2; padding: 40px clamp(28px, 4vw, 72px) 80px; }
.design-atelier .wrap, .design-atelier .wrap-narrow { width: 100%; max-width: none; padding: 0; }
.design-atelier .hero { padding-top: 20px; }
/* hairline above every block, which is what gives it the drafting-table feel */
.design-atelier .grid, .design-atelier .masonry, .design-atelier .editorial,
.design-atelier .idx, .design-atelier .salon { border-top: 1px solid var(--line); padding-top: 36px; }

@media (max-width: 900px) {
    .atelier { grid-template-columns: 1fr; }
    .at-rail { position: static; width: auto; flex-direction: row; align-items: center;
               justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line);
               padding: 18px 20px; }
    .at-nav { flex-direction: row; gap: 18px; margin: 0; }
    .at-nav a { border: 0 !important; padding: 0; }
    .at-foot { display: none; }
    .at-main { grid-column: 1; padding: 24px 20px 60px; }
}

/* ========================================================  3. IMMERSIVE  == */
/* Full-screen artwork hero; the menu floats over it and inverts on scroll.   */

.im-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; padding: 22px clamp(20px, 4vw, 56px);
    /* mix-blend-mode looked clever but is unreadable over busy, high-chroma
       paintings - which is most of this body of work. A scrim is honest. */
    color: #fff;
    text-shadow: 0 1px 18px rgb(0 0 0 / .55);
    background: linear-gradient(180deg, rgb(0 0 0 / .45), transparent);
}
.im-header.on-solid {
    background: var(--bg); color: var(--ink); text-shadow: none;
    border-bottom: 1px solid var(--line);
}
.im-header.on-solid .brand, .im-header.on-solid .nav a { color: inherit; }
.im-header.on-solid .nav a { color: var(--muted); }
.im-header.on-solid .nav a:hover { color: var(--ink); }
.im-header.on-solid .nav a::after { background: currentColor; }
body.has-demo-bar .im-header { top: 44px; }
.im-header .brand, .im-header .nav a { color: #fff; }
.im-header .nav a::after { background: #fff; }

.im-hero { position: relative; height: 100vh; min-height: 520px; overflow: hidden; }
body.has-demo-bar .im-hero { height: calc(100vh - 44px); }
.im-hero img { width: 100%; height: 100%; object-fit: cover; }
.im-hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(0 0 0 / .28) 0%, rgb(0 0 0 / .12) 45%, rgb(0 0 0 / .68) 100%);
}
.im-hero-text {
    position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px);
    bottom: clamp(56px, 9vh, 110px); color: #fff; max-width: 30ch;
}
.im-hero-text .eyebrow { color: rgb(255 255 255 / .72); }
.im-hero-text .h-hero {
    /* Deliberately smaller than the global hero size: at full size it filled
       the viewport and ran into the floating menu. */
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    margin: 12px 0 16px;
    text-shadow: 0 2px 30px rgb(0 0 0 / .45);
}
.im-hero-cap { font-size: 13px; color: rgb(255 255 255 / .78); }
.im-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    color: rgb(255 255 255 / .8); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
}
.im-scroll::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0;
    background: rgb(255 255 255 / .5); }

.im-main { padding-top: clamp(56px, 9vh, 110px); }
/* Interior pages have no hero, so the floating menu needs clearance. */
.im-inner { padding-top: 104px; }
.design-immersive .im-main { padding-top: clamp(56px, 9vh, 110px); }

@media (max-width: 720px) {
    .im-header:not(.on-solid) { background: rgb(0 0 0 / .5); backdrop-filter: blur(8px); }
}

/* ==========================================================  4. COLLAGE  == */
/* Overlapping, rotated, deliberately not a grid.                             */

.co-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 18px auto; padding: 10px 18px;
    width: min(100% - 36px, 1180px);
    border: 1px solid var(--line); border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
}
body.has-demo-bar .co-header { top: 52px; }
.co-brand {
    font-family: var(--font-display); font-weight: var(--display-weight);
    font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .2em; text-transform: uppercase;
}
.co-nav { display: flex; gap: 20px; }
.co-nav a { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.co-nav a:hover, .co-nav a[aria-current="page"] { color: var(--ink); }

.co-main { width: min(100% - 36px, 1180px); margin: 0 auto; }
.design-collage .wrap { width: 100%; }

.collage {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 0; padding: 40px 0 80px; position: relative;
}
.col-item {
    position: relative; display: block; z-index: 1;
    background: var(--mat); padding: var(--mat-pad);
    box-shadow: 0 18px 50px -22px rgb(0 0 0 / .45);
    transition: transform .45s cubic-bezier(.2,.7,.3,1), z-index 0s;
}
.col-item:hover { transform: rotate(0deg) scale(1.03) !important; z-index: 20; }
.col-item img { width: 100%; }
.col-cap {
    position: absolute; left: 0; right: 0; bottom: -34px;
    display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted);
    opacity: 0; transition: opacity .3s ease;
}
.col-cap em { font-style: normal; color: var(--ink); }
.col-item:hover .col-cap { opacity: 1; }

/* a deliberate irregular rhythm - overlapping columns and varied rotation */
.col-item.c0 { grid-column: 1 / span 5;  margin-top: 0;    transform: rotate(-2.2deg); }
.col-item.c1 { grid-column: 7 / span 4;  margin-top: 60px; transform: rotate(1.6deg); }
.col-item.c2 { grid-column: 4 / span 4;  margin-top: -40px; transform: rotate(2.6deg); }
.col-item.c3 { grid-column: 9 / span 4;  margin-top: -10px; transform: rotate(-1.4deg); }
.col-item.c4 { grid-column: 2 / span 5;  margin-top: 30px; transform: rotate(1.1deg); }
.col-item.c5 { grid-column: 8 / span 5;  margin-top: 70px; transform: rotate(-2.8deg); }
.col-item.c6 { grid-column: 1 / span 4;  margin-top: -20px; transform: rotate(2deg); }
.col-item.c7 { grid-column: 6 / span 5;  margin-top: 40px; transform: rotate(-1.7deg); }

@media (max-width: 820px) {
    .collage { grid-template-columns: 1fr; gap: 46px; }
    .col-item { grid-column: 1 !important; margin-top: 0 !important; transform: none !important; }
}

/* =====================================================  5. SPLIT SCREEN  == */
/* Half fixed painting, half scrolling content.                               */

.split { display: grid; grid-template-columns: 46% minmax(0, 54%); }

.sp-visual {
    position: fixed; top: 0; left: 0; bottom: 0; width: 46%;
    background: var(--surface); overflow: hidden;
}
body.has-demo-bar .sp-visual { top: 44px; }
.sp-visual img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .35s ease;
}
.sp-visual-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 4px;
    padding: 46px 28px 24px;
    /* The paintings are often near-white, so white type needs its own ground. */
    background: linear-gradient(transparent, rgb(0 0 0 / .62));
    color: #fff; font-size: 13px;
}
.sp-visual-cap .eyebrow { color: rgb(255 255 255 / .7); }

.sp-scroll { grid-column: 2; padding: 0 clamp(24px, 3.5vw, 60px); }
.sp-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 30px 0 26px; border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.sp-main { padding: 34px 0 0; }
.design-split .wrap, .design-split .wrap-narrow { width: 100%; max-width: none; }
.design-split .hero { padding: 24px 0 32px; }
.design-split .h-hero { font-size: clamp(2rem, 3.4vw, 3.2rem); }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .sp-visual { position: relative; width: 100%; height: 52vh; top: 0 !important; }
    .sp-scroll { grid-column: 1; }
}

/* ===========================================================  6. POSTER  == */
/* Brutalist: hard rules, huge type, monospace captions.                      */

.design-poster { --po-rule: 2px; }

.po-header {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 16px clamp(16px, 3vw, 34px);
    border-bottom: var(--po-rule) solid var(--ink);
    background: var(--bg);
}
body.has-demo-bar .po-header { top: 44px; }
.po-brand {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.02em;
    text-transform: uppercase; line-height: .9;
}
.po-nav { display: flex; gap: 18px; }
.po-nav a {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.po-nav a:hover, .po-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.po-meta {
    font-family: ui-monospace, Menlo, monospace; font-size: 10.5px;
    text-transform: uppercase; color: var(--muted);
}

.po-main { padding: 0 clamp(16px, 3vw, 34px); }
.design-poster .wrap, .design-poster .wrap-narrow { width: 100%; max-width: none; }
.design-poster .hero { padding: 40px 0 26px; border-bottom: var(--po-rule) solid var(--ink); }
.design-poster .h-hero { font-size: clamp(2.6rem, 9vw, 7rem); text-transform: uppercase; font-weight: 700; }
.design-poster .h-page { text-transform: uppercase; font-weight: 700; }

.poster { display: flex; flex-direction: column; }
.po-row {
    display: grid; grid-template-columns: 62px minmax(0, 1fr) 190px 210px;
    gap: 18px; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--line);
    transition: background-color .2s ease;
}
.po-row:hover { background: var(--surface); }
.po-num, .po-spec {
    font-family: ui-monospace, Menlo, monospace; font-size: 11px;
    color: var(--muted); text-transform: uppercase;
}
.po-spec { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.po-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 2.1rem); text-transform: uppercase;
    letter-spacing: -.02em; line-height: 1.05;
}
.po-img { background: var(--mat); overflow: hidden; height: 96px; display: flex; align-items: center; justify-content: center; }
.po-img img { height: 100%; width: 100%; object-fit: cover; transition: transform .5s ease; }
.po-row:hover .po-img img { transform: scale(1.07); }

.po-footer {
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 60px; padding: 18px clamp(16px, 3vw, 34px);
    border-top: var(--po-rule) solid var(--ink);
    font-family: ui-monospace, Menlo, monospace; font-size: 11px;
    text-transform: uppercase; color: var(--muted);
}

@media (max-width: 820px) {
    .po-row { grid-template-columns: 44px minmax(0, 1fr) 110px; }
    .po-spec { display: none; }
}
