/* HER Digital Incubator: lookbook-only styles. Same Paper canvas, same tokens. */

/* ---------- Lookbook header and section nav ---------- */
.lb-top { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.lb-top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-5); padding-top: 14px; }
.lb-top__back { font-size: 0.875rem; }
.lb-top__brand { display: inline-flex; align-items: center; gap: var(--s-4); text-decoration: none; }
.lb-top__brand img { width: 200px; height: auto; }
.lb-top__brand span { font-size: 0.8125rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.lb-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
.lb-nav::-webkit-scrollbar { display: none; }
.lb-nav ol { display: flex; gap: 6px; padding-block: 10px; }
.lb-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border-radius: var(--pill);
  background: var(--fill);
  color: var(--deep);
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lb-nav a span { font-family: var(--font-display); font-size: 0.6875rem; color: var(--teal); }
.lb-nav a:hover { background: var(--blush); }
.lb-nav a[aria-current="true"] { background: var(--deep); color: var(--paper); }
.lb-nav a[aria-current="true"] span { color: var(--paper); }

/* ---------- Cover ---------- */
.lb-cover { padding-top: clamp(48px, 3rem + 4vw, 128px); padding-bottom: var(--section); }
.lb-cover h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.04em; max-width: 12ch; }
.lb-cover__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-7); }
.lb-cover__meta dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); }
.lb-cover__meta dd { margin: 4px 0 0; font-weight: 600; color: var(--deep); }

/* ---------- Chapter heads ---------- */
.chapter { padding-block: var(--section); scroll-margin-top: 140px; }
.chapter__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-4); margin-bottom: clamp(48px, 3rem + 2vw, 96px); align-items: end; }
.chapter__num { grid-column: 1 / span 2; font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; color: var(--teal); }
.chapter__title { grid-column: 3 / span 6; }
.chapter__title h2 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.035em; }
.chapter__intro { grid-column: 9 / -1; color: var(--text-2); }
.sub { margin-top: clamp(64px, 4rem + 2vw, 120px); }
.sub:first-of-type { margin-top: 0; }
.sub__head { margin-bottom: var(--s-6); }
.sub__head h3 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.1; }
.sub__head p { margin-top: var(--s-4); color: var(--text-2); }

/* Generic tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: var(--s-6); border-radius: var(--radius); background: var(--fill); }
.tile h4 { margin-bottom: var(--s-3); }
.tile p { font-size: var(--fs-small); color: var(--text-2); }
.tile .k { display: block; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--teal); margin-bottom: var(--s-3); }
.tile--plain { background: none; padding: 0; }
.big-quote { font-family: var(--font-display); font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; color: var(--deep); max-width: 30ch; }
.trait-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Logo stage ---------- */
.stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--fill);
}
.stage--paper { background: var(--fill); }
.stage--deep { background: var(--deep); }
.stage--teal { background: var(--teal); }
.stage img { width: 100%; height: auto; }
.stage--tall { min-height: 420px; }
.caption { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); font-size: 0.9375rem; }
.caption b { color: var(--deep); }
.caption span { color: var(--text-2); }

/* Clear space diagram */
.clearspace { position: relative; display: inline-block; padding: 34px; border-radius: 4px; background: var(--blush); }
.clearspace img { position: relative; width: min(560px, 60vw); }
.clearspace__x { position: absolute; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: var(--deep); }
.clearspace__x--t { top: 0; left: 50%; height: 34px; transform: translateX(-50%); }
.clearspace__x--l { left: 0; top: 50%; width: 34px; transform: translateY(-50%); }

/* Minimum sizes */
.minsizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-8); }
.minsizes figure { margin: 0; }
.minsizes figcaption { margin-top: var(--s-3); font-size: 0.875rem; color: var(--text-2); }
.minsizes figcaption b { display: block; color: var(--deep); }

/* Placement */
.placement { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--fill); }
.placement img { position: absolute; width: 34%; }
.placement .tl { left: 7%; top: 9%; }
.placement .bl { left: 7%; bottom: 9%; }
.placement .c { left: 33%; top: 50%; transform: translateY(-50%); }
.placement--no .c { left: auto; right: 3%; top: auto; bottom: 3%; width: 22%; transform: rotate(-12deg); }

