/* Brand kit: the light "Canvas" pages (Logo, Colour, Typography). Loads after styles.css. */
body.brand {
  --canvas: #FDFFF3;
  --rule: #DAD9C6;
  --rule-soft: #EBECDC;
  --ink: #242D24;
  --ink-2: #4F5548;
  background: var(--canvas); color: var(--ink);
}

.bk-side {
  position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 5;
  display: flex; flex-direction: column;
  padding: 32px 28px; border-right: 1px solid var(--rule); background: var(--canvas);
}
.bk-side .logo { color: var(--ink); }
.bk-side .logo__mark { width: 32px; height: 32px; }
.bk-side .logo__word { font-size: 21px; }
.bk-nav { margin-top: 52px; }
.bk-group { border-bottom: 1px solid var(--rule); }
.bk-group > a, .bk-group > button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  height: 42px; font-size: 15px; text-align: left;
}
.bk-group > a::after { content: "+"; color: var(--ink-2); }
.bk-group.open > a::after { content: "−"; }
.bk-sub { display: grid; padding: 4px 12px 16px; }
.bk-group:not(.open) .bk-sub { display: none; }
.bk-sub a { line-height: 29px; color: var(--ink-2); width: fit-content; transition: color .2s; }
.bk-sub a:hover, .bk-sub a.active { color: var(--ink); }
.bk-side .bk-kit { margin-top: auto; align-self: flex-start; }

