/* ==========================================================================
   Atelier, a Ghost theme by SamaDesign
   1. Tokens  2. Base  3. Buttons  4. Bar  5. Menu  6. Wall  7. Home sections
   8. Project cards & layouts  9. Archives  10. Project pages  11. Journal post
   12. Content (Koenig)  13. Newsletter & footer  14. Reveal effects  15. Misc
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
    --at-accent: var(--ghost-accent-color, #a8532f);
    --at-on-accent: #ffffff; /* main.js picks dark or light from the accent luminance */

    --at-bg: #eceeec;
    --at-surface: #f7f8f6;
    --at-line: #d5d8d4;
    --at-text: #141515;
    --at-muted: #5f635f;
    --at-ink: #141515;     /* footer background */
    --at-on-ink: #eceeec;

    --at-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --at-font-heading: var(--gh-font-heading, var(--at-font));
    --at-font-body: var(--gh-font-body, var(--at-font));

    --at-pad: 16px;
    --at-radius: 16px;      /* images and cards */
    --at-radius-sm: 10px;   /* images inside the content */
    --at-container: 1120px; /* project grid, journal, studio */
    --at-content: 700px;
    --at-ease: cubic-bezier(0.16, 1, 0.3, 1);

    color-scheme: light;
}

:root[data-scheme="dark"] {
    --at-bg: #121312;
    --at-surface: #1b1c1b;
    --at-line: #2c2e2c;
    --at-text: #ecedea;
    --at-muted: #9da09b;
    --at-ink: #1b1c1b;
    /* Dark accents are lightened so they stay readable on the dark background */
    --at-accent: color-mix(in srgb, var(--ghost-accent-color, #a8532f) 62%, #ffffff);

    color-scheme: dark;
}

@media (min-width: 640px) { :root { --at-pad: 28px; } }
@media (min-width: 1024px) { :root { --at-pad: 48px; } }

/* 2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--at-bg);
    color: var(--at-text);
    font-family: var(--at-font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }

h1, h2, h3, h4 { font-family: var(--at-font-heading); line-height: 1.1; letter-spacing: -0.02em; }

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

.at-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--at-text);
    color: var(--at-bg);
}
.at-skip:focus { top: 12px; }

.at-main { min-height: 60vh; }

.at-icon { width: 20px; height: 20px; }

.at-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--at-text);
    transition: background-color 0.2s ease;
}
.at-icon-btn:hover { background: color-mix(in srgb, var(--at-text) 8%, transparent); }

.at-icon-sun { display: none; }
[data-scheme="dark"] .at-icon-sun { display: block; }
[data-scheme="dark"] .at-icon-moon { display: none; }

/* 3. Buttons
   ========================================================================== */

.at-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s var(--at-ease), background-color 0.2s ease;
}
.at-btn:active { transform: scale(0.98); }
.at-btn-accent { background: var(--at-accent); color: var(--at-on-accent); }
.at-btn-accent:hover { background: color-mix(in srgb, var(--at-accent) 88%, var(--at-text)); }
.at-btn-dark { background: var(--at-text); color: var(--at-bg); }

.at-arrow-link { display: inline-flex; gap: 8px; font-weight: 700; }
.at-arrow-link span { transition: transform 0.3s var(--at-ease); }
.at-arrow-link:hover { color: var(--at-accent); }
.at-arrow-link:hover span { transform: translateX(4px); }

/* 4. Bar
   ========================================================================== */

.at-bar {
    position: fixed;
    top: 14px;
    right: var(--at-pad);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 2 * var(--at-pad));
    padding: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--at-surface) 94%, transparent);
    box-shadow: 0 8px 30px rgb(20 21 21 / 0.08);
    transition: transform 0.45s var(--at-ease);
}
.at-bar.is-hidden { transform: translateY(calc(-100% - 20px)); }

.at-brand { display: flex; align-items: center; padding: 0 12px 0 14px; min-height: 42px; }
.at-brand-title { font-family: var(--at-font-heading); font-size: 1.15rem; font-weight: 900; letter-spacing: -0.04em; white-space: nowrap; }
.at-logo { max-height: 30px; width: auto; }
.at-logo-dark { display: none; }
[data-scheme="dark"] .at-logo-light { display: none; }
[data-scheme="dark"] .at-logo-dark { display: block; }

.at-quick { display: none; }
.at-quick a { padding: 8px 12px; border-radius: 999px; color: var(--at-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.at-quick a:hover, .at-quick a.is-current { color: var(--at-text); }
.at-quick-list { display: flex; align-items: center; padding: 0; margin: 0; list-style: none; }
.at-quick-item > a { display: inline-flex; align-items: center; }
.at-quick-item:nth-child(n + 5) { display: none; }
@media (max-width: 1099px) { .at-quick-item:nth-child(n + 4) { display: none; } }
.at-quick-item { position: relative; }
.at-drop-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--at-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.at-drop-toggle::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.25s var(--at-ease); }
.at-drop-toggle:hover, .is-open > .at-drop-toggle { color: var(--at-text); }
.is-open > .at-drop-toggle::after { transform: translateY(3px) rotate(-135deg); }
/* Dropdown under the bar; the padding bridges the gap so the pointer can travel to it */
.at-drop { position: absolute; top: 100%; left: -6px; display: grid; min-width: 190px; padding: 14px 6px 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.3s var(--at-ease), visibility 0s 0.3s; }
.at-drop::before { content: ""; position: absolute; inset: 8px 0 0; z-index: -1; border-radius: var(--at-radius); background: var(--at-surface); box-shadow: 0 14px 40px rgb(20 21 21 / 0.12); }
.at-drop a { padding: 9px 14px; border-radius: 10px; color: var(--at-muted); font-weight: 500; white-space: nowrap; }
.at-drop a:hover, .at-drop a:focus-visible { background: color-mix(in srgb, var(--at-text) 6%, transparent); color: var(--at-text); }
.is-open > .at-drop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.3s var(--at-ease); }