/* Misuse */
.misuse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.misuse figure { margin: 0; }
.misuse__stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 28px; border-radius: var(--radius); background: var(--fill); overflow: hidden; }
.misuse__stage img { width: 86%; }
.misuse__x { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; }
.misuse__x path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; }
.misuse figcaption { margin-top: var(--s-3); font-size: 0.9375rem; font-weight: 600; color: var(--deep); }
.m-stretch img { transform: scaleX(1.35) scaleY(0.7); }
.m-rotate img { transform: rotate(-9deg); }
.m-recolour img { filter: hue-rotate(150deg) saturate(1.6); }
.m-red { background: var(--red) !important; }
.m-outline img { opacity: 0.35; }
.m-font { font-family: Georgia, serif; font-size: clamp(1rem, 0.7rem + 1vw, 1.5rem); font-weight: 700; letter-spacing: 0.04em; }
.m-font .r { color: var(--red); font-style: italic; }
.m-font .t { color: var(--teal); }

/* ---------- Colour ---------- */
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.swatch__chip { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); margin-bottom: var(--s-4); }
.swatch__chip--paper { background: var(--paper); box-shadow: inset 0 0 0 2px var(--oat); }
.swatch h4 { margin-bottom: var(--s-1); }
.swatch .role { display: block; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--teal); margin-bottom: var(--s-2); }
.swatch dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: var(--s-3) 0; font-size: 0.875rem; }
.swatch dt { font-weight: 700; color: var(--deep); }
.swatch dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.swatch p { font-size: 0.9375rem; color: var(--text-2); }
.swatches--tints { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swatches--tints .swatch__chip { aspect-ratio: 16 / 7; border-radius: var(--pill); }

.proportion { display: flex; height: 64px; border-radius: var(--pill); overflow: hidden; }
.proportion span { display: flex; align-items: center; padding-left: 18px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; overflow: hidden; }

.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pair { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: var(--s-5); border-radius: var(--radius); }
.pair__aa { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.pair__info { font-size: 0.875rem; font-weight: 700; }
.pair--bad { position: relative; }
.pair--bad .misuse__x { top: 14px; }

/* ---------- Type ---------- */
.specimen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-5); align-items: end; padding-block: var(--s-6); }
.specimen__aa { grid-column: 1 / span 4; font-size: clamp(5rem, 3rem + 7vw, 11rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--deep); }
.specimen__info { grid-column: 5 / -1; }
.specimen__info h3 { margin-bottom: var(--s-3); }
.specimen__chars { margin-top: var(--s-4); font-size: 1.25rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.f-display { font-family: var(--font-display); font-weight: 600; }
.f-body { font-family: var(--font-body); font-weight: 500; }
.f-hand { font-family: var(--font-hand); color: var(--red); }

.weights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.weights div { padding: var(--s-5); border-radius: var(--radius); background: var(--fill); }
.weights b { display: block; font-size: 2.25rem; line-height: 1.1; color: var(--deep); }
.weights span { font-size: 0.875rem; color: var(--text-2); }

.tile .h2 { font-size: var(--fs-h2); color: var(--head); }
.tile .lead { font-size: var(--fs-lead); color: var(--text); }
.scale > li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--gap); align-items: baseline; padding-block: var(--s-4); }
.scale .spec { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); line-height: 1.4; }
.scale .spec b { display: block; font-size: 0.875rem; color: var(--deep); }
.scale .sample { min-width: 0; overflow-wrap: break-word; }

/* ---------- Visual language ---------- */
.photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: var(--s-5); border-radius: 999px 999px var(--radius) var(--radius); background: var(--deep); color: var(--paper); overflow: hidden; }
.photo--teal { background: var(--teal); }
.photo--oat { background: var(--fill); color: var(--deep); }
.photo svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo .cap { position: relative; font-size: 0.875rem; font-weight: 700; }
.photo .tag { position: relative; align-self: flex-start; margin-bottom: var(--s-3); }
.do-dont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.do-dont h4 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.do-dont h4 .dotk { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.do-dont h4 .dotx { width: 14px; height: 14px; border-radius: 50%; background: var(--red); }

.graphic-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: var(--s-6); border-radius: var(--radius); background: var(--fill); overflow: hidden; }
.graphic-tile .lanes, .graphic-tile .tracks { max-height: 100%; }
.graphic-tile .demo-word { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; color: var(--deep); }

.icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-3); border-radius: var(--radius); background: var(--fill); font-size: 0.8125rem; font-weight: 600; color: var(--deep); text-align: center; }
.icon-cell svg { width: 40px; height: 40px; fill: none; stroke: var(--deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-cell svg .acc { stroke: var(--red); }
.app-icons { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: flex-end; }
.app-icons img { border-radius: 22%; }

/* ---------- Digital ---------- */
.grid-demo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); height: 180px; }
.grid-demo span { border-radius: var(--radius); background: var(--blush); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 0.75rem; font-weight: 700; color: var(--deep); }
.grid-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s-6); }
.grid-specs b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--deep); letter-spacing: -0.03em; }
.grid-specs span { font-size: 0.875rem; color: var(--text-2); }

