/* graphic profile page */
.page {
	--line:rgba(255,255,255,.12);
	--ease-out:cubic-bezier(.2,.7,.2,1);
	counter-reset:brand-section;
}
/* keyboard focus stays visible on every link and button of the page */
.page a:focus-visible,.page button:focus-visible {
	outline:2px solid var(--accent);
	outline-offset:3px;
}
/* the mark, drawn once and reused by the drawings further down */
.brand-sprite {
	position:absolute;
	width:0;
	height:0;
	overflow:hidden;
}
/* hero: the text on the left and the construction drawing of the mark to the right of it */
.brand-hero {
	background:radial-gradient(ellipse 44% 64% at 73% 48%,rgba(39,95,103,.5),transparent 74%);
}
.brand-hero .service-hero-content {
	display:grid;
	grid-template-columns:minmax(0,1fr) minmax(0,440px);
	align-items:center;
	gap:48px;
	padding-top:170px;
	padding-bottom:110px;
	text-align:left;
}
.brand-hero .service-hero-title {
	margin-left:0;
	max-width:none;
	font-size:clamp(28px,3.1vw,42px);
	text-wrap:balance;
}
.brand-hero .service-hero-subtitle {
	margin-left:0;
	max-width:500px;
}
.brand-hero .service-hero-actions {
	justify-content:flex-start;
}
.brand-hero-text > * {
	animation:brand-rise .9s var(--ease-out) both;
}
.brand-hero-text > :nth-child(2) {
	animation-delay:.08s;
}
.brand-hero-text > :nth-child(3) {
	animation-delay:.16s;
}
.brand-hero-text > :nth-child(4) {
	animation-delay:.24s;
}
.brand-hero-text > :nth-child(5) {
	animation-delay:.32s;
}
.brand-hero .service-hero-button,.cta-section .service-cta-button {
	display:inline-flex;
	align-items:center;
	gap:14px;
	transition:color .25s ease,background .25s ease,transform .25s var(--ease-out),box-shadow .25s ease;
}
.brand-hero .service-hero-button::before {
	content:"";
	flex:none;
	width:18px;
	height:20px;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v11M4.5 8.5L9 13l4.5-4.5M2 18h14'/%3E%3C/svg%3E") center/contain no-repeat;
	transition:transform .25s var(--ease-out);
}
.brand-hero .service-hero-button:hover,.cta-section .service-cta-button:hover {
	transform:translateY(-2px);
	box-shadow:rgba(88,169,181,.35) 0 18px 36px;
}
.brand-hero .service-hero-button:hover::before {
	transform:translateY(2px);
}
.brand-hero .service-hero-button:active,.cta-section .service-cta-button:active {
	transform:none;
}
.brand-jump {
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin-top:48px;
	counter-reset:brand-jump;
}
.brand-jump-link {
	display:inline-flex;
	align-items:baseline;
	gap:10px;
	padding:8px 18px 8px 14px;
	border:1px solid rgba(255,255,255,.15);
	border-radius:999px;
	color:rgba(255,255,255,.8);
	counter-increment:brand-jump;
	transition:color .2s,border-color .2s,background .2s,transform .25s var(--ease-out);
}
.brand-jump-link::before {
	content:counter(brand-jump,decimal-leading-zero);
	font-family:'Zen Dots',sans-serif;
	font-size:11px;
	color:var(--accent);
}
.brand-jump-link:hover {
	border-color:var(--accent);
	background:rgba(88,169,181,.16);
	transform:translateY(-2px);
}
.brand-sheet-drawing {
	display:block;
	width:100%;
	height:auto;
	overflow:visible;
}
.brand-sheet-gridline {
	fill:none;
	stroke:rgba(88,169,181,.2);
	stroke-width:1;
}
.brand-sheet-grid {
	animation:brand-fade 1.6s ease both;
}
.brand-sheet-unit {
	fill:rgba(88,169,181,.14);
	animation:brand-fade .8s ease 1.5s both;
}
.brand-sheet-guides {
	fill:none;
	stroke:rgba(88,169,181,.5);
	stroke-width:1;
}
.brand-sheet-guides > * {
	stroke-dasharray:1;
	animation:brand-draw 1.5s cubic-bezier(.6,0,.2,1) .25s both;
}
.brand-sheet-guides > :nth-child(n+3) {
	animation-delay:.4s;
}
.brand-sheet-guides > :nth-child(n+5) {
	animation-duration:1.8s;
	animation-delay:.6s;
}
.brand-sheet-space {
	fill:none;
	stroke:var(--accent);
	stroke-width:1;
	stroke-dasharray:6 6;
	animation:brand-fade .8s ease 1.4s both;
}
.brand-sheet-crop,.brand-sheet-measure path {
	fill:none;
	stroke:rgba(255,255,255,.7);
	stroke-width:1;
}
.brand-sheet-crop,.brand-sheet-measure {
	animation:brand-fade .8s ease 1.7s both;
}
.brand-sheet-measure text {
	font-family:'JetBrains Mono',ui-monospace,monospace;
	font-size:13px;
	fill:rgba(255,255,255,.7);
}
.brand-sheet-line {
	fill:none;
	stroke:var(--accent);
	stroke-width:.24;
	stroke-dasharray:1;
	animation:brand-draw 1.7s cubic-bezier(.6,0,.2,1) .7s both;
}
.brand-sheet-fill {
	fill:#fff;
	animation:brand-fade .9s ease 2s both;
}
@keyframes brand-rise {
	from {
		opacity:0;
		transform:translateY(22px);
	}
}
@keyframes brand-fade {
	from {
		opacity:0;
	}
}
@keyframes brand-draw {
	from {
		stroke-dashoffset:1;
	}
}
/* section headings: each section carries its number, the same one as its link in the hero */
.section-anchor {
	counter-increment:brand-section;
}
.section-anchor .section-kicker {
	display:flex;
	align-items:center;
	gap:14px;
}
.section-anchor .section-kicker::before {
	content:counter(brand-section,decimal-leading-zero);
	order:-2;
	font-family:'Zen Dots',sans-serif;
	font-size:13px;
	letter-spacing:.08em;
	color:#fff;
}
.section-anchor .section-kicker::after {
	content:"";
	order:-1;
	width:44px;
	height:1px;
	background:var(--accent);
	opacity:.7;
}
.brand-intro {
	color:rgba(255,255,255,.7);
	font-size:19px;
	line-height:1.6;
	max-width:640px;
	margin:24px 0 0;
}
.logo-group,.palette,.avatar-row {
	margin-top:72px;
}
/* a group heading: a rule with the name below it on the left and what it is for on the right */
.logo-group-head {
	position:relative;
	display:flex;
	flex-wrap:wrap;
	align-items:baseline;
	justify-content:space-between;
	gap:6px 32px;
	padding-top:22px;
	margin-bottom:26px;
	border-top:1px solid var(--line);
}
.logo-group-head::before {
	content:"";
	position:absolute;
	top:-1px;
	left:0;
	width:64px;
	height:1px;
	background:var(--accent);
	transition:width 1s var(--ease-out) .25s;
}
.logo-grid {
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:24px;
}
.logo-item,.swatch-item,.font-item,.rule-item {
	display:flex;
	flex-direction:column;
}
/* the cards of a row arrive one after the other */
.logo-grid > :nth-child(2),.swatch-grid > :nth-child(2),.font-grid > :nth-child(2),.rule-grid > :nth-child(2) {
	transition-delay:.07s!important;
}
.logo-grid > :nth-child(3),.swatch-grid > :nth-child(3),.font-grid > :nth-child(3),.rule-grid > :nth-child(3) {
	transition-delay:.14s!important;
}
.swatch-grid > :nth-child(4),.font-grid > :nth-child(4),.rule-grid > :nth-child(4) {
	transition-delay:.21s!important;
}
.swatch-grid > :nth-child(5) {
	transition-delay:.28s!important;
}
.swatch-grid > :nth-child(6) {
	transition-delay:.07s!important;
}
.swatch-grid > :nth-child(7) {
	transition-delay:.14s!important;
}
.swatch-grid > :nth-child(8) {
	transition-delay:.21s!important;
}
.logo-card {
	flex:1;
	display:flex;
	flex-direction:column;
	margin:0;
	border:1px solid rgba(255,255,255,.1);
	border-radius:18px;
	overflow:hidden;
	background:rgba(255,255,255,.04);
	transition:transform .35s var(--ease-out),border-color .3s ease,box-shadow .35s ease;
}
.logo-card:hover,.logo-card:focus-within {
	transform:translateY(-4px);
	border-color:rgba(88,169,181,.9);
	box-shadow:rgba(24,37,41,.6) 0 22px 40px;
}
.logo-preview {
	position:relative;
	height:220px;
	display:flex;
	align-items:center;
	justify-content:center;
}
.logo-preview-white {
	background:#000;
	color:#58a9b5;
}
.logo-preview-black {
	background:#fff;
	color:#275f67;
}
.logo-preview-teal {
	background:#e5e6e1;
	color:#275f67;
}
/* crop marks in the corners of a preview */
.logo-preview::before {
	content:"";
	position:absolute;
	inset:16px;
	background:linear-gradient(currentColor,currentColor) left top/12px 1px,linear-gradient(currentColor,currentColor) left top/1px 12px,linear-gradient(currentColor,currentColor) right top/12px 1px,linear-gradient(currentColor,currentColor) right top/1px 12px,linear-gradient(currentColor,currentColor) left bottom/12px 1px,linear-gradient(currentColor,currentColor) left bottom/1px 12px,linear-gradient(currentColor,currentColor) right bottom/12px 1px,linear-gradient(currentColor,currentColor) right bottom/1px 12px;
	background-repeat:no-repeat;
	opacity:.45;
	transition:inset .35s var(--ease-out),opacity .3s ease;
}
.logo-card:hover .logo-preview::before,.logo-card:focus-within .logo-preview::before {
	inset:11px;
	opacity:1;
}
.logo-frame {
	position:relative;
	display:block;
	width:72%;
}
.logo-group-stacked .logo-frame {
	width:52%;
}
.logo-group-mark .logo-frame {
	width:104px;
}
.logo-image {
	display:block;
	width:100%;
	height:auto;
}
/* the clear space of the logo, a quarter of the height of the mark, shown while its card is pointed at */
.logo-frame::after {
	content:"";
	position:absolute;
	inset:calc(var(--clear-y)*-1) calc(var(--clear-x)*-1);
	border:1px dashed currentColor;
	opacity:0;
	transform:scale(.96);
	transition:opacity .3s ease,transform .35s var(--ease-out);
}
.logo-card:hover .logo-frame::after,.logo-card:focus-within .logo-frame::after {
	opacity:.9;
	transform:none;
}
.logo-group-horizontal {
	--clear-x:6.555%;
	--clear-y:25%;
}
.logo-group-stacked {
	--clear-x:8.555%;
	--clear-y:14.272%;
}
.logo-group-mark {
	--clear-x:24.765%;
	--clear-y:25%;
}
.logo-caption {
	flex:1;
	display:flex;
	flex-direction:column;
	gap:14px;
	padding:18px 20px 20px;
	border-top:1px solid rgba(255,255,255,.1);
}
.logo-colour {
	display:flex;
	align-items:center;
	gap:10px;
	font-weight:400;
}
.logo-colour::before {
	content:"";
	flex:none;
	width:10px;
	height:10px;
	border-radius:50%;
	background:var(--dot);
	box-shadow:0 0 0 1px rgba(255,255,255,.4);
}
.logo-preview-white + .logo-caption {
	--dot:#fff;
}
.logo-preview-black + .logo-caption {
	--dot:#000;
}
.logo-preview-teal + .logo-caption {
	--dot:#275f67;
}
/* the files of a logo: vector formats on the first row, images on the second */
.logo-files {
	display:flex;
	flex-direction:column;
	gap:8px;
}
.file-row {
	position:relative;
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	padding-left:26px;
}
.file-row::before {
	content:"";
	position:absolute;
	left:0;
	top:7px;
	width:14px;
	height:14px;
	opacity:.55;
}
.file-row-vector::before {
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 11.5C2.5 6.5 6.5 2.5 11.5 2.5' fill='none' stroke='%23fff'/%3E%3Cpath d='M1 10h3v3H1zM10 1h3v3h-3z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.file-row-raster::before {
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1h4v4H1zM9 1h4v4H9zM5 5h4v4H5zM1 9h4v4H1zM9 9h4v4H9z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.file-chip {
	font-family:'JetBrains Mono',ui-monospace,monospace;
	font-size:12px;
	font-weight:400;
	line-height:1;
	padding:7px 10px;
	border:1px solid rgba(255,255,255,.26);
	border-radius:7px;
	color:rgba(255,255,255,.92);
	background:rgba(255,255,255,.04);
	transition:color .2s,background .2s,border-color .2s,transform .2s var(--ease-out),box-shadow .2s;
}
.file-row-raster .file-chip {
	border-color:rgba(255,255,255,.12);
	color:rgba(255,255,255,.68);
	background:none;
}
.file-chip:hover,.file-chip:focus-visible,.file-row-raster .file-chip:hover,.file-row-raster .file-chip:focus-visible {
	color:#000;
	background:var(--accent);
	border-color:var(--accent);
	transform:translateY(-2px);
	box-shadow:rgba(88,169,181,.3) 0 6px 14px;
}
.file-chip:active {
	transform:none;
}
.avatar-list {
	display:flex;
	flex-wrap:wrap;
	gap:28px 36px;
}
.avatar-link {
	display:flex;
	flex-direction:column;
	gap:12px;
	border-radius:22px;
}
/* a profile picture as it is, and beside it as a service that cuts it round shows it */
.avatar-shapes {
	position:relative;
	display:block;
	width:140px;
	height:140px;
	margin:0 30px 12px 0;
}
.avatar-image {
	display:block;
	width:100%;
	height:100%;
	border-radius:22px;
	border:1px solid rgba(255,255,255,.15);
	transition:transform .35s var(--ease-out),border-color .3s ease,box-shadow .35s ease;
}
.avatar-round {
	position:absolute;
	right:-30px;
	bottom:-12px;
	width:68px;
	height:68px;
	border-radius:50%;
	border:4px solid #0b1416;
	transition:transform .35s var(--ease-out) .05s;
}
.avatar-link:hover .avatar-image,.avatar-link:focus-visible .avatar-image {
	transform:translateY(-4px);
	border-color:var(--accent);
	box-shadow:rgba(24,37,41,.6) 0 18px 30px;
}
.avatar-link:hover .avatar-round,.avatar-link:focus-visible .avatar-round {
	transform:translateY(-4px) scale(1.08);
}
.avatar-caption {
	display:flex;
	align-items:center;
	gap:6px;
	font-family:'JetBrains Mono',ui-monospace,monospace;
	font-size:12px;
	font-weight:400;
}
.avatar-caption::after {
	content:"";
	width:12px;
	height:12px;
	margin-left:auto;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2358a9b5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1v7M3 5.5L6 8l3-2.500M1.500 11h9'/%3E%3C/svg%3E") center/contain no-repeat;
	transition:transform .25s var(--ease-out);
}
.avatar-link:hover .avatar-caption::after {
	transform:translateY(2px);
}
/* colour palettes: each palette fills its rows */
.swatch-grid {
	display:grid;
	grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));
	gap:16px;
}
.palette-web {
	--columns:5;
}
.swatch {
	position:relative;
	flex:1;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:4px;
	padding:0 0 16px;
	border:1px solid var(--line);
	border-radius:16px;
	overflow:hidden;
	background:rgba(255,255,255,.04);
	color:#fff;
	font:inherit;
	text-align:left;
	cursor:pointer;
	transition:transform .35s var(--ease-out),border-color .3s ease,box-shadow .35s ease;
}
.swatch:hover,.swatch:focus-visible,.swatch.is-copied {
	transform:translateY(-4px);
	border-color:var(--accent);
	box-shadow:rgba(24,37,41,.6) 0 18px 30px;
}
.swatch:active {
	transform:translateY(-1px);
}
.swatch-colour {
	position:relative;
	align-self:stretch;
	display:flex;
	align-items:center;
	justify-content:center;
	height:132px;
	margin-bottom:12px;
	overflow:hidden;
	background:var(--swatch);
	border-bottom:1px solid var(--line);
}
/* a ring spreads over the colour when its code has been copied */
.swatch-colour::after {
	content:"";
	position:absolute;
	left:50%;
	top:50%;
	width:48px;
	height:48px;
	margin:-24px 0 0 -24px;
	border:2px solid #fff;
	border-radius:50%;
	box-shadow:0 0 0 1px rgba(0,0,0,.3),inset 0 0 0 1px rgba(0,0,0,.3);
	opacity:0;
	pointer-events:none;
}
.swatch.is-copied .swatch-colour::after {
	animation:brand-ring .7s ease-out;
}
@keyframes brand-ring {
	from {
		opacity:.9;
		transform:scale(.4);
	}
	to {
		opacity:0;
		transform:scale(5);
	}
}
.swatch-icon {
	position:absolute;
	top:10px;
	right:10px;
	width:28px;
	height:28px;
	border:1px solid rgba(255,255,255,.25);
	border-radius:9px;
	background:rgba(0,0,0,.7);
	opacity:0;
	transform:translateY(-4px);
	transition:opacity .25s ease,transform .25s var(--ease-out);
}
.swatch-icon::before,.swatch-icon::after {
	content:"";
	position:absolute;
	left:6px;
	top:5px;
	width:8px;
	height:9px;
	border:1.5px solid rgba(255,255,255,.6);
	border-radius:3px;
}
.swatch-icon::after {
	left:9px;
	top:8px;
	border-color:#fff;
	background:#111;
}
.swatch:hover .swatch-icon,.swatch:focus-visible .swatch-icon {
	opacity:1;
	transform:none;
}
.swatch.is-copied .swatch-icon {
	opacity:0;
	transform:scale(.6);
}
.swatch-done {
	position:relative;
	z-index:1;
	display:inline-flex;
	align-items:center;
	gap:9px;
	font-size:14px;
	font-weight:400;
	padding:7px 15px 7px 14px;
	border:1px solid rgba(255,255,255,.25);
	border-radius:999px;
	color:#fff;
	background:rgba(0,0,0,.86);
	opacity:0;
	transform:translateY(8px) scale(.94);
	transition:opacity .25s ease,transform .3s var(--ease-out);
}
.swatch-done::before {
	content:"";
	width:5px;
	height:9px;
	margin-top:-3px;
	border:solid var(--accent);
	border-width:0 2px 2px 0;
	transform:rotate(45deg);
}
.swatch.is-copied .swatch-done {
	opacity:1;
	transform:none;
}
.swatch-name,.swatch-code,.swatch-rgb {
	padding:0 16px;
}
.swatch-name {
	font-weight:400;
}
.swatch-code {
	font-family:'JetBrains Mono',ui-monospace,monospace;
	font-size:15px;
	color:var(--accent);
	transition:color .25s ease;
}
.swatch.is-copied .swatch-code {
	color:#fff;
}
.swatch-rgb {
	font-size:13px;
	color:rgba(255,255,255,.6);
}
.palette-downloads {
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:10px;
	margin-top:72px;
	padding:20px 24px;
	border:1px solid var(--line);
	border-radius:18px;
	background:rgba(255,255,255,.04);
}
.palette-downloads-label {
	margin-right:auto;
	padding-right:14px;
	font-weight:400;
}
.palette-downloads .file-chip {
	font-size:13px;
	padding:9px 14px;
}
.visually-hidden {
	position:absolute;
	width:1px;
	height:1px;
	overflow:hidden;
	clip-path:inset(50%);
	white-space:nowrap;
}
.font-grid {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:24px;
	margin-top:56px;
}
.font-card {
	container-type:inline-size;
	flex:1;
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:14px;
	padding:30px 30px 32px;
	border:1px solid rgba(255,255,255,.1);
	border-radius:18px;
	background:rgba(255,255,255,.04);
	transition:transform .35s var(--ease-out),border-color .3s ease,box-shadow .35s ease;
}
.font-card:hover,.font-card:focus-within {
	transform:translateY(-4px);
	border-color:rgba(88,169,181,.9);
	box-shadow:rgba(24,37,41,.6) 0 22px 40px;
}
/* the sample stands on its baseline, with the height of the lower case and of the capitals ruled in behind it */
.font-sample {
	align-self:stretch;
	margin-bottom:8px;
	position:relative;
	isolation:isolate;
	font-size:92px;
	line-height:1.3;
	transition:color .3s ease;
}
.font-sample::before,.font-sample::after {
	content:"";
	position:absolute;
	z-index:-1;
	left:0;
	right:0;
	border-top:1px solid var(--line);
}
.font-sample::before {
	top:var(--upper);
	height:calc(var(--base) - var(--upper));
	border-bottom:1px solid rgba(88,169,181,.75);
}
.font-sample::after {
	top:var(--lower);
}
.font-sample.font-zen {
	--base:.978em;
	--lower:.456em;
	--upper:.261em;
}
.font-sample.font-roboto {
	--base:.989em;
	--lower:.456em;
	--upper:.272em;
}
.font-sample.font-lato {
	--base:1.032em;
	--lower:.533em;
	--upper:.326em;
}
.font-sample.font-jetbrains {
	--base:1em;
	--lower:.436em;
	--upper:.261em;
}
.font-card:hover .font-sample {
	color:var(--accent);
}
.font-glyphs {
	margin:0;
	font-size:15px;
	line-height:1.8;
	overflow-wrap:anywhere;
}
.font-zen {
	font-family:'Zen Dots',sans-serif;
}
.font-roboto {
	font-family:'Roboto',sans-serif;
	font-weight:200;
}
.font-lato {
	font-family:'Lato',sans-serif;
	font-weight:400;
}
.font-jetbrains {
	font-family:'JetBrains Mono',ui-monospace,monospace;
}
/* the alphabet of the two wide typefaces shrinks with its card, so each line stays whole */
.font-glyphs.font-zen {
	font-size:min(15px,3.6cqi);
}
.font-glyphs.font-jetbrains {
	font-size:min(15px,5.5cqi);
}
.font-link {
	display:inline-flex;
	align-items:baseline;
	gap:8px;
	margin-top:auto;
	color:var(--accent);
	font-weight:400;
}
.font-link::after {
	content:"\2192";
	transition:transform .25s var(--ease-out);
}
.font-link:hover {
	color:#fff;
}
.font-link:hover::after {
	transform:translateX(5px);
}
.rule-grid {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:24px;
	margin-top:56px;
}
.rule-card {
	flex:1;
	gap:0;
	padding:0;
	overflow:hidden;
	transition:transform .35s var(--ease-out),border-color .3s ease;
}
.rule-card:hover {
	transform:translateY(-4px);
	border-color:rgba(88,169,181,.9);
}
/* the drawing of a rule, on squared paper */
.rule-figure {
	border-bottom:1px solid rgba(255,255,255,.1);
	background:linear-gradient(rgba(88,169,181,.07) 1px,transparent 1px) center/20px 20px,linear-gradient(90deg,rgba(88,169,181,.07) 1px,transparent 1px) center/20px 20px,#05090a;
}
.rule-drawing {
	display:block;
	width:100%;
	max-width:460px;
	height:auto;
	margin:0 auto;
	transition:opacity .8s ease .2s,transform .8s var(--ease-out) .2s;
}
.rule-body {
	display:flex;
	flex-direction:column;
	gap:14px;
	padding:28px 30px 32px;
}
.rule-guide {
	fill:none;
	stroke:rgba(88,169,181,.45);
	stroke-width:1;
}
.rule-unit {
	fill:rgba(88,169,181,.3);
	transition:fill .35s ease;
}
.rule-zone {
	fill:rgba(88,169,181,0);
	stroke:var(--accent);
	stroke-width:1;
	stroke-dasharray:4 4;
	transition:fill .35s ease;
}
.rule-space:hover .rule-zone {
	fill:rgba(88,169,181,.12);
}
.rule-space:hover .rule-unit {
	fill:rgba(88,169,181,.7);
}
.rule-mark {
	fill:#fff;
	transition:fill .35s ease;
}
.rule-mark-small {
	fill:rgba(255,255,255,.4);
}
.rule-size:hover .rule-mark-least {
	fill:var(--accent);
}
.rule-measure {
	fill:none;
	stroke:var(--accent);
	stroke-width:1;
}
.rule-label {
	font-family:'JetBrains Mono',ui-monospace,monospace;
	font-size:10px;
	fill:var(--accent);
}
.rule-cross {
	fill:none;
	stroke:#e0867a;
	stroke-width:1.5;
	stroke-linecap:round;
	transition:opacity .35s ease;
}
.rule-plate {
	stroke:rgba(255,255,255,.16);
	stroke-width:1;
}
.rule-plate-dark {
	fill:#000;
}
.rule-tile {
	transition:transform .4s var(--ease-out);
}
.rule-tile:nth-child(2) {
	transition-delay:.06s;
}
.rule-tile:nth-child(3) {
	transition-delay:.12s;
}
.rule-contrast:hover .rule-tile {
	transform:translateY(-6px);
}
/* what not to do with the logo; pointing at the card puts every logo right again */
.rule-wrong {
	fill:#fff;
	transition:transform .5s var(--ease-out),fill .4s ease,filter .4s ease;
}
.rule-wrong-stretch {
	transform-origin:49px 75px;
	transform:scale(1.45,.7);
}
.rule-wrong-turn {
	transform-origin:123px 75px;
	transform:rotate(28deg);
}
.rule-wrong-crop {
	transform-origin:197px 75px;
	transform:translate(20px,19px) scale(1.55);
}
.rule-wrong-tint {
	fill:#e8a33d;
	filter:drop-shadow(0 0 5px #e8a33d);
}
.rule-keep:hover .rule-wrong {
	fill:#fff;
	transform:none;
	filter:drop-shadow(0 0 0 rgba(232,163,61,0));
}
.rule-keep:hover .rule-cross {
	opacity:0;
}
.brand-cta-action {
	margin-top:12px;
}
.cta-section .service-cta-button {
	margin-top:0;
}
/* what waits for its part of the page to scroll into view */
@media (prefers-reduced-motion:no-preference){
	[data-reveal][style*="opacity: 0"].logo-group-head::before,[data-reveal][style*="opacity: 0"] .logo-group-head::before {
		width:0;
	}
	[data-reveal][style*="opacity: 0"] .rule-drawing {
		opacity:0;
		transform:scale(.95);
	}
}
/* no pointer to hover with, so what a swatch does is shown from the start */
@media (hover:none){
	.swatch-icon {
		opacity:.9;
		transform:none;
	}
}
/* narrower cards give their room to the files, so each row of them stays on one line */
@media (max-width:1207px){
	.brand-hero .service-hero-content {
		grid-template-columns:minmax(0,1fr) minmax(0,400px);
		gap:40px;
	}
	.logo-grid {
		gap:16px;
	}
	.logo-caption {
		padding:18px 16px 20px;
	}
	.brand-jump {
		gap:8px;
	}
	.brand-jump-link {
		padding:7px 14px 7px 12px;
		font-size:15px;
	}
}
/* the logos become a list: the preview on the left and its files to the right of it */
@media (max-width:1160px){
	.logo-grid {
		grid-template-columns:minmax(0,1fr);
	}
	.logo-grid > [data-reveal] {
		transition-delay:0s!important;
	}
	.logo-card {
		display:grid;
		grid-template-columns:minmax(0,5fr) minmax(0,6fr);
	}
	.logo-preview {
		height:auto;
		min-height:176px;
	}
	.logo-group-mark .logo-frame {
		width:84px;
	}
	.logo-caption {
		justify-content:center;
		padding:20px 24px;
		border-top:0;
		border-left:1px solid rgba(255,255,255,.1);
	}
}
/* where there is no room beside the text the drawing stands below it */
@media (max-width:1000px){
	.brand-hero {
		background:radial-gradient(ellipse 62% 38% at 50% 72%,rgba(39,95,103,.5),transparent 74%);
	}
	.brand-hero .service-hero-content {
		grid-template-columns:minmax(0,1fr);
		gap:56px;
		padding-top:150px;
		padding-bottom:80px;
		text-align:center;
	}
	.brand-hero .service-hero-title,.brand-hero .service-hero-subtitle {
		margin-left:auto;
		margin-right:auto;
	}
	.brand-hero .service-hero-actions,.brand-jump {
		justify-content:center;
	}
	.brand-sheet {
		width:min(100%,380px);
		margin:0 auto;
	}
}
/* the preview of a logo above its files */
@media (max-width:760px){
	.logo-card {
		display:flex;
	}
	.logo-preview {
		min-height:0;
		height:176px;
	}
	.logo-caption {
		border-top:1px solid rgba(255,255,255,.1);
		border-left:0;
		padding:18px 20px 20px;
	}
}
@media (max-width:720px){
	.logo-group,.palette,.avatar-row,.palette-downloads {
		margin-top:56px;
	}
	/* the colours of a palette become a list */
	.swatch-grid {
		grid-template-columns:minmax(0,1fr);
		gap:10px;
	}
	.swatch-grid > [data-reveal] {
		transition-delay:0s!important;
	}
	.swatch {
		display:grid;
		grid-template-columns:84px minmax(0,1fr);
		grid-template-rows:auto auto;
		align-items:center;
		gap:2px 0;
		padding:0;
	}
	.swatch:hover,.swatch:focus-visible,.swatch.is-copied {
		transform:none;
	}
	.swatch-colour {
		position:static;
		grid-row:1/3;
		height:100%;
		min-height:72px;
		margin:0;
		border-bottom:0;
		border-right:1px solid var(--line);
	}
	.swatch-colour::after {
		display:none;
	}
	.swatch-name {
		grid-column:2;
		align-self:end;
	}
	.swatch-code {
		grid-column:2;
		grid-row:2;
		align-self:start;
	}
	.swatch-rgb {
		grid-column:2;
		grid-row:2;
		align-self:start;
		padding-left:108px;
		line-height:20px;
	}
	.swatch-icon,.swatch-done {
		position:absolute;
		top:50%;
		right:14px;
	}
	.swatch-icon {
		margin-top:-14px;
	}
	.swatch-done {
		margin-top:-17px;
	}
}
@media (max-width:640px){
	.logo-group-head {
		flex-direction:column;
	}
	.font-grid,.rule-grid {
		grid-template-columns:minmax(0,1fr);
	}
	.font-grid > [data-reveal],.rule-grid > [data-reveal] {
		transition-delay:0s!important;
	}
	.font-card {
		padding:24px 22px 26px;
	}
	.font-sample {
		font-size:76px;
	}
	.rule-body {
		padding:24px 22px 28px;
	}
	.palette-downloads {
		padding:18px;
	}
	.palette-downloads-label {
		flex-basis:100%;
		margin-bottom:4px;
	}
}
@media (max-width:600px){
	.logo-caption {
		padding:18px 16px 20px;
	}
	.file-row {
		gap:5px;
	}
	.file-chip {
		padding:10px 7px;
	}
	.file-row::before {
		top:10px;
	}
	.brand-hero .service-hero-button {
		gap:12px;
		padding:12px 24px;
		font-size:19px;
		text-wrap:balance;
	}
	.avatar-list {
		gap:24px 20px;
	}
	.avatar-shapes {
		width:118px;
		height:118px;
	}
}
@media (max-width:374px){
	.file-chip {
		padding:10px 6px;
		font-size:11px;
	}
}
@media (prefers-reduced-motion:reduce){
	html {
		scroll-behavior:auto;
	}
	[data-reveal] {
		opacity:1!important;
		transform:none!important;
	}
	.page *,.page *::before,.page *::after {
		animation:none!important;
		transition:none!important;
	}
}
