/* Studio explorations (docs-plan-overhaul-dec1.md 4.5 and 10, docs-plan-revision-dec2.md 1.6): six design concepts, one
   for each kind of business, each built around one of the studio's own originals, shown whole (scaled only, never retouched). Our chrome uses base.css tokens;
   each concept's palette lives on its card and is picked from its image. */

@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Section head ---------- */
.cx-intro { font: var(--w-display) clamp(1.375rem, 1.1rem + 1vw, 2rem)/1.2 var(--f-display); letter-spacing: -.025em; max-width: 36ch; }
.cx-head { display: grid; gap: var(--s-4); }
.cx-small { font-size: var(--t-sm); line-height: 1.5; color: var(--mist); }

/* ---------- Grid: two columns from 60rem, one from 40rem, a snap row below ---------- */
.cx-grid { grid-column: 1 / -1; display: grid; gap: var(--s-7) var(--s-6); margin: var(--s-4) 0 0; padding: 0; }
.cx-grid:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; border-radius: var(--r-md); }
.cx-grid > li { min-width: 0; }
@media (min-width: 60rem) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-6); } }
@media (max-width: 39.99rem) {
  .cx-grid { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: var(--s-4); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .cx-grid > li { flex: 0 0 86%; scroll-snap-align: start; }
}

/* ---------- Card chrome (our colours) ---------- */
.cx { container: cx / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.cx-frame { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2); }
.cx-bar { position: relative; display: flex; align-items: center; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.cx-dots { display: flex; gap: 5px; }
.cx-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.cx-url { position: absolute; inset: 0 64px; display: grid; place-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--mist); }

.cx-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); padding: 0 2px; }
.cx-name { font: 500 var(--t-base)/1.3 var(--f-sans); letter-spacing: -.01em; }
.cx-note { font-size: var(--t-sm); color: var(--dim); }
.cx-meta { margin-top: .2em; font: 400 .75rem/1.6 var(--f-mono); color: var(--dim); white-space: nowrap; }

/* ---------- The mini-site ---------- */
/* Per card: --tb/--tf/--tm the top row (fill, text, nav words), --g the ground (under the art, and the text block on
   phones), --fg/--mu text, --bf/--bt button, --cy where the copy sits, --scrim a soft wash in the image's own colour
   under the copy where the art is busy, --op what a phone crop keeps */
.cx-site { position: relative; overflow: hidden; border-radius: 0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px);
  background: var(--g); color: var(--fg); font-family: var(--f-sans); }
.cx-top { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 20px; background: var(--tb); color: var(--tf); font-size: 12px; line-height: 1; }
.cx-wm { margin-right: auto; font-weight: 600; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
.cx-nav { display: flex; gap: 14px; color: var(--tm); white-space: nowrap; }
.cx-sbtn { padding: 6px 10px; border-radius: var(--r-pill); background: var(--tf); color: var(--tb); font-weight: 500; white-space: nowrap; }

/* The art fills the window, whole: the window is 16:9 like the originals */
.cx-hero { position: relative; aspect-ratio: 16 / 9; }
.cx-hero picture { display: contents; }
.cx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--scrim, none); pointer-events: none; }
.cx-copy { position: absolute; z-index: 2; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: var(--cy, center); align-items: flex-start; gap: 12px;
  width: var(--cw, 46%); padding: 26px 0 26px 26px; }
