/* Layout — container, grid, sections, technical frames */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1560px; }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush-top { padding-top: 0; }

/* 12-col desktop / 4-col mobile */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }

@media (min-width: 768px) {
.grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-6); }
}

@media (min-width: 1024px) {
.grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-8); }
}

/* Mobile-first: a column child fills the row. Without this, auto-placement squeezes it into a single 4-col track and the text overflows. */
.col-4, .col-5, .col-6, .col-7 { grid-column: 1 / -1; }

@media (min-width: 1024px) {
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-end { grid-column-end: -1; }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-8); }
.flow > * + * { margin-top: var(--s-6); }

/* --- Section heading: no tracked all-caps eyebrow. A hairline + sentence-case title. --- */
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head__title { font-size: var(--t-h2); }
.sec-head__intro { color: var(--text-muted); max-width: 60ch; }

@media (min-width: 900px) {
.sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: end; gap: var(--s-12); }
}

/* A hairline rule that draws in on scroll (motion.js). */
.rule { height: 1px; background: var(--line-soft); transform-origin: left center; margin-bottom: var(--s-6); }
.js .rule[data-draw] { transform: scaleX(0); }

/* Crop marks — "this is printed work". Frames photos. */
.frame { position: relative; display: block; }
.frame__media { position: relative; overflow: hidden; border-radius: var(--r-frame); background: var(--surface-raised); }
.frame__media img { width: 100%; height: 100%; object-fit: cover; }

/* four L-shaped marks, drawn with two gradients per corner */
.frame::before,
.frame::after,
.frame__media::before,
.frame__media::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2; opacity: 0.55; transition: opacity var(--d-base) var(--e-out), width var(--d-base) var(--e-out), height var(--d-base) var(--e-out); }
.frame::before { top: -5px; left: -5px; border-top: 1px solid var(--mauve-400); border-left: 1px solid var(--mauve-400); }
.frame::after { top: -5px; right: -5px; border-top: 1px solid var(--mauve-400); border-right: 1px solid var(--mauve-400); }
.frame__media::before { bottom: -5px; left: -5px; border-bottom: 1px solid var(--mauve-400); border-left: 1px solid var(--mauve-400); }
.frame__media::after { bottom: -5px; right: -5px; border-bottom: 1px solid var(--mauve-400); border-right: 1px solid var(--mauve-400); }
.frame:hover::before,
.frame:hover::after,
.frame:hover .frame__media::before,
.frame:hover .frame__media::after { opacity: 1; width: 22px; height: 22px; border-color: var(--gold-500); }

/* Ratio helpers */
.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-3-4 { aspect-ratio: 3 / 4; }

/* Paper section: diagonal cut echoing the logo triangle */
.cut-top { clip-path: polygon(0 clamp(24px, 4vw, 56px), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * clamp(24px, 4vw, 56px)); padding-top: calc(var(--section-y) + clamp(24px, 4vw, 56px)); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--text-dim); }
.crumbs a { text-decoration: none; color: var(--text-dim); }
.crumbs a:hover { color: var(--gold-500); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs [aria-current] { color: var(--text-muted); }

/* Page hero (inner pages) */

@media (min-width: 1024px) {
}

/* Subtle plum plane behind inner-page heroes */
/* Removed: a decorative gradient wash sat here purely as filler, which is one of the anti-patterns this design brief rules out. The hairline border below is enough to separate the hero. */

/* === ROUND 2 === */
/* .pagehero replaced by .page-hero in pages.css (round 2) */
/* === /ROUND 2 === */
