/**
 * Mimi & Co. Teams page (398).
 *
 * The page explained team ordering in three steps and stopped, with no
 * photograph on it anywhere. This sheet lays out what it gained: a hero that
 * shows two people rather than one, the model drawn as three visible levels,
 * the range it is selling, and the sizes and cloth.
 *
 * THE HERO IS A FULL-BLEED BAND as of 13 Oct 2026. It was a two-column split
 * with two portraits in it, because every photograph in the library was
 * portrait: all 12 shoot frames at 1024x1536, all ten featured images between
 * 2:3 and 3:4. The client's 28 banner images landed on 12 Oct and every one is
 * landscape. The strip below is still a row of portraits, which is what the
 * shop grid already does.
 *
 * Nothing here sits inside a cascade layer, so it beats Bricks' own
 * @layer bricks rules whatever the source order. That matters twice:
 * .brxe-section is display:flex, and every .brxe-* is capped at max-width:100%.
 *
 * The brand tokens are not redefined. --copper, --slate, --rich, --bone,
 * --charcoal, --beige, --ease, --font-display and --font-body all resolve
 * site-wide already, and a second definition would be a second source of truth.
 *
 * Bare rem is unsafe in this theme: html is font-size 10px, so 1rem renders at
 * 62.5% of intent. Everything below is px or a clamp() in px.
 *
 * @package mimi-core
 */

/* ============================================================
   Page rhythm and the gold
   ============================================================ */

/* mc-section is padding: 104px 40px, so every boundary between two sections is
   208px of nothing and the page reads as four things floating a long way apart.
   60 gives a 120px band, which is still a clear break at 1850 without the gap
   becoming the loudest thing on the screen. Scoped to this sheet, so it is this
   page only until Andrew wants it everywhere. */
.brxe-section.mc-section {
	padding-block: 60px;
	/* AND THE SIDES ARE THE SITE'S RAIL, NOT 40. mc-section ships with 40px of
	   side padding, so every heading, every paragraph and every panel on this
	   page began at 40 and ended at 1795 while Collections starts at 198 and
	   Sign in ends at 1638: the page ran 158px wider than the navigation over
	   it, at both ends. --gutter is the same max(40px, (100% - 1440px) / 2) the
	   masthead, the footer, the homepage and the shop already use. */
	padding-inline: var(--gutter, max(40px, calc((100% - 1440px) / 2)));
}

/* The three steps are a full-bleed row of panels with rules between them, and a
   full-bleed row inside a page that stops at 1638 is the one element overshoot-
   ing the navigation. Padding rather than a width, so the dividing rules still
   run the height of the band.

   .mc-closing is named separately because it is the one section on this page
   that is not an .mc-section: it carries the closing heading and the two links,
   and without this it was the only block left at 40. */
.brxe-section.mc-pillars,
.brxe-section.mc-closing {
	padding-inline: var(--gutter, max(40px, calc((100% - 1440px) / 2)));
}

/*
 * AND THE PILLARS' WASH STOPS WHERE THE PANELS DO.
 *
 * The three panels are the page's own dark, and the 1px seams between them are
 * the section's background showing through: bone at 10%, drawn once behind the
 * row. Give that section 198px of side padding and the same wash paints those
 * 198px solid, so the row gained a pale empty slot at each end that looked like
 * a fourth and fifth step.
 *
 * background-clip keeps the paint inside the padding, where the seams are. The
 * band's own hairlines move onto the panels for the same reason: on the section
 * they sit outside the padding and run the full width of the window, which is
 * the one line on this page that would still cross the navigation.
 */
.brxe-section.mc-pillars {
	background-clip: content-box;
	border-block: 0;
}

.mc-pillars > .mc-pillars__item {
	border-block: 1px solid rgba(246, 243, 239, .1);
}

/* The hero keeps a little more above it, because the masthead sits right on top
   of it and 60px reads as a collision rather than as a margin. */