.at-bar-btn { display: none; min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

.at-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--at-text);
    color: var(--at-bg);
}
.at-menu-toggle span,
.at-menu-toggle span::before,
.at-menu-toggle span::after { display: block; width: 16px; height: 2px; background: currentColor; }
.at-menu-toggle span { position: relative; }
.at-menu-toggle span::before,
.at-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.at-menu-toggle span::before { top: -5px; }
.at-menu-toggle span::after { top: 5px; }

@media (min-width: 760px) {
    .at-quick { display: flex; }
    .at-bar-btn { display: inline-flex; }
}

/* 5. Menu (full screen, unrolls from the top)
   ========================================================================== */

.at-menu {
    position: fixed;
    inset: 10px;
    border-radius: var(--at-radius);
    z-index: 70;
    display: grid;
    /* The middle row grows with an open sub-menu; the panel scrolls instead of overlapping the footer */
    grid-template-rows: auto minmax(min-content, 1fr) auto;
    gap: 20px;
    padding: 18px var(--at-pad) 22px;
    overflow-y: auto;
    background: var(--at-surface);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--at-ease);
}
.at-menu.is-open { clip-path: inset(0 0 0 0); }
.at-menu-open, .at-menu-open body { overflow: hidden; }

.at-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.at-menu-site { color: var(--at-muted); font-weight: 500; }
.at-menu-tools { display: flex; align-items: center; gap: 4px; }
.at-menu-close { display: inline-flex; margin-left: 8px; }
.at-menu-close span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--at-text);
    color: var(--at-bg);
    font-size: 1.4rem;
    line-height: 1;
}

.at-menu-body {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
    min-height: 0;
}
@media (min-width: 900px) { .at-menu-body { grid-template-columns: 1fr minmax(240px, 30vw); } }

.at-menu-nav { counter-reset: menu; }
.at-menu-list { padding: 0; margin: 0; list-style: none; }
/* Large screens: the bar already shows the primary links, the menu shows the secondary ones */
@media (min-width: 760px) { .at-menu-primary:not(.is-only) { display: none; } }
.at-menu-list > li { counter-increment: menu; overflow: hidden; }

.at-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding-block: 2px;
    font-family: var(--at-font-heading);
    font-size: clamp(2.2rem, min(5.4vw, 8.4vh), 5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-align: left;
    transform: translateY(105%);
    transition: transform 0.8s var(--at-ease), color 0.25s ease;
}
.at-menu-link::before {
    content: counter(menu, decimal-leading-zero);
    width: 26px;
    flex-shrink: 0;
    padding-top: 0.8em;
    color: var(--at-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
}
.at-menu.is-open .at-menu-link { transform: none; }
.at-menu-list > li:nth-child(2) .at-menu-link { transition-delay: 0.05s; }
.at-menu-list > li:nth-child(3) .at-menu-link { transition-delay: 0.1s; }
.at-menu-list > li:nth-child(4) .at-menu-link { transition-delay: 0.15s; }
.at-menu-list > li:nth-child(5) .at-menu-link { transition-delay: 0.2s; }
.at-menu-list > li:nth-child(n+6) .at-menu-link { transition-delay: 0.25s; }

.at-menu-link:hover,
.at-menu-link:focus-visible,
.at-menu-item.is-current > .at-menu-link { color: var(--at-accent); }

.at-menu-fold i { margin-left: auto; align-self: center; color: var(--at-muted); font-size: 2rem; font-style: normal; font-weight: 400; transition: transform 0.3s var(--at-ease); }
.at-menu-item.is-open .at-menu-fold i { color: var(--at-accent); }

.at-menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--at-ease); }
.at-menu-item.is-open .at-menu-sub { grid-template-rows: 1fr; }
.at-menu-sub > div { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding-left: 42px; }
.at-menu-sub a { padding: 2px 0; color: var(--at-muted); font-family: var(--at-font-heading); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; transition: color 0.2s ease, transform 0.4s var(--at-ease); }
.at-menu-sub a:last-child { margin-bottom: 14px; }
.at-menu-sub a:hover, .at-menu-sub a:focus-visible { color: var(--at-accent); transform: translateX(8px); }
.at-menu-sub a:hover { color: var(--at-text); }

.at-menu-preview { display: none; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--at-radius); background: var(--at-line); }
@media (min-width: 900px) { .at-menu-preview { display: block; } }
.at-menu-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.5s var(--at-ease), transform 0.9s var(--at-ease);
}
.at-menu-preview img.is-on { opacity: 1; transform: none; }