.bk-main { margin-left: 268px; padding: 0 72px 40px; max-width: 1180px; }
.bk-sec {
  display: grid; grid-template-columns: 360px 1fr; column-gap: 0;
  padding: 56px 0; border-top: 1px solid var(--rule-soft); scroll-margin-top: 0;
}
.bk-sec:first-child { border-top: 0; padding-top: 120px; }
.bk-sec h1 { font-size: 42px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.bk-sec h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.bk-sec__body { min-width: 0; }
.bk-desc { max-width: 460px; color: var(--ink-2); line-height: 19px; }
.bk-desc + .bk-desc { margin-top: 12px; }

.btn--ink { background: var(--ink); color: var(--ph-glade); height: 48px; padding: 0 20px; gap: 10px; margin-top: 26px; }
.btn--ink:hover { background: #313C31; }
.btn--soft { background: #E3E3D4; color: var(--ink); height: 46px; padding: 0 20px; }
.btn--soft:hover { background: #D8D8C6; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.stage {
  margin-top: 32px; background: var(--ph-clearing); border-radius: 6px;
  height: 420px; display: grid; place-items: center; overflow: hidden; position: relative;
}
.stage img { display: block; }
.stage--mark img { width: 176px; }
.lockup-lg { width: 400px; }

/* Clear space guide */
.clear { position: relative; padding: 26px; border: 1px solid #9C9C94; }
.clear::before { content: ""; position: absolute; inset: 26px; border: 1px solid #9C9C94; pointer-events: none; }
.clear img { width: 414px; display: block; }
.clear i { position: absolute; width: 26px; height: 26px; display: grid; place-items: center; }
.clear i::before {
  content: ""; width: 18px; height: 18px;
  background: #8C8C85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 179.5 176%22 fill=%22%23000000%22%3E%3Cg transform=%22scale%288.37079%29%22%3E%3Cpath d=%22M8.96014 18.5663C9.69651 17.1278 11.7523 17.1278 12.4887 18.5663L13.7159 20.9635C13.6419 20.985 13.5676 21.0056 13.493 21.0255L12.3133 19.4433C11.5207 18.3804 9.9281 18.3804 9.1355 19.4433L7.95579 21.0255C7.88119 21.0056 7.80691 20.9849 7.73296 20.9635L8.96014 18.5663Z%22/%3E%3Cpath d=%22M8.96016 12.1416C9.69652 10.7032 11.7523 10.7032 12.4887 12.1416L16.3925 19.7677C16.2676 19.8456 16.141 19.9211 16.0127 19.9939L12.3133 15.0326C11.5207 13.9696 9.9281 13.9696 9.1355 15.0326L5.43612 19.9939C5.30783 19.9211 5.1812 19.8456 5.05627 19.7677L8.96016 12.1416Z%22/%3E%3Cpath d=%22M8.96016 4.66628C9.69653 3.22782 11.7523 3.22783 12.4887 4.66629L19.0307 17.446C18.9494 17.5455 18.8663 17.6435 18.7815 17.74L12.3133 9.06539C11.5207 8.0024 9.9281 8.0024 9.1355 9.06539L2.66738 17.74C2.58255 17.6435 2.49943 17.5455 2.41806 17.446L8.96016 4.66628Z%22/%3E%3Cpath d=%22M11.8893 1.61295e-05C17.2643 0.580605 21.4488 5.13257 21.4488 10.6619C21.4488 11.2778 21.3969 11.8815 21.2972 12.469L12.3133 0.420417C12.1895 0.254328 12.0461 0.114203 11.8893 1.61295e-05Z%22/%3E%3Cpath d=%22M9.55953 0C9.40273 0.114188 9.25935 0.254324 9.1355 0.420417L0.151634 12.4689C0.0519477 11.8815 0 11.2777 0 10.6619C0 5.15541 4.15001 0.618222 9.49296 0.00740346L9.55953 0Z%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 179.5 176%22 fill=%22%23000000%22%3E%3Cg transform=%22scale%288.37079%29%22%3E%3Cpath d=%22M8.96014 18.5663C9.69651 17.1278 11.7523 17.1278 12.4887 18.5663L13.7159 20.9635C13.6419 20.985 13.5676 21.0056 13.493 21.0255L12.3133 19.4433C11.5207 18.3804 9.9281 18.3804 9.1355 19.4433L7.95579 21.0255C7.88119 21.0056 7.80691 20.9849 7.73296 20.9635L8.96014 18.5663Z%22/%3E%3Cpath d=%22M8.96016 12.1416C9.69652 10.7032 11.7523 10.7032 12.4887 12.1416L16.3925 19.7677C16.2676 19.8456 16.141 19.9211 16.0127 19.9939L12.3133 15.0326C11.5207 13.9696 9.9281 13.9696 9.1355 15.0326L5.43612 19.9939C5.30783 19.9211 5.1812 19.8456 5.05627 19.7677L8.96016 12.1416Z%22/%3E%3Cpath d=%22M8.96016 4.66628C9.69653 3.22782 11.7523 3.22783 12.4887 4.66629L19.0307 17.446C18.9494 17.5455 18.8663 17.6435 18.7815 17.74L12.3133 9.06539C11.5207 8.0024 9.9281 8.0024 9.1355 9.06539L2.66738 17.74C2.58255 17.6435 2.49943 17.5455 2.41806 17.446L8.96016 4.66628Z%22/%3E%3Cpath d=%22M11.8893 1.61295e-05C17.2643 0.580605 21.4488 5.13257 21.4488 10.6619C21.4488 11.2778 21.3969 11.8815 21.2972 12.469L12.3133 0.420417C12.1895 0.254328 12.0461 0.114203 11.8893 1.61295e-05Z%22/%3E%3Cpath d=%22M9.55953 0C9.40273 0.114188 9.25935 0.254324 9.1355 0.420417L0.151634 12.4689C0.0519477 11.8815 0 11.2777 0 10.6619C0 5.15541 4.15001 0.618222 9.49296 0.00740346L9.55953 0Z%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.clear i:nth-of-type(1) { top: 0; left: 0; }
.clear i:nth-of-type(2) { top: 0; right: 0; transform: rotate(-90deg); }
.clear i:nth-of-type(3) { bottom: 0; left: 0; transform: rotate(90deg); }
.clear i:nth-of-type(4) { bottom: 0; right: 0; }

.partner { display: flex; align-items: center; gap: 48px; }
.partner img { width: 300px; }
.partner hr { width: 1.5px; height: 68px; margin: 0; border: 0; background: var(--ink); }
.partner span { font-size: 42px; font-weight: 500; letter-spacing: -0.04em; color: #4B4A2B; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
figure.tile-l { margin: 0; min-width: 0; }
.tile-l .face {
  height: 218px; border-radius: 6px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--ph-clearing);
}
.tile-l .face img { width: 222px; }
.tile-l figcaption { margin-top: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.ok::before { content: "✓"; color: var(--ink); }
.no::before { content: "✕"; color: var(--ph-signal-red); }
.wrong::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - .75px), var(--ph-signal-red) 50%, transparent calc(50% + .75px));
}
.wrong.flip::after { background: linear-gradient(to bottom left, transparent calc(50% - .75px), var(--ph-signal-red) 50%, transparent calc(50% + .75px)); }

.retype { display: flex; align-items: center; gap: 8px; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.tile-l .face .retype img { width: 54px; }
.squash { transform: scale(1.36, .42); }
.rotate { transform: rotate(-20deg); }
.effect { filter: drop-shadow(3px 5px 4px rgba(0, 0, 0, .35)); }
.boxed { border: 2px solid var(--ink); border-radius: 6px; padding: 16px 22px; }
.tile-l .face .boxed img { width: 200px; }

/* Colour */
.swatch {
  height: 216px; border-radius: 10px; padding: 16px 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.swatch:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(36, 45, 36, .5); }
.swatch b { display: block; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.swatch small { display: block; margin-top: 4px; font-size: 14px; opacity: .85; }
.swatch dl { margin: 0; font-size: 13px; line-height: 16px; }
.swatch dl div { display: flex; gap: 4px; }
.swatch dd { margin: 0; }
.swatch button { all: unset; cursor: copy; }
.swatch button:hover { text-decoration: underline; }
.on-dark { color: #F3F3ED; }
.bordered { border: 1px solid var(--rule); }
.copied { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--ph-glade); padding: 10px 18px; border-radius: 999px; transition: .35s var(--ease); z-index: 30; pointer-events: none; }
.copied.show { opacity: 1; transform: translate(-50%, 0); }

.use-card { border-radius: 10px; padding: 16px 20px; background: var(--ph-clearing); }
.use-card b { display: block; font-size: 22px; font-weight: 400; }
.use-card ul { margin-top: 12px; padding-left: 18px; list-style: disc; color: var(--ink-2); line-height: 20px; }

.props h3 { font-size: 15px; font-weight: 400; margin-bottom: 14px; }
.bk-sec__body > .props { margin-top: 32px; }
.props + .props { margin-top: 40px; }
.propbar { display: flex; height: 40px; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.propbar i { flex: var(--w) 1 0; background: var(--c); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js .reveal:not(.in) .propbar i { transform: scaleX(0); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .12); }

.pair .face { height: 110px; border-radius: 8px; display: flex; align-items: flex-end; padding: 14px; font-size: 18px; line-height: 1.2; position: relative; overflow: hidden; }
.pair .face span { max-width: 120px; }

.code {
  margin-top: 32px; background: var(--ink); color: var(--ph-glade); border-radius: 8px;
  padding: 24px 22px; font: 13px/1.45 "DM Sans", sans-serif; letter-spacing: -0.01em; white-space: pre; overflow-x: auto; tab-size: 2;
}

/* Typography */
.faces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.face-card { background: var(--ph-clearing); border-radius: 10px; padding: 18px 20px 20px; }
.face-card .aa { font-size: 112px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.face-card .aa--bricolage { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-size: 128px; letter-spacing: -0.05em; padding-top: 18px; }
.face-card .aa--dm { font-weight: 500; font-size: 84px; }
.face-card h3 { margin-top: 18px; font-size: 22px; font-weight: 400; }
.face-card p { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 18px; }
.face-card p + p { margin-top: 12px; }

.scale { margin-top: 32px; background: var(--ph-clearing); border-radius: 10px; padding: 8px 20px; }
.scale li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.scale li:last-child { border-bottom: 0; }
.scale .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.scale .s { margin-top: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s110 { font-size: 72px; line-height: .92; font-weight: 600; letter-spacing: -0.045em; }
.s68 { font-size: 50px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.s42 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.s26 { font-size: 20px; letter-spacing: -0.01em; }
.s16 { font-size: 13px; letter-spacing: -0.04em; }
.s10 { font-size: 8px; }

.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.usage div { background: var(--ph-clearing); border-radius: 10px; padding: 18px 20px; min-height: 190px; }
.usage small { font-size: 12px; color: var(--ink-2); }
.usage p { margin-top: 12px; font-size: 20px; line-height: 1.25; }
.alts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.alts div { background: var(--ph-clearing); border-radius: 10px; padding: 18px 20px 22px; }
.alts small { font-size: 12px; color: var(--ink-2); }
.alts p { margin-top: 10px; font-size: 20px; }

.pager { display: flex; justify-content: space-between; padding: 40px 0 0; border-top: 1px solid var(--rule-soft); }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .bk-main { padding: 0 40px 40px; }
  .bk-sec { grid-template-columns: 1fr; row-gap: 20px; }
}
@media (max-width: 860px) {
  .bk-side { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px var(--gutter); }
  .bk-nav { margin-top: 20px; }
  .bk-side .bk-kit { display: none; }
  .bk-main { margin-left: 0; padding: 0 var(--gutter) 40px; }
  .bk-sec:first-child { padding-top: 56px; }
  .tiles--3, .usage { grid-template-columns: 1fr 1fr; }
  .lockup-lg, .clear img { width: 260px; }
  .partner { gap: 20px; } .partner img { width: 180px; } .partner span { font-size: 26px; }
}
@media (max-width: 560px) {
  .tiles, .tiles--3, .faces, .usage, .alts { grid-template-columns: 1fr; }
  .stage { height: 300px; }
  .clear { padding: 18px; } .clear::before { inset: 18px; } .clear img { width: 200px; }
  .s110 { font-size: 54px; } .s68 { font-size: 38px; }
}