.spacing > li { display: grid; grid-template-columns: 90px 70px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding-block: 6px; font-size: 0.875rem; }
.spacing b { color: var(--deep); }
.spacing span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.spacing i { display: block; max-width: 100%; height: 14px; border-radius: var(--pill); background: var(--teal); }

.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.demo-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) var(--s-6); border-radius: var(--radius); background: var(--fill); }
.demo-nav img { width: min(190px, 50%); }
.demo-nav ul { display: flex; gap: var(--s-5); }
.demo-nav li { font-size: 0.875rem; font-weight: 600; color: var(--deep); }
.demo-nav li.on { box-shadow: inset 0 -3px 0 var(--red); }
.demo-form { max-width: 560px; }
.demo-form .input { background: var(--paper); }
.demo-form .select { background-color: var(--paper); }
.bp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bp__frame { display: flex; gap: 6px; height: 120px; padding: 12px; border-radius: var(--radius); background: var(--fill); margin-bottom: var(--s-4); }
.bp__frame span { flex: 1; border-radius: 4px; background: var(--blush); }
.bp__frame--m { width: 40%; }
.bp__frame--t { width: 70%; }

/* ---------- Voice ---------- */
.say { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.say ul li { padding-block: var(--s-3); font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; color: var(--deep); }
.say .no li { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.headlines > li { padding-block: var(--s-4); }
.headlines .h2 { max-width: 22ch; }
.headlines .meta { display: block; margin-top: var(--s-2); }
.words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.words .pill--no { background: var(--blush); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.swap > li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding-block: 10px; font-size: var(--fs-small); }
.swap s { color: var(--text-2); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.swap b { color: var(--deep); }

/* ---------- Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.app { grid-column-end: span 6; }
.app--wide { grid-column: 1 / -1; }
.app--third { grid-column-end: span 4; }
.app__frame { display: flex; align-items: center; justify-content: center; gap: var(--s-5); padding: clamp(20px, 4vw, 56px); border-radius: var(--radius); background: var(--fill); overflow: hidden; }
.app__frame--col { flex-direction: column; }
.app figcaption, .app .caption { margin-top: var(--s-3); }

/* Website thumbnail */
.site-thumb { width: 100%; max-width: 980px; border-radius: 10px; background: var(--paper); overflow: hidden; }
.site-thumb__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--oat); }
.site-thumb__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); }
.site-thumb__body { padding: clamp(16px, 3vw, 36px); }
.site-thumb__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(20px, 4vw, 48px); }
.site-thumb__nav img { width: clamp(110px, 18vw, 180px); }
.site-thumb__nav ul { display: flex; gap: 14px; font-size: 0.6875rem; font-weight: 700; color: var(--deep); }
.site-thumb__nav .btn { min-height: 26px; padding: 0 12px; font-size: 0.6875rem; }
.site-thumb__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.site-thumb__hero h4 { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2.6vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; color: var(--deep); }
.site-thumb__hero p { margin-top: 12px; font-size: 0.8125rem; color: var(--text-2); }

/* Business card */
.bcard { position: relative; width: min(100%, 350px); aspect-ratio: 3.5 / 2; padding: 22px 24px; border-radius: 8px; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.bcard--front { background: var(--deep); }
.bcard--front .lanes { position: absolute; right: -26%; bottom: -34%; width: 72%; }
.bcard--front .lanes .ln { stroke: var(--teal); }
.bcard--front img { position: relative; width: 70%; }
.bcard--front .tagline { position: relative; font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; color: var(--paper); letter-spacing: -0.02em; }
.bcard--back img { width: 46%; }
.bcard__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--deep); letter-spacing: -0.02em; }
.bcard__role { font-size: 0.75rem; color: var(--text-2); margin-top: 2px; }
.bcard__lines { font-size: 0.6875rem; line-height: 1.5; color: var(--ink); }

/* Email signature */
.sig { width: 100%; max-width: 520px; padding: 24px 28px; border-radius: 8px; background: var(--paper); font-size: 0.875rem; }
.sig__msg { color: var(--text-2); margin-bottom: 18px; }
.sig__name { font-weight: 700; color: var(--deep); }
.sig__role { color: var(--text-2); }
.sig img { width: 180px; margin: 14px 0 10px; }
.sig__links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; font-weight: 600; color: var(--deep); }
.sig__note { margin-top: 12px; font-size: 0.75rem; color: var(--text-2); }