.at-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--at-muted); }
.at-menu-members { display: flex; gap: 18px; font-weight: 600; }
.at-menu-members a:hover { color: var(--at-text); }

/* 6. Tilted wall
   ========================================================================== */

/* One screen tall; it scrolls away with the page (the images move on their own, not with the scroll) */
.at-wall { position: relative; height: 100vh; height: 100dvh; }
.at-wall-stick { position: relative; height: 100%; overflow: hidden; }
.at-wall-stick::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22vh;
    background: linear-gradient(0deg, var(--at-bg), transparent);
    pointer-events: none;
}
.at-wall-grid {
    position: absolute;
    inset: -40vh -22vw;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    transform: rotate(-16deg);
}
/* Columns are moved by main.js: a slow drift, faster while the page scrolls */
.at-wall-col { display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.at-wall-col a { display: block; overflow: hidden; border-radius: var(--at-radius); }
.at-wall-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.8s var(--at-ease); }
.at-wall-col a:hover img { transform: scale(1.04); }
@media (max-width: 759px) {
    .at-wall { height: 85vh; height: 85dvh; }
    .at-wall-grid { inset: -30vh -60vw; gap: 14px; }
    .at-wall-col { gap: 14px; }
}

/* 7. Home sections
   ========================================================================== */

.at-intro {
    display: grid;
    gap: 24px;
    padding: 130px var(--at-pad) 40px;
}
.at-intro-wall { padding-top: 90px; }
.at-intro-title {
    max-width: 15ch;
    font-size: clamp(2.8rem, 7.2vw, 7rem);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.045em;
}
.at-intro-title em { font-style: normal; color: var(--at-accent); }
.at-intro-side { display: grid; gap: 24px; justify-items: start; }
.at-intro-text { max-width: 38ch; color: var(--at-muted); font-size: 1.2rem; }
@media (min-width: 900px) {
    .at-intro { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--at-pad); }
}

.at-cover { max-width: var(--at-container); margin: 30px max(var(--at-pad), calc((100% - var(--at-container)) / 2)) 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--at-radius); }
.at-cover img { width: 100%; height: 120%; object-fit: cover; transform: translateY(calc(var(--p, 0) * -16%)); }
@media (min-width: 760px) { .at-cover { aspect-ratio: 21 / 9; } }

.at-studio {
    display: grid;
    gap: 32px;
    padding: 110px var(--at-pad);
    border-top: 1px solid var(--at-line);
    margin-top: 40px;
}
.at-studio-image { overflow: hidden; max-width: 440px; aspect-ratio: 4 / 5; border-radius: var(--at-radius); }
.at-studio-image img { width: 100%; height: 100%; object-fit: cover; }
.at-studio-title { max-width: 16ch; font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; }
.at-studio-text { margin: 24px 0 28px; max-width: 48ch; color: var(--at-muted); font-size: 1.2rem; }
@media (min-width: 900px) { .at-studio { grid-template-columns: 5fr 7fr; gap: var(--at-pad); } }

.at-journal { padding: 90px var(--at-pad); border-top: 1px solid var(--at-line); }
.at-journal-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 900; letter-spacing: -0.04em; }
.at-journal-list { display: grid; gap: 36px 28px; margin-top: 34px; }
@media (min-width: 760px) { .at-journal-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .at-journal-list { grid-template-columns: repeat(3, 1fr); } .at-journal-list > :nth-child(4) { display: none; } }

.at-post-card-link { display: block; }
.at-post-card-image { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: var(--at-radius); background: var(--at-line); }
.at-post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--at-ease); }
.at-post-card-link:hover img { transform: scale(1.04); }
.at-post-card-date { color: var(--at-muted); font-size: 0.9rem; }
.at-post-card-title { margin-top: 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.at-post-card-link:hover .at-post-card-title { color: var(--at-accent); }
.at-post-card-excerpt { margin-top: 8px; color: var(--at-muted); }

/* 8. Project cards & the four layouts
   ========================================================================== */

.at-work { padding: 90px var(--at-pad); }
/* No project yet: no empty "Selected work" heading */
.at-work:not(:has(.at-card)) { display: none; }
.at-work-wall, .at-work-grid, .at-work-index, .at-journal, .at-studio { max-width: calc(var(--at-container) + 2 * var(--at-pad)); margin-inline: auto; }
.at-studio, .at-journal { border-top: 0; }
.at-work-head { margin-bottom: 34px; }
.at-work-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 900; letter-spacing: -0.04em; }
.at-work-list { display: grid; gap: 48px 28px; min-width: 0; }

.at-card { min-width: 0; }
.at-card-link { display: block; }
.at-card-image { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--at-radius); background: var(--at-line); isolation: isolate; }
.at-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 6px; pointer-events: none; }
.at-badges:not(:has(.at-badge)) { display: none; }
/* Badge: frosted pill with the icon; on hover of the card it widens to show its name */
.at-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    background: rgb(20 21 21 / 0.32);
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.18);
    color: #fff;
    backdrop-filter: blur(10px) saturate(1.4);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