.brxe-section.mc-section.tp-hero {
	padding-top: 84px;
}

/* Task 10, 27 Oct 2026: the outlined override that lived here is gone. The
   primary .mc-button is V1's solid copper button (global class, Task 3), and
   the Teams page now uses it as it stands. */

/* The ghost button would now be two outlined buttons side by side saying
   different things with the same voice, so it keeps the bone outline it had. */
.mc-button--ghost.brxe-button {
	color: var(--bone);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 30%, transparent);
}

.mc-button--ghost.brxe-button:hover,
.mc-button--ghost.brxe-button:focus-visible {
	background-color: transparent;
	color: var(--bone);
	box-shadow: inset 0 0 0 1px var(--bone);
}

/* ============================================================
   Hero
   ============================================================ */

/* TWO CHILDREN, NOT SIX. The first version of this put the copy elements and the
   worked example in the grid as siblings and spanned the example with
   `grid-row: 1 / -1`. With no explicit row tracks, -1 resolves to the start of
   the implicit grid, so it occupied row ONE rather than all of them: that row
   grew to 657px, align-items centred the 14px eyebrow inside it, and the
   heading was pushed below the fold. Each half is now a single item and the
   section is a plain two-column grid.

   The worked example centres against the copy rather than hanging from the top,
   because it is 456px against 181px and top-aligning put all 275px of the
   difference in one block under the lede. */
.brxe-section.mc-section:has(> .tp-work__demo) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(40px, 5vw, 88px);
	row-gap: 48px;
	align-items: center;
}

/* ------------------------------------------------------------- the band ---

   THE PHOTOGRAPH IS NOT IN THIS SHEET and not in the page's elements either.
   includes/hero.php puts three custom properties on :root and stops there:
   --mimi-hero is the image, --mimi-hero-on is a 0/1 switch, --mimi-hero-focus
   is how far down it to sit. Which photograph it is belongs to
   tools/wire-heroes.php. The archive band (assets/shop.css) reads exactly the
   same three.

   --mimi-hero-on IS LOAD-BEARING. The hero carries the page's h1, so the
   section renders whether or not a banner has been wired to the page. The
   switch multiplies the band's height and the panel's opacity by zero, and what
   is left is the copy on the page background: the hero as it read before any of
   this, minus the two portraits. A page with no banner is a quiet state, never
   a 680px black rectangle. */
.brxe-section.mc-section.tp-hero {
	display: flex;
	/* BOTH AXES HAVE TO BE SAID, and they are the wrong way round from the
	   habit. A Bricks section is a flex COLUMN, so justify-content runs DOWN
	   the band and align-items runs ACROSS it. Bricks' own default is
	   align-items: center, which does nothing while a child is full width and
	   silently centres it the moment one is capped: the copy came out 620px
	   wide starting at x=607, sitting on top of the photograph, with the whole
	   left half of the band empty. */
	align-items: flex-start;
	justify-content: center;
	min-height: calc(var(--mimi-hero-on, 0) * clamp(480px, 40vw, 680px));
	/* The panel is inset to the right edge and masked, so nothing escapes; this
	   is here for the narrow case, where it is the full width and a hair taller
	   than the padding reserved for it. */
	overflow: hidden;
	position: relative;
}

/* THE PHOTOGRAPH IS A PANEL, NOT THE BAND'S OWN BACKGROUND, which is the whole
   design decision on this page. The archive band lays the picture across the
   full width and drops the type onto it behind a scrim. That works there
   because the archive banners put their subject right of centre and the scrim
   falls on empty mountain. It does not work here: this page's picture is five
   people walking abreast across the middle of the frame, and a scrim heavy
   enough to carry an eyebrow, an h1, a lede, a proof line and two buttons would
   have to be laid over three of the five garments the page is selling.

   So the picture keeps the right-hand 58% at full brightness, the copy keeps
   the left on the page's own background, and the two meet at a mask rather than
   at an edge. Nothing is dimmed and nothing is cropped in half.

   WIDTH IS A FRACTION OF THE BAND, NOT THE IMAGE'S OWN RATIO. Writing
   `aspect-ratio` here would scale the panel to the picture and leave no crop at
   all, which is prettier until the day somebody wires a 16:9 banner to this
   page instead of a 3:2 one and the panel changes width on its own. At 58% of
   an 1850px band the panel is 1073x680, which is within 2% of the source ratio,
   so on Andrew's screen `cover` is taking almost nothing off the sides. */