/* Slide */
.slide { position: relative; width: 100%; max-width: 980px; aspect-ratio: 16 / 9; padding: clamp(16px, 4%, 44px); border-radius: 8px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.slide__top { display: flex; justify-content: space-between; align-items: center; font-size: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.slide__top img { width: clamp(80px, 14vw, 150px); }
.slide__body { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; flex: 1; }
.slide__body h4 { font-family: var(--font-display); font-size: clamp(1rem, 0.6rem + 2.2vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; color: var(--deep); }
.slide__stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 2vw, 24px); }
.slide__stats b { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 0.8rem + 2.4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--teal); }
.slide__stats span { font-size: clamp(0.5625rem, 0.45rem + 0.4vw, 0.8125rem); color: var(--text-2); }

/* Social post */
.social { position: relative; width: min(100%, 360px); aspect-ratio: 1; padding: 26px; border-radius: 8px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.social--deep { background: var(--deep); }
.social .lanes { position: absolute; left: 6%; right: 6%; top: 10%; width: 88%; }
.social h4 { position: relative; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; color: var(--deep); }
.social--deep h4 { color: var(--paper); }
.social img { position: relative; width: 52%; }
.social .note { position: absolute; right: 22px; top: 22px; font-size: 1.375rem; }

/* Memo */
.memo { width: min(100%, 420px); aspect-ratio: 1 / 1.414; padding: 32px 34px; border-radius: 6px; background: var(--paper); font-size: 0.6875rem; line-height: 1.5; color: var(--ink); display: flex; flex-direction: column; }
.memo img { width: 150px; margin-bottom: 24px; }
.memo__k { font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.memo h4 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--deep); margin-bottom: 14px; }
.memo dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; background: var(--fill); }
.memo dt { font-weight: 700; color: var(--deep); }
.memo dd { margin: 0; }
.memo p { margin-bottom: 8px; max-width: none; }
.memo__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.5625rem; color: var(--text-2); }

/* Pitch deck cover */
.deck { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; padding: 6%; border-radius: 8px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.deck .tracks { position: absolute; right: -30%; top: 46%; width: 72%; transform: translateY(-50%); }
.deck__meta { max-width: 52%; }
.deck img { position: relative; width: 34%; }
.deck h4 { position: relative; font-family: var(--font-display); font-size: clamp(1rem, 0.6rem + 1.8vw, 2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; color: var(--deep); max-width: 13ch; }
.deck__meta { position: relative; font-size: clamp(0.5625rem, 0.45rem + 0.3vw, 0.75rem); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--gap); }
.rule h4 { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-3); font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.02em; color: var(--deep); }
.rule h4 span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--teal); color: var(--paper); font-size: 0.75rem; }
.rule ul li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: var(--fs-small); color: var(--text-2); }
.rule ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 5px; border-radius: var(--pill); background: var(--teal); }
.rule--no ul li::before { background: var(--red); }

.lb-end { padding-block: var(--section); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles--4, .weights, .grid-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app--third { grid-column-end: span 6; }
  .lb-top__brand span { display: none; }
}
@media (max-width: 900px) {
  .chapter__head { grid-template-columns: 1fr; }
  .chapter__num, .chapter__title, .chapter__intro { grid-column: 1 / -1; }
  .tiles, .misuse, .pairs, .bp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specimen { grid-template-columns: 1fr; }
  .specimen__aa, .specimen__info { grid-column: 1 / -1; }
  .app, .app--third { grid-column: 1 / -1; }
  .say, .words, .rules, .do-dont { grid-template-columns: 1fr; }
  .grid-demo { grid-template-columns: repeat(6, minmax(0, 1fr)); height: 120px; }
  .grid-demo span:nth-child(n+7) { display: none; }
  .demo-nav ul { display: none; }
}
@media (max-width: 600px) {
  .tiles, .tiles--2, .tiles--4, .misuse, .pairs, .swatches--tints, .weights, .bp { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .h2 { font-size: var(--fs-h2); color: var(--head); }
.tile .lead { font-size: var(--fs-lead); color: var(--text); }
.scale > li { grid-template-columns: 1fr; gap: 6px; }
  .site-thumb__nav ul { display: none; }
  .site-thumb__hero, .slide__body { grid-template-columns: 1fr; }
  .site-thumb__hero .lanes { display: none; }
  .slide__body .slide__stats { display: none; }
  .clearspace img { width: 64vw; }
  .placement img { width: 46%; }
  .lb-top__brand img { width: 170px; }
  .demo-nav { padding: var(--s-3) var(--s-4); }
  .spacing > li { grid-template-columns: 70px 56px minmax(0, 1fr); }
  .swap > li { grid-template-columns: 1fr; gap: 2px; }
  .swap > li > span:nth-child(2) { display: none; }
}

/* Small screens: the narrow proportion segments keep their colour; labels sit in the aria-label */
@media (max-width: 600px) {
  .proportion span { padding-left: 0; font-size: 0; }
  .proportion span:first-child { padding-left: 18px; font-size: 0.8125rem; }
}