.at-badge .at-icon { flex-shrink: 0; width: 16px; height: 16px; }
.at-badge-label {
    max-width: 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.45s var(--at-ease), margin 0.45s var(--at-ease), opacity 0.3s ease;
}
@media (hover: hover) {
    .at-card-link:hover .at-badge-label,
    .at-card-link:focus-visible .at-badge-label { max-width: 120px; margin-left: 6px; opacity: 1; }
}
/* Without hover (phones) the name stays readable by screen readers only */
@media (hover: none) {
    .at-badge-label { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-transparency: reduce) { .at-badge { background: rgb(20 21 21 / 0.75); backdrop-filter: none; } }
.at-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--at-ease), filter 0.4s ease; }
.at-card-link:hover .at-card-image img { transform: scale(1.04); }
.at-card-blank { display: grid; place-items: center; height: 100%; padding: 24px; font-family: var(--at-font-heading); font-size: 1.6rem; font-weight: 900; text-align: center; color: var(--at-muted); }
.at-card-meta { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.at-card-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; transition: color 0.2s ease; }
.at-card-tag { margin-left: auto; color: var(--at-muted); font-size: 0.95rem; white-space: nowrap; }
.at-card-year { display: none; color: var(--at-muted); font-size: 0.95rem; }
.at-card-link:hover .at-card-title { color: var(--at-accent); }

/* Tilted wall layout: three columns whose outer cards lean (main.js sets --r, --y, --iy) */
@media (min-width: 640px) { .at-work-wall .at-work-list, .at-work-grid .at-work-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
    .at-work-wall .at-work-list { grid-template-columns: repeat(3, 1fr); gap: 56px 30px; }
    .at-work-wall .at-card { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); will-change: transform; }
    .at-work-wall .at-card-image img { height: 124%; transform: translateY(var(--iy, -10%)); }
    .at-work-wall .at-card-link:hover .at-card-image img { transform: translateY(var(--iy, -10%)) scale(1.03); }
}

/* Grid layout: a staggered 12-column grid, pattern of six */
@media (min-width: 1000px) {
    .at-work-grid .at-work-list { grid-template-columns: repeat(12, 1fr); gap: 56px 28px; }
    .at-work-grid .at-card:nth-child(6n + 1) { grid-column: 1 / span 7; }
    .at-work-grid .at-card:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 16vh; }
    .at-work-grid .at-card:nth-child(6n + 3) { grid-column: 2 / span 4; }
    .at-work-grid .at-card:nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: -6vh; }
    .at-work-grid .at-card:nth-child(6n + 5) { grid-column: 1 / span 5; }
    .at-work-grid .at-card:nth-child(6n + 6) { grid-column: 7 / span 5; margin-top: 10vh; }
    .at-work-grid .at-card:nth-child(6n + 1) .at-card-image,
    .at-work-grid .at-card:nth-child(6n + 4) .at-card-image { aspect-ratio: 4 / 3; }
}