.tp-hero::after {
	background-image: var(--mimi-hero, none);
	background-position: 50% var(--mimi-hero-focus, 45%);
	background-repeat: no-repeat;
	background-size: cover;
	bottom: 0;
	content: "";
	/* The mask, and not a gradient painted over the top. A dark gradient would
	   be the page's near-black over the photograph, which reads as a veil on a
	   bright lawn however carefully it is tuned. A mask takes the panel's own
	   alpha down instead, so the picture dissolves into the page rather than
	   being covered up by it. 26% is about 280px at 1850, which clears the
	   left-hand figure by a comfortable margin. */
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
	mask-image: linear-gradient(to right, transparent 0%, #000 26%);
	opacity: var(--mimi-hero-on, 0);
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	width: clamp(420px, 58%, 1180px);
}

/* An absolutely positioned pseudo-element paints above its own element's
   in-flow children, so without a stacking context of its own the copy would sit
   under the photograph. It is the same trick the archive band's inner needs,
   for the same reason. */
.tp-hero > .tp-copy {
	/* 660 and not the 72ch the other sections use. The cap here is not about
	   the measure, it is the distance to the photograph: the panel starts at
	   42% of the band and its mask is transparent for the first quarter of
	   that, so the copy has about 700px before it reaches anything solid. */
	max-width: min(660px, 100%);
	position: relative;
	z-index: 1;
}

/* No max-width here. The grid column is the measure, and a ch cap on the wrapper
   is read against the wrapper's own font-size, which made the column 433px of
   its 833px and wrapped the heading onto four lines. The paragraphs cap
   themselves. */
.tp-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/*
 * THE HAIRLINE THE CONTENT PAGES NOW CLOSE THEIR BANDS WITH.
 *
 * Every static page from the legals to the enquiry forms ends its band on a
 * copper rule that fades out to the right (assets/page-hero.css). This page is
 * built in Bricks and gets none of that sheet, so without this it would be the
 * one band on the site that stops without saying so. A pseudo-element rather
 * than an element, because the markup is a Bricks tree and this is furniture
 * rather than content.
 *
 * Full width of the copy column and not of the band: on the content pages the
 * rule runs the width of a 820px block, and here the block is 660.
 */
.tp-hero .tp-copy::after {
	background: linear-gradient(to right, var(--copper, #BB8335) 0%, rgba(187, 131, 53, .12) 46%, transparent 100%);
	content: "";
	display: block;
	height: 1px;
	margin-top: 36px;
	width: 100%;
}

/* An 834px column is not a measure. The paragraphs cap themselves, each against
   its own font-size, which is the thing a ch unit on the wrapper could not do. */
.tp-copy > p:not(.tp-fact):not(.tp-lede) {
	max-width: 72ch;
}

.tp-fact {
	margin: 26px 0 0;
	max-width: none;
	color: color-mix(in srgb, var(--bone) 56%, transparent);
	line-height: 2;
}

.tp-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 26px;
	margin-top: 34px;
}

/* A second way out that does not compete with the first. */
.tp-quiet {
	color: color-mix(in srgb, var(--bone) 62%, transparent);
	border-bottom: 1px solid transparent;
	transition: color 150ms ease-out, border-color 150ms ease-out;
}

.tp-quiet:hover,
.tp-quiet:focus-visible {
	color: var(--copper);
	border-bottom-color: var(--copper);
}

/* ============================================================
   Shared section furniture
   ============================================================ */

.tp-head {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: .01em;
	margin: 14px 0 0;
	max-width: 18ch;
}

.tp-lede {
	margin-top: 20px;
	max-width: 62ch;
}

/* ============================================================
   What a team looks like
   ============================================================ */

.tp-work__demo {
	background: color-mix(in srgb, var(--bone) 5%, transparent);
	border: 1px solid color-mix(in srgb, var(--bone) 12%, transparent);
	padding: 32px 34px;
}

.tp-demo__label {
	display: block;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bone) 44%, transparent);
	margin-bottom: 6px;
}