.cx--flip .cx-copy { inset: 0 0 0 auto; padding: 26px 26px 26px 0; }
.cx-h { max-width: 12ch; font-size: clamp(1.5rem, 5.2cqi, 2.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.cx-line { max-width: 28ch; font-size: 14px; line-height: 1.45; color: var(--mu); }
.cx-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-top: 4px; border-radius: var(--r-pill);
  background: var(--bf); color: var(--bt); border: 1px solid var(--bf); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* Narrow card (phones): text block on the ground, the art under it, cropped to keep its subject */
@container cx (max-width: 32.49rem) {
  .cx-nav { display: none; }
  .cx-hero { display: flex; flex-direction: column; aspect-ratio: auto; }
  .cx-hero::before { display: none; }
  .cx-copy, .cx--flip .cx-copy { position: static; order: -1; width: auto; padding: 20px 20px 24px; }
  .cx-art { position: static; height: auto; aspect-ratio: 4 / 3; object-position: var(--op, 50% 50%); }
}

/* ---------- The six ---------- */
.cx--stoa { --tb: #1d2fc2; --tf: #fbe7a0; --tm: #f3dd94; --g: #f8e49c; --fg: #0a1580; --mu: #18259a; --bf: #1d2fc2; --bt: #fbe7a0;
  --cy: flex-end; --op: 100% 50%; --scrim: radial-gradient(ellipse 64% 88% at 0% 66%, rgb(250 230 155 / .9), rgb(250 230 155 / .55) 60%, transparent); }
.cx--stoa :is(.cx-wm, .cx-h) { font-family: "Libre Caslon Text", Georgia, serif; font-weight: 700; letter-spacing: -.02em; }
.cx--stoa .cx-h { font-size: clamp(1.375rem, 4.8cqi, 2.25rem); line-height: 1.08; }
.cx--stoa :is(.cx-btn, .cx-sbtn) { border-radius: 2px; }

.cx--calda { --tb: #2a0d58; --tf: #fdeee8; --tm: #d8c4ee; --g: #3a146c; --fg: #fff3ee; --mu: #f6ecfb; --bf: #fdeee8; --bt: #2a0d58;
  --cy: flex-start; --op: 100% 50%; --scrim: linear-gradient(170deg, rgb(30 8 68 / .78), rgb(30 8 68 / .55) 45%, transparent 78%); }
.cx--calda .cx-h { font-weight: 300; letter-spacing: -.05em; }
.cx--calda .cx-wm { font-weight: 400; letter-spacing: .02em; }

.cx--twohandles { --tb: #4a170a; --tf: #faebd6; --tm: #efcfb4; --g: #6d2913; --fg: #fff1de; --mu: #f4d6bc; --bf: #faebd6; --bt: #5a1c0b;
  --op: 100% 50%; --scrim: linear-gradient(90deg, rgb(54 15 7 / .74), rgb(54 15 7 / .5) 38%, transparent 62%); }
.cx--twohandles .cx-h { font-weight: 600; letter-spacing: -.04em; }
.cx--twohandles .cx-wm { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

.cx--verus { --tb: #051b24; --tf: #f9e9b4; --tm: #b9cdbf; --g: #092631; --fg: #fbeec0; --mu: #e3ead8; --bf: #f9e9b4; --bt: #062029;
  --cy: flex-start; --op: 45% 50%; --scrim: radial-gradient(ellipse 70% 90% at 100% 15%, rgb(5 27 36 / .68), transparent); }
.cx--verus .cx-h { font-weight: 400; letter-spacing: -.04em; }
.cx--verus .cx-nav { font-family: var(--f-mono); }
.cx--verus :is(.cx-btn, .cx-sbtn) { border-radius: 0; }

.cx--gorgon { --tb: #0a0a0c; --tf: #eeebe2; --tm: #a9a69e; --g: #08080a; --fg: #f1eee6; --mu: #b0ada5; --bf: transparent; --bt: #f1eee6; --op: 0% 50%;
  --scrim: linear-gradient(270deg, rgb(8 8 10 / .82), rgb(8 8 10 / .65) 45%, transparent 60%); }
.cx--gorgon .cx-h { font-weight: 700; letter-spacing: -.045em; }
.cx--gorgon .cx-wm { font-weight: 700; }
.cx--gorgon .cx-btn { border-color: var(--bt); }
.cx--gorgon .cx-sbtn { background: none; color: var(--tf); box-shadow: inset 0 0 0 1px var(--tf); }

.cx--thirdtier { --tb: #4f0d13; --tf: #fff4e6; --tm: #f2c9bd; --g: #6d171d; --fg: #fff4e6; --mu: #fff4e6; --bf: #fff4e6; --bt: #7a1018;
  --cy: flex-start; --op: 100% 50%; --scrim: radial-gradient(ellipse 100% 68% at 0% 0%, rgb(77 12 18 / .88), rgb(77 12 18 / .86) 78%, transparent); --cw: 56%; }
.cx--thirdtier .cx-h { font-weight: 650; letter-spacing: -.04em; }
.cx--thirdtier .cx-wm { font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
/* Wide card: a short copy block in the dark sky, the wash ending above the cream glow low on the left, and a crimson
   button that reads on the glow */
@container cx (min-width: 32.5rem) {
  .cx--thirdtier .cx-line { max-width: 40ch; }
  .cx--thirdtier .cx-btn { background: var(--tb); color: var(--tf); border-color: var(--tb); }
}
/* Phones. Calda: a wide window cut from the lower right, so the arches are the subject and the sky a backdrop.
   Third Tier: the whole picture, so the glow stays in */
@container cx (max-width: 32.49rem) {
  .cx--calda .cx-hero { padding-bottom: 56.25%; }
  .cx--calda .cx-art { position: absolute; inset: auto 0 0 auto; width: 180%; max-width: none; aspect-ratio: 16 / 9; clip-path: inset(44.44% 0 0 44.44%); }
  .cx--thirdtier .cx-art { aspect-ratio: 16 / 9; }
}

/* ---------- Closing line: a question and the quote link, under the grid in the content column ---------- */
.cx-close { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); max-width: none; margin-top: var(--s-4);
  font-size: var(--t-lg); color: var(--mist); }
@media (min-width: 60rem) { .cx-close { grid-column: -2 / -1; margin-top: var(--s-6); } }

@media (forced-colors: active) {
  .cx-art, .cx-hero::before { display: none; }
  .cx-frame { border-color: CanvasText; }
}