/* Index layout: large titles on rules, the image follows the pointer (main.js) */
.at-work-index .at-work-list { gap: 0; border-top: 1px solid var(--at-line); }
.at-work-index .at-card-image { display: none; }
.at-work-index .at-card-link { padding: 12px 0; border-bottom: 1px solid var(--at-line); }
.at-work-index .at-card-meta { flex-wrap: wrap; margin: 0; gap: 4px 24px; }
.at-work-index .at-card-title {
    flex: 1 1 100%;
    font-family: var(--at-font-heading);
    font-size: clamp(2.2rem, 5.6vw, 5.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    transition: color 0.25s ease, transform 0.5s var(--at-ease);
}
.at-work-index .at-card-tag { margin-left: 0; }
.at-work-index .at-card-year { display: block; }
.at-work-index .at-card-link:hover .at-card-title { transform: translateX(14px); }
@media (min-width: 760px) {
    .at-work-index .at-card-meta { flex-wrap: nowrap; align-items: baseline; }
    .at-work-index .at-card-title { flex: 1 1 auto; }
    .at-work-index .at-card-tag { margin-left: auto; }
}
/* Phones: no pointer to follow, so the image is shown small beside the title */
@media (hover: none), (max-width: 759px) {
    .at-work-index .at-card-link { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
    .at-work-index .at-card-image { display: block; aspect-ratio: 1; }
}

.at-follow {
    position: fixed;
    border-radius: var(--at-radius);
    left: 0;
    top: 0;
    z-index: 40;
    width: min(26vw, 340px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    scale: 0.85;
    transition: opacity 0.3s ease, scale 0.4s var(--at-ease);
}
.at-follow.is-on { opacity: 1; scale: 1; }
.at-follow img { width: 100%; height: 100%; object-fit: cover; }

/* Horizontal layout: a swipeable row by default; pinned and moved by the page scroll on large screens */
.at-work-horizontal { padding-inline: 0; }
/* The row bleeds to the edges, its heading lines up with the centred sections */
.at-work-horizontal .at-work-head { padding-inline: max(var(--at-pad), calc((100% - var(--at-container)) / 2)); }
.at-work-horizontal .at-work-list {
    display: flex;
    gap: 28px;
    padding: 0 max(var(--at-pad), calc((100% - var(--at-container)) / 2)) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.at-work-horizontal .at-card { flex: 0 0 78vw; scroll-snap-align: start; }
@media (min-width: 640px) { .at-work-horizontal .at-card { flex-basis: clamp(260px, 30vw, 440px); } }
.at-work-horizontal .at-card:nth-child(3n + 2) { flex-basis: clamp(300px, 40vw, 580px); }
.at-work-horizontal .at-card:nth-child(3n + 2) .at-card-image { aspect-ratio: 4 / 3; }
.at-pan-bar { display: none; }
.at-work-horizontal.is-pinned { padding: 0; }
.at-work-horizontal.is-pinned .at-work-head { margin-bottom: 28px; }
.at-work-horizontal.is-pinned .at-work-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.at-work-horizontal.is-pinned .at-work-list { overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; }
/* Pinned: cards sized to the screen height so the whole row fits */
.at-work-horizontal.is-pinned .at-card { flex-basis: min(26vw, 42vh); }
.at-work-horizontal.is-pinned .at-card:nth-child(3n + 2) { flex-basis: min(40vw, 74vh); }
.at-work-horizontal.is-pinned .at-pan-bar { display: block; position: absolute; left: var(--at-pad); right: var(--at-pad); bottom: 28px; height: 2px; background: var(--at-line); }
.at-pan-bar span { display: block; height: 100%; background: var(--at-accent); transform-origin: left; transform: scaleX(0); }

/* 9. Archives (tag, author, post list)
   ========================================================================== */

.at-archive-head { padding: 130px var(--at-pad) 20px; }
.at-archive-kicker { color: var(--at-muted); font-weight: 600; }
.at-archive-title { margin-top: 6px; font-size: clamp(2.8rem, 7.2vw, 7rem); font-weight: 900; line-height: 0.94; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.at-archive-desc { margin-top: 18px; max-width: 52ch; color: var(--at-muted); font-size: 1.2rem; }
.at-archive-count { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: var(--at-muted); }
.at-archive-count a { text-decoration: underline; text-underline-offset: 3px; }
.at-archive-avatar { width: 96px; height: 96px; margin-bottom: 16px; border-radius: 999px; object-fit: cover; }
.at-archive-image { margin-top: 40px; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--at-radius); }
.at-archive-image img { width: 100%; height: 120%; object-fit: cover; transform: translateY(calc(var(--p, 0) * -16%)); }
.at-archive-author .at-social { margin-top: 14px; }

.at-topics { display: flex; gap: 8px; padding: 10px var(--at-pad) 0; overflow-x: auto; scrollbar-width: none; }
.at-topic { flex-shrink: 0; padding: 8px 16px; border: 1px solid var(--at-line); border-radius: 999px; font-weight: 600; white-space: nowrap; }
.at-topic span { color: var(--at-muted); font-weight: 500; }
.at-topic:hover { border-color: var(--at-text); }
.at-topic.nav-current { background: var(--at-text); border-color: var(--at-text); color: var(--at-bg); }
.at-topic.nav-current span { color: inherit; opacity: 0.7; }

.at-feed-wrap { padding-top: 50px; }
/* Archive heads and the discipline switcher line up with the centred project grid */
.at-archive-head, .at-topics { max-width: calc(var(--at-container) + 2 * var(--at-pad)); margin-inline: auto; }

.at-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; }
.at-page-number { color: var(--at-muted); }
.at-btn-ghost { border: 1px solid var(--at-line); }
.at-btn-ghost:hover { border-color: var(--at-text); }
.at-load-more-wrap { display: flex; justify-content: center; margin-top: 56px; }
.at-load-more { background: var(--at-text); color: var(--at-bg); }
.at-load-more.is-loading { opacity: 0.6; pointer-events: none; }

/* 10. Project pages
   ========================================================================== */

.at-project-title { font-size: clamp(2.8rem, 7.2vw, 7rem); font-weight: 900; line-height: 0.94; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.at-project-lead { max-width: 46ch; font-size: 1.3rem; line-height: 1.45; }

.at-facts { display: flex; flex-wrap: wrap; gap: 10px 44px; margin-top: 26px; font-size: 0.95rem; }
.at-facts dt { color: var(--at-muted); }
.at-facts dd { font-weight: 600; }
.at-facts a { text-decoration: underline; text-underline-offset: 3px; }

/* Cover layout */
.at-project-cover { position: relative; height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; background: var(--at-ink); color: #fff; }
.at-project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--p, 0) * 0.12)); }
.at-project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.6), transparent 55%); }
.at-project-cover-text { position: absolute; left: var(--at-pad); right: var(--at-pad); bottom: 48px; z-index: 1; }
.at-project-cover .at-facts dt { color: rgb(255 255 255 / 0.72); }
.at-project-cover.no-image { height: auto; min-height: 0; background: none; color: var(--at-text); }
.at-project-cover.no-image::after { display: none; }
.at-project-cover.no-image .at-project-cover-text { position: static; padding: 130px var(--at-pad) 20px; }
.at-project-cover.no-image .at-facts dt { color: var(--at-muted); }
.at-project-body { padding-top: 80px; }
.at-project-body .at-project-lead { max-width: var(--at-content); margin: 0 auto 40px; padding-inline: var(--at-pad); box-sizing: content-box; }