.tp-demo__name {
	font-family: var(--font-display);
	font-size: 23px;
	line-height: 1.2;
}

.tp-demo__team {
	margin: 0 0 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid color-mix(in srgb, var(--bone) 12%, transparent);
}

.tp-demo__areas,
.tp-demo__rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* The indent and the rule are the point: three levels have to look like three
   levels, because that is the thing the section is explaining. */
.tp-demo__area {
	position: relative;
	padding-left: 22px;
	border-left: 1px solid color-mix(in srgb, var(--copper) 46%, transparent);
}

.tp-demo__area + .tp-demo__area {
	margin-top: 26px;
}

.tp-demo__area > .tp-demo__name {
	font-size: 21.5px;
}

.tp-demo__head {
	display: block;
	font-size: 13px;
	line-height: 1.6;
	margin-top: 4px;
	color: color-mix(in srgb, var(--bone) 44%, transparent);
}

.tp-demo__rows {
	margin-top: 14px;
	padding-left: 20px;
	border-left: 1px solid color-mix(in srgb, var(--bone) 12%, transparent);
}

.tp-demo__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 7px 0;
	font-size: 15px;
}

.tp-demo__qty {
	font-family: var(--font-display);
	font-size: 17px;
	min-width: 22px;
	color: var(--copper);
}

.tp-demo__who {
	color: color-mix(in srgb, var(--bone) 74%, transparent);
}

/* ============================================================
   The range
   ============================================================ */

/* The heading is capped at 18ch, so stacked it left a half-width band of nothing
   above a grid that uses the whole width. The lede moves up beside it.
   grid-column: 1 / -1 is safe here where grid-row: 1 / -1 was not, because the
   COLUMN tracks are explicit and -1 therefore means what it looks like. */
.brxe-section.tp-strip {
	display: grid;
	grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
	column-gap: clamp(40px, 5vw, 88px);
	row-gap: 0;
}

.tp-strip > .mc-collection__eyebrow {
	grid-column: 1;
	grid-row: 1;
}

.tp-strip > .tp-head {
	grid-column: 1;
	grid-row: 2;
}

.tp-strip > .tp-lede {
	grid-column: 2;
	grid-row: 2;
	align-self: end;
	margin-top: 0;
}

.tp-strip__row {
	grid-column: 1 / -1;
	grid-row: 3;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin-top: 44px;
}

.tp-strip__item {
	display: block;
}

.tp-strip__shot {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	transition: opacity 200ms ease-out;
}

.tp-strip__item:hover .tp-strip__shot,
.tp-strip__item:focus-visible .tp-strip__shot {
	opacity: .78;
}

.tp-strip__name {
	display: block;
	margin-top: 12px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bone) 62%, transparent);
	transition: color 150ms ease-out;
}

.tp-strip__item:hover .tp-strip__name,
.tp-strip__item:focus-visible .tp-strip__name {
	color: var(--copper);
}

/* ============================================================
   Sizes and cloth
   ============================================================ */

/* This section was the worst of it: 68ch of copy on an 1835px canvas left 1209px
   of empty page beside it, which is more dead width than everything else on the
   page put together. The cloth goes in it. */
/* 620px, not half. Body copy here is 13px, so a readable measure is about 390px
   and a heading about 510px: half of 1755px is 834px and no amount of text fills
   it. Splitting the band by what each side actually needs is what closes the gap
   in the middle, and it hands the extra 214px to the photographs. */
