/* /try taste session: the specimen (taste.js specimen()). Their name as a slice of a finished homepage: a real nav, a
   typeset hero, their photo art-directed, the small details an agency sweats (fine rules, a kicker, a caption, a
   considered button). Each this-or-that exaggerates the axis being asked (.sp--f-<axis>), and both sides are designed
   to be good, so the owner chooses between two directions, never between good and ugly. Sizes are in cqw: one card
   reads the same at 160px (two side by side on a phone) and at 360px. */

.sp { container-type: inline-size; position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--sp-bg); color: var(--sp-fg); font-family: var(--sp-tf), var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .5s var(--ease), color .5s var(--ease); }
.sp :where(span, b, i, em, figure, figcaption) { margin: 0; font-style: normal; }

/* nav: their name, two real links, the trade's main button */
.sp__nav { position: relative; z-index: 3; display: flex; align-items: center; gap: 3.4cqw; padding: 4.6cqw 5.6cqw; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.sp__logo { min-width: 0; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .18em; /* room for an italic last letter (UX audit #26: "Studic") */ font: var(--sp-ds) var(--sp-dw) 4.3cqw/1 var(--sp-df), serif; letter-spacing: var(--sp-track); text-transform: var(--sp-case); }
.sp__links { display: flex; gap: 3.4cqw; margin-left: auto; font: 500 max(6px, 2.6cqw)/1 var(--sp-tf), var(--sans); opacity: .7; white-space: nowrap; }
.sp__btn { flex: none; padding: 1.7cqw 2.8cqw; border-radius: .9cqw; background: var(--sp-fg); color: var(--sp-bg); font: 600 max(6px, 2.5cqw)/1 var(--sp-tf), var(--sans); white-space: nowrap; }

/* hero */
.sp__hero { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4.6cqw; padding: 6cqw 5.6cqw 5.6cqw; }
.sp__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 3cqw; }
.sp__k { display: flex; align-items: center; gap: 1.8cqw; max-width: 100%; font: 600 max(5.5px, 2.3cqw)/1.2 var(--sp-tf), var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sp-ac); white-space: nowrap; overflow: hidden; }
.sp__k i { flex: none; width: 5cqw; height: 1px; background: currentColor; }
.sp__k em { opacity: .72; } .sp__k em::before { content: "·"; margin: 0 1.4cqw; }
.sp--dark .sp__k { color: color-mix(in srgb, var(--sp-ac) 62%, #fff); }
.sp__h { max-width: 100%; font: var(--sp-ds) var(--sp-dw) 12.6cqw/.9 var(--sp-df), serif; letter-spacing: var(--sp-track); text-transform: var(--sp-case); text-wrap: balance; hyphens: none; }
.sp--long .sp__h { font-size: 10.4cqw; } .sp--xl .sp__h { font-size: 8.6cqw; }
.sp__row { display: flex; align-items: center; gap: 3.4cqw; margin-top: 1cqw; }
.sp__cta { display: inline-flex; align-items: center; gap: 2cqw; padding: 2.3cqw 3.4cqw; border-radius: 1cqw; background: var(--sp-ac); color: var(--sp-on, #fff); font: 600 max(6px, 2.7cqw)/1 var(--sp-tf), var(--sans); white-space: nowrap; }
.sp__cta i { font-weight: 500; }
.sp__where { display: inline-flex; align-items: center; gap: 1.4cqw; font: 500 max(5.5px, 2.4cqw)/1 var(--sp-tf), var(--sans); opacity: .62; white-space: nowrap; }
.sp__where::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }

/* the photo: theirs, cropped like an art director would */
.sp__img { position: relative; flex: 1; min-height: 22cqw; overflow: hidden; border-radius: 1.4cqw; background: var(--sp-soft); }
.sp__img img, .sp__img2 img, .sp__img3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(var(--sp-sat, 1)); transition: filter .5s var(--ease); }
.sp__cap { position: absolute; z-index: 2; left: 2.4cqw; bottom: 2.4cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 1.3cqw 2cqw; border-radius: .8cqw; background: rgb(255 255 255 / .92); color: #1c1a17; font: 600 max(5.5px, 2.1cqw)/1 var(--sp-tf), var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.sp__cap span { opacity: .45; }
.sp__img2, .sp__img3, .sp__seal, .sp__num, .sp__side, .sp__band { display: none; }

/* ---- lead · photos first: the photo is the stage, everything sits on it ---- */
.sp--photo .sp__hero { position: static; justify-content: flex-end; padding-top: 0; }
.sp--photo .sp__img { position: absolute; z-index: 0; inset: 0; min-height: 0; border-radius: 0; }
.sp--photo .sp__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .42), transparent 26%, transparent 42%, rgb(0 0 0 / .72)); }
.sp--photo .sp__cap { display: none; }
.sp--photo .sp__nav { color: #fff; border-color: rgb(255 255 255 / .22); }
.sp--photo .sp__btn { background: #fff; color: #141414; }
.sp--photo .sp__copy { color: #fff; }
.sp--photo .sp__k { color: rgb(255 255 255 / .9); }
.sp--photo .sp__h { font-size: 11.4cqw; } .sp--photo.sp--long .sp__h { font-size: 9.6cqw; } .sp--photo.sp--xl .sp__h { font-size: 8cqw; }
.sp--photo .sp__where { opacity: .85; }

/* ---- lead · words first: the name is the hero, the photo a cropped plate beside a caption ---- */
.sp--type .sp__hero { justify-content: space-between; }
.sp--type .sp__h { font-size: 16cqw; line-height: .86; } .sp--type.sp--long .sp__h { font-size: 12.6cqw; } .sp--type.sp--xl .sp__h { font-size: 10.2cqw; }
.sp--type .sp__img { flex: 0 0 auto; align-self: flex-end; width: 48cqw; height: 30cqw; min-height: 0; }
.sp--type .sp__cap { display: none; }

/* ---- space · calm: one photo in a lot of air, a hairline, nothing shouting ---- */
.sp--f-space.sp--calm .sp__nav { border-color: transparent; padding-bottom: 2cqw; }
.sp--f-space.sp--calm .sp__btn { background: none; color: inherit; padding: 0; border-bottom: 1px solid currentColor; border-radius: 0; }
.sp--f-space.sp--calm .sp__hero { padding: 8cqw 9cqw 9cqw; gap: 6cqw; }
.sp--f-space.sp--calm .sp__h { font-size: 9.6cqw; } .sp--f-space.sp--calm.sp--long .sp__h { font-size: 8.2cqw; } .sp--f-space.sp--calm.sp--xl .sp__h { font-size: 7cqw; }
.sp--f-space.sp--calm .sp__img { flex: 0 0 auto; height: 40cqw; margin-top: auto; }
.sp--f-space.sp--calm .sp__cap { background: none; color: #fff; padding: 0; left: 3cqw; bottom: 3cqw; }

/* ---- space · lively: a running band, a crop mosaic of their photo, a turning seal ---- */
.sp--lively .sp__band { position: relative; z-index: 3; display: block; overflow: hidden; white-space: nowrap; padding: 2cqw 0; background: var(--sp-ac); color: var(--sp-on, #fff); font: var(--sp-ds) var(--sp-dw) max(6px, 2.9cqw)/1 var(--sp-df), serif; letter-spacing: .02em; text-transform: uppercase; }
.sp__band > span { display: inline-flex; align-items: center; gap: 2.6cqw; padding-left: 2.6cqw; animation: spband 14s linear infinite; }
.sp__band i { font-size: .8em; opacity: .8; }
@keyframes spband { to { transform: translateX(-33.33%); } }
.sp--f-space.sp--lively .sp__hero { gap: 4cqw; padding-top: 5cqw; }
.sp--f-space.sp--lively .sp__h { font-size: 13.4cqw; } .sp--f-space.sp--lively.sp--long .sp__h { font-size: 11cqw; } .sp--f-space.sp--lively.sp--xl .sp__h { font-size: 9cqw; }
.sp--f-space.sp--lively .sp__img { margin-right: 25cqw; }
.sp--f-space.sp--lively .sp__img2, .sp--f-space.sp--lively .sp__img3 { position: absolute; z-index: 1; display: block; right: 5.6cqw; width: 22cqw; overflow: hidden; border-radius: 1.4cqw; background: var(--sp-soft); }
.sp--f-space.sp--lively .sp__img2 { bottom: calc(5.6cqw + 17cqw); height: calc(var(--sp-h2, 26cqw)); }
.sp--f-space.sp--lively .sp__img3 { bottom: 5.6cqw; height: 15cqw; }
.sp__img2 img { transform: scale(1.9); object-position: 30% 35%; }
.sp__img3 img { transform: scale(2.6); object-position: 75% 70%; }
.sp--f-space.sp--lively .sp__seal { position: absolute; z-index: 3; display: block; right: 3cqw; top: 2cqw; width: 23cqw; height: 23cqw; fill: currentColor; font: 700 9px var(--sp-tf), var(--sans); letter-spacing: 2.2px; animation: spseal 22s linear infinite; }
.sp__seal circle { fill: var(--sp-ac); }
@keyframes spseal { to { transform: rotate(1turn); } }

/* ---- edge · classic: centred, ruled, the photo matted like a print ---- */
.sp--f-edge.sp--classic .sp__nav { justify-content: center; }
.sp--f-edge.sp--classic .sp__links, .sp--f-edge.sp--classic .sp__btn { display: none; }
.sp--f-edge.sp--classic .sp__copy { align-items: center; text-align: center; align-self: stretch; }
.sp--f-edge.sp--classic .sp__k::after { content: ""; flex: none; width: 5cqw; height: 1px; background: currentColor; }
.sp--f-edge.sp--classic .sp__row { justify-content: center; }
.sp--f-edge.sp--classic .sp__where { display: none; }
.sp--f-edge.sp--classic .sp__cta { background: none; color: inherit; border-radius: 0; padding: 0 0 1cqw; border-bottom: 1px solid currentColor; }
.sp--f-edge.sp--classic .sp__img { margin: 0 3cqw; border-radius: 0; box-shadow: 0 0 0 1.8cqw var(--sp-bg), 0 0 0 calc(1.8cqw + 1px) color-mix(in srgb, var(--sp-fg) 30%, transparent); }
.sp--f-edge.sp--classic .sp__cap { left: 50%; translate: -50% 0; }

/* ---- edge · fresh: the name runs off the edge, the photo breaks the grid, a big numeral, a vertical label ---- */
.sp--f-edge.sp--fresh .sp__hero { padding-left: 9cqw; gap: 0; }
.sp--f-edge.sp--fresh .sp__h { font-size: 17cqw; line-height: .82; margin-right: -12cqw; } .sp--f-edge.sp--fresh.sp--long .sp__h { font-size: 13.6cqw; } .sp--f-edge.sp--fresh.sp--xl .sp__h { font-size: 11cqw; }
.sp--f-edge.sp--fresh .sp__row { order: 3; margin-top: 3cqw; }
.sp--f-edge.sp--fresh .sp__copy { display: contents; }
.sp--f-edge.sp--fresh .sp__k { order: 0; margin-bottom: 3cqw; }
.sp--f-edge.sp--fresh .sp__h { order: 1; position: relative; z-index: 2; }
.sp--f-edge.sp--fresh .sp__img { order: 2; flex: 1; margin: -5cqw -5.6cqw 0 18cqw; border-radius: 0; }
.sp--f-edge.sp--fresh .sp__cap { left: auto; right: 2.4cqw; }
.sp--f-edge.sp--fresh .sp__num { position: absolute; z-index: 3; display: block; left: 9cqw; bottom: 12cqw; font: var(--sp-ds) 400 15cqw/1 var(--sp-df), serif; color: transparent; -webkit-text-stroke: 1px var(--sp-fg); }
.sp--f-edge.sp--fresh .sp__side { position: absolute; z-index: 3; display: block; left: 2.8cqw; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; rotate: 180deg; font: 600 max(5.5px, 2cqw)/1 var(--sp-tf), var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .6; white-space: nowrap; }

/* ---- colour · bold: their colour floods the page, the photo takes a tint ---- */
.sp--f-colour.sp--bold { background: var(--sp-ac); color: var(--sp-on, #fff); }
.sp--f-colour.sp--bold .sp__k { color: inherit; opacity: .9; }
.sp--f-colour.sp--bold .sp__cta { background: var(--sp-on, #fff); color: var(--sp-ac); }
.sp--f-colour.sp--bold .sp__btn { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.sp--f-colour.sp--bold .sp__img::after { content: ""; position: absolute; inset: 0; background: var(--sp-ac); mix-blend-mode: multiply; opacity: .28; }
/* ---- colour · natural: quiet paper, softened photography, the colour only in the details ---- */
.sp--f-colour.sp--natural .sp__img img { filter: saturate(.62) sepia(.16) contrast(.96); }
.sp--f-colour.sp--natural .sp__cta { background: transparent; color: var(--sp-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp-fg) 55%, transparent); }
.sp--f-colour.sp--natural .sp__btn { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent); }

/* ---- type: the name is the poster, so the letterforms are what you compare ---- */
.sp--f-type .sp__h { font-size: 17.5cqw; } .sp--f-type.sp--long .sp__h { font-size: 13.6cqw; } .sp--f-type.sp--xl .sp__h { font-size: 11cqw; }

/* ---- small cards (two side by side on a phone): keep the essentials, drop the fine print ---- */
@container (max-width: 240px) {
  .sp__links, .sp__where, .sp__cap, .sp__side, .sp__seal { display: none !important; }
  .sp__btn { margin-left: auto; padding: 1.8cqw 2.6cqw; }
  .sp__k em { display: none; }
}
@container (max-width: 190px) { .sp__btn { display: none; } .sp__logo { max-width: 100%; } }

/* ---- the type step's wide preview and the style board ---- */
.tprev .sp { aspect-ratio: 16 / 10; }
.tprev .sp__hero { flex-direction: row; align-items: stretch; gap: 4cqw; padding: 4.4cqw 4.4cqw 4.4cqw 5.6cqw; }
.tprev .sp__copy { flex: 1.15; justify-content: center; gap: 2.2cqw; }
.tprev .sp__img { flex: 1; }
.tprev .sp__nav { padding: 3cqw 4.4cqw 3cqw 5.6cqw; }
.tprev .sp__logo { font-size: 2.8cqw; } .tprev .sp__links { font-size: max(6px, 1.7cqw); } .tprev .sp__btn { font-size: max(6px, 1.6cqw); padding: 1.1cqw 1.9cqw; }
.tprev .sp__k { font-size: max(5.5px, 1.5cqw); } .tprev .sp__cta { font-size: max(6px, 1.75cqw); padding: 1.5cqw 2.3cqw; } .tprev .sp__where { font-size: max(5.5px, 1.6cqw); }
.tprev .sp__h { font-size: 7.4cqw; } .tprev .sp--long .sp__h { font-size: 6cqw; } .tprev .sp--xl .sp__h { font-size: 5cqw; }
.tprev .sp--photo .sp__hero { flex-direction: column; }
.tprev .sp--photo .sp__copy { flex: 0 0 auto; }
.tprev .sp__cap { font-size: max(5.5px, 1.4cqw); }

@media (prefers-reduced-motion: reduce) { .sp__band > span, .sp__seal { animation: none !important; } .sp { transition: none; } }

/* ---- round 1 fixes ---- */
/* small text in the pairing fonts renders a hairline word space: give the fine print a real one */
.sp__links, .sp__btn, .sp__k, .sp__cta, .sp__where, .sp__cap, .sp__band, .sp__side { word-spacing: .2em; }
/* words first must read as a different page at a glance: the name fills the width, a letterbox plate holds the
   bottom (no dead middle), its caption set beside it like a figure note */
.sp--type .sp__h { font-size: 19cqw; } .sp--type.sp--long .sp__h { font-size: 15.4cqw; } .sp--type.sp--xl .sp__h { font-size: 12cqw; }
.sp--type .sp__img { align-self: stretch; width: auto; height: 36cqw; }
.sp--type .sp__cap { display: flex; }
/* dark: dramatic, not just inverted. The photo runs edge to edge and glows in their colour */
.sp--f-tone.sp--dark .sp__img { margin: 0 -5.6cqw -5.6cqw; border-radius: 0; box-shadow: 0 -10cqw 22cqw -6cqw color-mix(in srgb, var(--sp-ac) 55%, transparent); }
.sp--f-tone.sp--dark .sp__img img { filter: saturate(var(--sp-sat, 1)) contrast(1.06); }
/* bold: their colour, deepened a touch where it would glare */
.sp--f-colour.sp--bold { background: color-mix(in srgb, var(--sp-ac) 90%, #000); }
/* calm: the photo sits under the words with air around it, a hairline caption below (no dead middle) */
.sp--f-space.sp--calm .sp__img { flex: 0 0 auto; height: auto; margin-top: 2cqw; overflow: visible; background: none; border-radius: 0; min-height: 0; }
.sp--f-space.sp--calm .sp__img img { position: relative; display: block; height: 46cqw; border-radius: 1cqw; }
.sp--f-space.sp--calm .sp__cap { position: static; display: flex; margin-top: 3.4cqw; padding: 3cqw 0 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 0; background: none; color: inherit; opacity: .7; }
/* lively: the seal turns over the corner of the mosaic, clear of the name */
.sp--f-space.sp--lively .sp__seal { top: auto; bottom: calc(5.6cqw + 17cqw + 26cqw - 9cqw); right: 2.6cqw; width: 22cqw; height: 22cqw; }
.sp--f-space.sp--lively .sp__seal text { paint-order: stroke; stroke: var(--sp-bg); stroke-width: 3px; }
/* fresh: the photo breaks the grid by bleeding off the right edge and starting off-axis, never by hiding the name */
.sp--f-edge.sp--fresh .sp__img { margin-top: 4cqw; }
/* long names: the logo needs the room, the links step aside */
.sp--long .sp__links, .sp--xl .sp__links { display: none; }
.sp--long .sp__btn, .sp--xl .sp__btn { margin-left: auto; }
.sp--long .sp__logo, .sp--xl .sp__logo { max-width: 66%; }
.sp--xl .sp__logo { font-size: 3.5cqw; }