/* Side layout: text fixed on the left, images on the right */
.at-project-split { display: grid; gap: 40px; padding: 130px var(--at-pad) 60px; }
.at-project-aside .at-project-lead { margin-top: 26px; }
.at-project-text { margin-top: 22px; color: var(--at-muted); }
.at-project-text > * + * { margin-top: 1em; }
.at-project-shots { display: grid; gap: 28px; min-width: 0; }
.at-project-shots .at-content { display: grid; gap: 28px; grid-template-columns: 1fr; }
.at-project-shots .at-content > * { grid-column: 1; margin: 0; }
.at-project-shots img { width: 100%; }
@media (min-width: 900px) {
    .at-project-split { grid-template-columns: minmax(320px, 5fr) 7fr; gap: var(--at-pad); }
    .at-project-aside { position: sticky; top: 110px; align-self: start; }
    .at-project-side .at-project-title { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
}

/* Gallery layout: title and text, then every image in columns */
.at-project-head { padding: 130px var(--at-pad) 50px; }
.at-project-head .at-project-lead { margin-top: 26px; }
.at-project-head .at-project-text { max-width: 62ch; }
.at-content.at-masonry { display: block; columns: 3 280px; column-gap: 24px; padding: 0 var(--at-pad) 60px; }
.at-masonry > * { margin: 0 0 24px; break-inside: avoid; }
.at-masonry img { width: 100%; }
.at-masonry figcaption { margin-top: 8px; color: var(--at-muted); font-size: 0.9rem; }

/* Next project */
.at-next { display: block; padding: 90px var(--at-pad); border-top: 1px solid var(--at-line); }
.at-next span { color: var(--at-muted); }
.at-next strong { display: block; font-family: var(--at-font-heading); font-size: clamp(2.8rem, 7.2vw, 7rem); font-weight: 900; line-height: 0.94; letter-spacing: -0.045em; transition: color 0.25s ease; }
.at-next:hover strong { color: var(--at-accent); }

/* 11. Journal post & pages
   ========================================================================== */

.at-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.at-progress-bar { display: block; height: 100%; background: var(--at-accent); transform-origin: left; transform: scaleX(0); }

.at-article { position: relative; }
.at-article-head { max-width: 1100px; padding: 130px var(--at-pad) 40px; }
.at-article-tag { color: var(--at-accent); font-weight: 700; }
.at-article-title { margin-top: 10px; font-size: clamp(2.4rem, 5.6vw, 5rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.04em; }
.at-article-excerpt { margin-top: 20px; max-width: 46ch; color: var(--at-muted); font-size: 1.3rem; line-height: 1.45; }
.at-article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 24px; color: var(--at-muted); font-size: 0.95rem; }
.at-article-meta a:hover { color: var(--at-text); }
.at-article-meta .at-count:empty { display: none; }

.at-article-image { margin: 0 var(--at-pad) 56px; }
.at-article-image img { width: 100%; max-height: 86vh; object-fit: cover; border-radius: var(--at-radius); }
.at-article-image-full img { border-radius: 0; }
.at-article-image figcaption { margin-top: 10px; color: var(--at-muted); font-size: 0.9rem; }
.at-article-image-full { margin-inline: 0; }

.at-article-body { position: relative; padding-bottom: 40px; }

.at-article-foot { display: grid; gap: 28px; max-width: calc(var(--at-content) + 2 * var(--at-pad)); margin: 0 auto; padding: 30px var(--at-pad) 40px; }
.at-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.at-tag { padding: 6px 14px; border: 1px solid var(--at-line); border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.at-tag:hover { border-color: var(--at-text); }
.at-share { display: flex; align-items: center; gap: 4px; padding-block: 14px; border-block: 1px solid var(--at-line); color: var(--at-muted); }
.at-share > span { margin-right: 8px; }
.at-share .at-icon { width: 18px; height: 18px; }
.at-copy.is-copied { background: var(--at-accent); color: var(--at-on-accent); }

.at-author-card { display: flex; gap: 18px; padding: 22px; border-radius: var(--at-radius); background: var(--at-surface); }
.at-avatar { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; border-radius: 999px; background: var(--at-line); font-weight: 800; }
.at-avatar img { width: 100%; height: 100%; object-fit: cover; }
.at-avatar span { font-size: 0.7rem; text-align: center; }
.at-author-card-body { display: grid; gap: 6px; align-content: start; }
.at-author-card-name { font-size: 1.1rem; font-weight: 800; }
.at-author-card-name a:hover { color: var(--at-accent); }
.at-author-card-bio { color: var(--at-muted); font-size: 0.95rem; }

.at-comments { max-width: calc(var(--at-content) + 2 * var(--at-pad)); margin: 0 auto; padding: 30px var(--at-pad); }
.at-related { margin-top: 30px; }

/* Table of contents: a box above the story, in the left margin on large screens */
.at-toc { max-width: calc(var(--at-content) + 2 * var(--at-pad)); margin: 0 auto 32px; padding-inline: var(--at-pad); }
.at-toc-box { border: 1px solid var(--at-line); background: var(--at-surface); }
.at-toc-summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; user-select: none; font-weight: 700; }
.at-toc-summary::-webkit-details-marker { display: none; }
.at-toc-summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--at-muted); border-bottom: 2px solid var(--at-muted); transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.at-toc-box[open] .at-toc-summary::after { transform: translateY(2px) rotate(-135deg); }
.at-toc-count { padding: 1px 8px; border-radius: 999px; background: var(--at-line); color: var(--at-muted); font-size: 0.75rem; }
.at-toc-box nav { padding: 0 18px 14px; }
.at-toc-list { padding: 0; list-style: none; counter-reset: toc; }
.at-toc-list li { counter-increment: toc; }
.at-toc-list a { display: flex; gap: 10px; padding: 6px 0 6px 14px; border-left: 2px solid var(--at-line); color: var(--at-muted); font-size: 0.92rem; line-height: 1.4; }
.at-toc-list a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; font-size: 0.8rem; font-weight: 600; line-height: 1.6; }
.at-toc-list a:hover { color: var(--at-text); }
.at-toc-list a.is-read { border-left-color: color-mix(in srgb, var(--at-accent) 40%, transparent); }
.at-toc-list a.is-active { border-left-color: var(--at-accent); color: var(--at-text); font-weight: 600; }
@media (min-width: 1500px) {
    .at-toc { position: absolute; top: 0; bottom: 0; left: calc(50% - var(--at-content) / 2 - 330px); width: 230px; margin: 0; padding: 0; }
    .at-toc-box { position: sticky; top: 110px; border: 0; background: none; }
    .at-toc-summary { padding: 0 0 12px; cursor: default; pointer-events: none; }
    .at-toc-summary::after { display: none; }
    .at-toc-box nav { padding: 0; }
}