.brxe-section.tp-size {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	column-gap: clamp(40px, 5vw, 88px);
	align-items: center;
}

.tp-size__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.tp-size__copy .brxe-button {
	margin-top: 30px;
}

/* THE GROUP SHOT. Eleven people in eleven garments, which is the argument this
   whole page is making, so it gets the room: 520px for the copy and the
   remaining 1147px for the photograph. Narrower than that and eleven people are
   90px each and the picture stops being readable as people.

   The class is ON the img, not on a wrapper. A Bricks image element's root tag
   IS the image, so _cssClasses lands there and a `.tp-group img` selector
   matches nothing at all.

   IT IS THE SAME LINE-UP THE BAND COULD HAVE USED, and deliberately not used
   there: eleven different bodies in one cloth is this section's argument and
   would have been spent as decoration at the top of the page. */
img.tp-group {
	display: block;
	width: 100%;
	height: auto;
}

/* ============================================================
   Closing
   ============================================================ */

/* The closing section is a text-align:center block, so its button and this link
   flow on one line. margin-top does nothing to an inline box; the gap is the
   thing that was missing. */
.mc-closing .tp-quiet {
	margin-left: 24px;
}

/* ============================================================
   Narrower
   ============================================================ */

@media (max-width: 1100px) {
	.tp-strip__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* THE BAND TURNS BEFORE THE PAGE DOES. Side by side, the panel is 58% of the
   band and the copy has the rest; at 1100 that leaves the copy 420px for an h1
   that wants 620, and the two start fighting well before the one-column rule at
   1000 would rescue them. So the photograph goes over the copy here, full
   width, and the band becomes a header rather than a split.

   The height is reserved as PADDING on the section and the panel is drawn into
   it, because a pseudo-element is out of flow and cannot push the copy down.
   Both halves of that multiply by the same switch, so a page with no banner
   keeps the section's ordinary 60px and no gap appears where a picture is not.

   Bottom-to-top mask this time: the photograph is above the copy rather than
   beside it, so the edge that has to dissolve is the bottom one. */
@media (max-width: 1100px) {
	.brxe-section.mc-section.tp-hero {
		--tp-band: clamp(200px, 56vw, 420px);

		justify-content: flex-start;
		min-height: 0;
		padding-top: calc(var(--mimi-hero-on, 0) * var(--tp-band) + 56px);
	}

	.tp-hero::after {
		bottom: auto;
		height: calc(var(--mimi-hero-on, 0) * var(--tp-band) + 24px);
		-webkit-mask-image: linear-gradient(to top, transparent 0%, #000 30%);
		mask-image: linear-gradient(to top, transparent 0%, #000 30%);
		width: 100%;
	}

	.tp-hero > .tp-copy {
		max-width: none;
	}
}

/* ONE collapse point, not two. The strip and the sizes section used to go single
   column at 1000 while the hero and the work section held on to 900, so between
   those two widths the page was half collapsed and the hero photographs were
   182px wide. */
@media (max-width: 1000px) {
	.brxe-section.mc-section:has(> .tp-work__demo),
	.brxe-section.tp-strip,
	.brxe-section.tp-size {
		grid-template-columns: minmax(0, 1fr);
	}

	.tp-copy {
		max-width: none;
	}

	.tp-work__demo {
		margin-top: 36px;
	}

	.tp-strip > .mc-collection__eyebrow,
	.tp-strip > .tp-head,
	.tp-strip > .tp-lede,
	.tp-strip__row {
		grid-column: 1;
		grid-row: auto;
	}

	.tp-strip > .tp-lede {
		margin-top: 20px;
	}

	.tp-group {
		margin-top: 40px;
	}
}

@media (max-width: 640px) {
	.tp-strip__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}


	.tp-work__demo {
		padding: 24px 22px;
	}
}