.at-error { display: grid; justify-items: start; gap: 18px; padding: 150px var(--at-pad) 60px; }
.at-error-code { color: var(--at-accent); font-family: var(--at-font-heading); font-size: clamp(4rem, 14vw, 12rem); font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; }
.at-error-title { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 900; letter-spacing: -0.04em; }
.at-error-text { color: var(--at-muted); font-size: 1.15rem; }

/* 12. Content (Koenig editor)
   ========================================================================== */

.at-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--at-pad), 1fr)
        [wide-start] minmax(0, 160px)
        [main-start] min(var(--at-content), calc(100% - 2 * var(--at-pad)))
        [main-end] minmax(0, 160px)
        [wide-end] minmax(var(--at-pad), 1fr)
        [full-end];
    font-size: 1.125rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}
.at-content-wide {
    grid-template-columns:
        [full-start] minmax(var(--at-pad), 1fr)
        [wide-start main-start] min(1240px, calc(100% - 2 * var(--at-pad)))
        [main-end wide-end] minmax(var(--at-pad), 1fr)
        [full-end];
}
.at-content > * { grid-column: main; }
.at-content > .kg-width-wide { grid-column: wide; }
.at-content > .kg-width-full { grid-column: full; }
.at-content > * + * { margin-top: 1.5em; }
.at-content > h2 { margin-top: 2em; font-size: 2rem; font-weight: 800; }
.at-content > h3 { margin-top: 1.75em; font-size: 1.5rem; font-weight: 800; }
.at-content > h4 { margin-top: 1.5em; font-size: 1.2rem; }
.at-content > h2 + *, .at-content > h3 + *, .at-content > h4 + * { margin-top: 0.75em; }
.at-content a { color: var(--at-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.at-content a:hover { text-decoration-thickness: 2px; }
.at-content strong { font-weight: 700; }
.at-content ul, .at-content ol { padding-left: 1.4em; }
.at-content li + li { margin-top: 0.4em; }
.at-content li::marker { color: var(--at-accent); }
.at-content blockquote:not([class]) { padding-left: 24px; border-left: 3px solid var(--at-accent); font-size: 1.25rem; }
.at-content blockquote.kg-blockquote-alt { padding: 0.5em 1em; font-family: var(--at-font-heading); font-size: 1.7rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; text-align: center; }
.at-content hr { width: 80px; height: 0; margin-block: 3em; border: 0; border-top: 2px solid var(--at-line); justify-self: center; }
.at-content code:not(pre code) { padding: 0.15em 0.4em; background: var(--at-surface); font-size: 0.88em; }
.at-content pre { overflow-x: auto; padding: 20px; background: #161817; color: #e6e8e4; font-size: 0.9rem; line-height: 1.6; }
.at-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.at-content th, .at-content td { padding: 10px 14px; border-bottom: 1px solid var(--at-line); text-align: left; }
.at-content figure { margin-inline: 0; }
.at-content .kg-image-card img, .at-content .kg-gallery-image img, .at-content .kg-video-card video { border-radius: var(--at-radius-sm); }
.at-content .kg-width-full img { border-radius: 0; }
.at-project-shots img, .at-masonry img, .at-project-feature img { border-radius: var(--at-radius); }
.at-content .kg-callout-card, .at-content .kg-toggle-card, .at-content .kg-bookmark-container, .at-content .kg-product-card-container { border-radius: var(--at-radius-sm); }
.at-content figcaption { margin-top: 10px; color: var(--at-muted); font-size: 0.9rem; text-align: center; }
.at-content .kg-toggle-card-icon { min-width: 24px; min-height: 24px; }
.at-content .kg-bookmark-container { color: var(--at-text); text-decoration: none; }
.at-content > .kg-width-full + .kg-width-full:not(.kg-card-hascaption + .kg-width-full) { margin-top: 0; }
.at-page .at-content { padding-bottom: 72px; }

/* 13. Newsletter & footer
   ========================================================================== */

.at-newsletter { padding: 90px var(--at-pad); border-top: 1px solid var(--at-line); }
.at-newsletter-inner { display: grid; gap: 28px; }
.at-newsletter-title { max-width: 18ch; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; }
@media (min-width: 900px) { .at-newsletter-inner { grid-template-columns: 1fr 1fr; align-items: end; } }
.at-form { display: grid; gap: 10px; max-width: 520px; }
.at-form-label { font-weight: 600; }
.at-form-row { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--at-line); border-radius: 999px; background: var(--at-surface); }
.at-form-row input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: none; outline: none; }
.at-form-row:focus-within { border-color: var(--at-text); }
.at-form-note { color: var(--at-muted); font-size: 0.92rem; }
.at-form-success, .at-form-error, .at-form-loading { display: none; }
.at-form.success .at-form-success { display: block; color: var(--at-text); }
.at-form.error .at-form-error { display: block; color: #b42318; }
.at-form.loading .at-form-label-text { opacity: 0.5; }

.at-footer { padding: 110px var(--at-pad) 30px; background: var(--at-ink); color: var(--at-on-ink); }
[data-scheme="dark"] .at-footer { border-top: 1px solid var(--at-line); }
.at-footer-big {
    display: inline-block;
    font-family: var(--at-font-heading);
    font-size: clamp(3rem, 11vw, 11rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.05em;
    transition: color 0.25s ease;
}
.at-footer-big span { display: inline-block; transition: transform 0.4s var(--at-ease); }
.at-footer-big:hover { color: color-mix(in srgb, var(--ghost-accent-color, #a8532f) 55%, #ffffff); }
.at-footer-big:hover span { transform: translateX(10px); }
.at-footer-row { display: grid; gap: 28px; margin-top: 90px; padding-top: 26px; border-top: 1px solid rgb(236 238 236 / 0.18); }
@media (min-width: 900px) { .at-footer-row { grid-template-columns: 2fr 2fr auto; align-items: start; } }
.at-footer-about p { margin-top: 10px; max-width: 40ch; color: rgb(236 238 236 / 0.65); }
.at-brand-footer { padding: 0; min-height: 0; }
.at-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.at-footer-menu a, .at-footer-bottom a { color: rgb(236 238 236 / 0.8); }
.at-footer-menu a:hover, .at-footer-bottom a:hover { color: #fff; }
.at-footer .at-social a { color: rgb(236 238 236 / 0.8); }
.at-footer .at-social a:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
.at-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; color: rgb(236 238 236 / 0.55); font-size: 0.9rem; }

.at-social { display: flex; flex-wrap: wrap; gap: 2px; }
.at-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; transition: background-color 0.2s ease; }
.at-social a:hover { background: color-mix(in srgb, var(--at-text) 8%, transparent); }
.at-social-sm a { width: 34px; height: 34px; }
.at-social-fallback { font-size: 0.75rem; font-weight: 700; }

/* 14. Reveal effects (html[data-fx], set from the theme setting or an #effect-… tag; class added by main.js)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .at-reveal { transition: opacity 0.9s var(--at-ease), transform 1.1s var(--at-ease), clip-path 1.2s var(--at-ease); }
    .at-reveal img { transition: transform 1.4s var(--at-ease); }

    [data-fx="fade"] .at-reveal:not(.is-in) { opacity: 0; }
    [data-fx="slide"] .at-reveal:not(.is-in) { opacity: 0; transform: translateY(60px); }
    [data-fx="zoom"] .at-reveal:not(.is-in) { opacity: 0; }
    [data-fx="zoom"] .at-reveal:not(.is-in) img { transform: scale(1.25); }
    [data-fx="curtain"] .at-reveal:not(.is-in) .at-card-image,
    [data-fx="curtain"] .at-reveal:not(.is-in) .at-post-card-image,
    [data-fx="curtain"] .at-reveal.kg-card:not(.is-in),
    [data-fx="curtain"] .at-reveal:not(.is-in) > img { clip-path: inset(100% 0 0 0); }
    [data-fx="curtain"] .at-reveal .at-card-image,
    [data-fx="curtain"] .at-reveal .at-post-card-image { transition: clip-path 1.2s var(--at-ease); }
    [data-fx="curtain"] .at-reveal:not(.is-in) .at-card-meta { opacity: 0; }
    .at-reveal .at-card-meta { transition: opacity 0.8s 0.3s ease; }

    /* Leaning cards already move with the scroll: only fade them in */
    .at-work-wall .at-reveal:not(.is-in) { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
    .at-wall-col, .at-card, .at-cover img, .at-project-cover img, .at-archive-image img { transform: none !important; }
    .at-menu, .at-menu-link { transition: none; }
}

/* 15. Misc
   ========================================================================== */

.at-muted { color: var(--at-muted); }

@media print {
    .at-bar, .at-menu, .at-footer, .at-wall, .at-progress { display: none !important; }
}
