/* =============================================================================
   Carte Blanche — atelier theme
   Layout: the home page is a stack of full-height "chapters" that slide over each
   other (sticky stacking, theme.js), opening like a print proof: crop marks, giant
   Glitten type and one real box. Real photographs, print-trade details, no ornaments
   for their own sake. Two styles: Ivory (light) and Noir (dark), chosen per visitor.
   ========================================================================== */

@font-face { font-family: 'Glitten'; src: url('../fonts/glitten/glitten-regular.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Rubrik'; src: url('../fonts/rubrik/rubrik-light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Rubrik'; src: url('../fonts/rubrik/rubrik-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubrik'; src: url('../fonts/rubrik/rubrik-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Rubrik'; src: url('../fonts/rubrik/rubrik-semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }

/* ---- tokens: Ivory (default) --------------------------------------------- */
:root {
	--bg: #f6f0e6;           /* ivory board */
	--bg-2: #ede3d3;         /* parchment, every other chapter */
	--surface: #fffcf7;
	--ink: #1d1412;
	--ink-2: #4a3b34;
	--muted: #85766b;
	--line: rgba(29, 20, 18, .12);
	--accent: #c8252b;       /* Carte Blanche red */
	--accent-deep: #9e1a20;
	--on-accent: #fff8ef;
	--gold: #a8782f;         /* readable on ivory */
	--gold-hi: #d9b46a;
	--gold-lo: #7d5a22;
	--stage: #1d0607;        /* the studio room — dark in both styles */
	--cta-bg: #8a141a;
	--foot-bg: #1a1210;
	--foot-ink: #f1e6d7;
	--shadow: 0 30px 80px -34px rgba(70, 24, 12, .42);
	--grain: .05;

	--f-display: 'Glitten', 'Cormorant Garamond', Georgia, serif;
	--f-ui: 'Rubrik', -apple-system, 'Segoe UI', Roboto, sans-serif;
	--gutter: clamp(18px, 4vw, 56px);
	--wrap: 1320px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .75, .15, 1);
	--r: 6px;                /* paper corners: photos, cards, fields */
	--r-lg: 12px;            /* larger panels */
	color-scheme: light;
}

/* ---- tokens: Noir ---------------------------------------------------------- */
:root[data-cb-style="dark"] {
	--bg: #110b0a;
	--bg-2: #1a1110;
	--surface: #221715;
	--ink: #f4eadc;
	--ink-2: #d6c7b5;
	--muted: #9d8e80;
	--line: rgba(244, 234, 220, .13);
	--accent: #e2473f;
	--accent-deep: #c22f28;
	--on-accent: #fff8ef;
	--gold: #e2c27e;
	--gold-hi: #f3dfae;
	--gold-lo: #b8893f;
	--stage: #160404;
	--cta-bg: #2a0a0b;
	--foot-bg: #0a0606;
	--foot-ink: #efe3d3;
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
	--grain: .07;
	color-scheme: dark;
}

/* ---- base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased;
	transition: background-color .5s ease, color .5s ease;
	overflow-x: clip;
}
/* paper grain over everything — the print feel */
body::before {
	content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: var(--grain);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-skip { position: fixed; left: 12px; top: -60px; z-index: 10000; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 999px; text-decoration: none; }
.cb-skip:focus { top: 12px; }

.cb-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- type ------------------------------------------------------------------ */
.cb-display {
	margin: 0; font: 400 clamp(40px, 6.2vw, 104px)/.98 var(--f-display); letter-spacing: -.012em;
	text-wrap: balance; color: var(--ink);
}
.cb-display em, .cb-h2 em { font-style: normal; color: var(--accent); }
:root[data-cb-style="dark"] .cb-display em, :root[data-cb-style="dark"] .cb-h2 em { color: var(--gold); }
.cb-h2 { margin: 0; font: 400 clamp(32px, 4vw, 60px)/1.02 var(--f-display); text-wrap: balance; }
.cb-eyebrow {
	display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
	font: 500 12px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.cb-lead { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--ink-2); font-weight: 300; }

/* ---- buttons: one shape in every state ------------------------------------ */
.cb-btn {
	--h: 54px;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h); padding: 0 28px;
	border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
	font: 500 14px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease), box-shadow .35s ease;
	position: relative; overflow: hidden; isolation: isolate;
}
.cb-btn .cb-ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.cb-btn:hover .cb-ico, .cb-btn:focus-visible .cb-ico { transform: translate(3px, -3px); }
.cb-btn--primary { background: var(--accent); color: var(--on-accent); }
.cb-btn--primary:hover, .cb-btn--primary:focus-visible { background: var(--accent-deep); }
.cb-btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.cb-btn--ghost:hover, .cb-btn--ghost:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cb-btn--sm { --h: 42px; padding: 0 18px; font-size: 12px; }
.cb-btn--lg { --h: 62px; padding: 0 34px; font-size: 15px; }

/* ---- header ------------------------------------------------------------------ */
.cb-header {
	position: fixed; inset: 0 0 auto; z-index: 900; height: var(--header-h);
	padding-top: env(safe-area-inset-top, 0px);
	transition: background-color .4s ease, backdrop-filter .4s ease, box-shadow .4s ease, transform .5s var(--ease);
}
/* signed-in editors see the WordPress toolbar above the site */
.admin-bar .cb-header { top: 32px; }
.admin-bar .cb-drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .cb-header, .admin-bar .cb-drawer { top: 46px; } }
.cb-header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.cb-header.is-hidden { transform: translateY(-110%); }
.cb-header__bar { height: 100%; max-width: 1600px; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.cb-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
/* the official logo; Noir swaps in the ivory-lettered version */
.cb-logo { display: block; height: 58px; width: auto; transition: transform .6s var(--ease); }
.cb-logo--light { display: none; }
:root[data-cb-style="dark"] .cb-logo--ink { display: none; }
:root[data-cb-style="dark"] .cb-logo--light { display: block; }
.cb-brand:hover .cb-logo { transform: scale(1.03); }
.cb-brand__seal { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(120, 80, 20, .6); transition: transform .8s var(--ease); }
.cb-brand:hover .cb-brand__seal { transform: rotate(-18deg) scale(1.06); }
.cb-brand__word { font: 400 24px/1 var(--f-display); letter-spacing: .01em; }
.cb-brand__word em { font-style: normal; color: var(--accent); }
:root[data-cb-style="dark"] .cb-brand__word em { color: var(--gold); }

.cb-nav { margin-left: auto; }
.cb-nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cb-nav__list a {
	position: relative; display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
	font: 500 13px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
}
.cb-nav__list a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.cb-nav__list a:hover::after, .cb-nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.cb-nav__list .sub-menu { display: none; }

.cb-header__tools { display: flex; align-items: center; gap: 10px; }
.cb-style-toggle {
	position: relative; width: 44px; height: 44px; padding: 0 !important; border-radius: 999px !important; border: 1px solid var(--line) !important;
	background: transparent !important; color: var(--ink) !important; box-shadow: none !important; min-height: 0 !important;
	cursor: pointer; display: grid; place-items: center; transition: background-color .3s ease, transform .5s var(--ease);
}
.cb-style-toggle:hover, .cb-style-toggle:focus { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; color: var(--ink) !important; transform: rotate(20deg); }
.cb-style-toggle .cb-ico { position: absolute; width: 20px; height: 20px; transition: opacity .4s ease, transform .6s var(--ease); }
.cb-ico--moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-cb-style="dark"] .cb-ico--sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-cb-style="dark"] .cb-ico--moon { opacity: 1; transform: none; }

.cb-burger { display: none; width: 44px; height: 44px; padding: 0 !important; border-radius: 999px !important; border: 1px solid var(--line) !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; cursor: pointer; position: relative; }
.cb-burger:hover, .cb-burger:focus { background: color-mix(in srgb, var(--ink) 8%, transparent) !important; }
.cb-burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.cb-burger span:first-child { top: 17px; } .cb-burger span:last-child { top: 25px; }
.cb-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.cb-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.cb-drawer {
	position: fixed; inset: 0; z-index: 890; display: flex; flex-direction: column; justify-content: space-between;
	padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
	background: var(--bg); clip-path: circle(0 at calc(var(--gutter) + 22px) 38px); transition: clip-path .8s var(--ease);
}
.cb-drawer.is-open { clip-path: circle(150% at calc(var(--gutter) + 22px) 38px); }
.cb-drawer__list { margin: 0; padding: 0; list-style: none; }
.cb-drawer__list a { display: block; padding: 10px 0; font: 400 clamp(36px, 11vw, 64px)/1.05 var(--f-display); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.cb-drawer__foot { display: grid; gap: 14px; }
/* phones and tablets: "Start a project" at the top right of the header */
.cb-header__start { display: none; }
/* the light / dark choice in the menu: two halves, the current one filled */
.cb-drawer__style { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.cb-drawer__style button {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; height: 46px; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--ink-2) !important; box-shadow: none !important; min-height: 0 !important;
	font: 500 12px/1 var(--f-ui) !important; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background-color .3s ease, color .3s ease;
}
.cb-drawer__style .cb-ico { width: 17px; height: 17px; }
:root:not([data-cb-style="dark"]) .cb-drawer__style [data-cb-style-set="light"],
:root[data-cb-style="dark"] .cb-drawer__style [data-cb-style-set="dark"] { background: var(--ink) !important; color: var(--bg) !important; }
.cb-drawer__line { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; }
.cb-drawer__line .cb-ico { width: 18px; height: 18px; color: var(--gold); }

/* ---- chapters: they stick, and the next one slides over --------------------- */
.cb-chapters { position: relative; }
.cb-ch {
	position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
	background: var(--ch-bg, var(--bg)); color: var(--ink);
	transform-origin: 50% 0; will-change: transform;
}
.cb-ch:nth-of-type(even) { --ch-bg: var(--bg-2); }
.cb-ch--cover { border-radius: 20px 20px 0 0; box-shadow: 0 -38px 70px -30px rgba(30, 8, 4, .45); }
/* the chapter underneath darkens as it is covered (set by theme.js: --cover 0..1) */
.cb-ch::after {
	content: ''; position: absolute; inset: 0; z-index: 60; pointer-events: none; border-radius: inherit;
	background: #090403; opacity: calc(var(--cover, 0) * .55);
}

/* chapter indicator (home only) */
.cb-hud {
	/* a slim vertical label on the left edge */
	position: fixed; left: 18px; top: 50%; z-index: 800; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
	display: flex; align-items: center; gap: 12px; pointer-events: none; mix-blend-mode: difference; color: #f6efe4;
	font: 500 11px/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase;
}
.cb-hud { transition: opacity .5s ease; }
.cb-home:not(.cb-past-hero) .cb-hud { opacity: 0; }
.cb-hud__num { font-variant-numeric: tabular-nums; }
.cb-hud__bar { position: relative; width: 1px; height: 56px; background: rgba(246, 239, 228, .35); overflow: hidden; }
.cb-hud__bar i { position: absolute; inset: 0; background: #f6efe4; transform: scaleY(var(--hud, 0)); transform-origin: bottom; }

/* ---- print marks: the corners of a proof sheet (hero and page heads) ---------------- */
.cb-crop { position: absolute; z-index: 4; width: 26px; height: 26px; pointer-events: none; --c: color-mix(in srgb, var(--ink) 34%, transparent); }
.cb-crop::before, .cb-crop::after { content: ''; position: absolute; background: var(--c); }
.cb-crop::before { width: 20px; height: 1px; }
.cb-crop::after { width: 1px; height: 20px; }
.cb-crop--tl { left: calc(var(--trim-x) - 26px); top: calc(var(--trim-top) - 26px); }
.cb-crop--tl::before { left: 0; bottom: 0; } .cb-crop--tl::after { right: 0; top: 0; }
.cb-crop--tr { right: calc(var(--trim-x) - 26px); top: calc(var(--trim-top) - 26px); }
.cb-crop--tr::before { right: 0; bottom: 0; } .cb-crop--tr::after { left: 0; top: 0; }
.cb-crop--bl { left: calc(var(--trim-x) - 26px); bottom: calc(var(--trim-bottom) - 26px); }
.cb-crop--bl::before { left: 0; top: 0; } .cb-crop--bl::after { right: 0; bottom: 0; }
.cb-crop--br { right: calc(var(--trim-x) - 26px); bottom: calc(var(--trim-bottom) - 26px); }
.cb-crop--br::before { right: 0; top: 0; } .cb-crop--br::after { left: 0; bottom: 0; }

/* ---- chapter 1: hero, laid out like a proof ------------------------------------ */
.cb-hero {
	--trim-x: clamp(26px, 3.2vw, 52px); --trim-top: calc(var(--header-h) + 16px); --trim-bottom: 26px;
	--hero-x: calc(max(0px, (100vw - 1600px) / 2) + var(--gutter));
	--ch-bg: var(--bg); overflow: hidden;
	display: grid; grid-template-rows: var(--header-h) 1fr auto;
}
.cb-hero__type { grid-row: 2; align-self: center; position: relative; z-index: 1; margin: 0; padding: 2vh var(--hero-x) 0; pointer-events: none; }
.cb-giant {
	display: block; font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em; white-space: nowrap;
	transform: translateY(calc(var(--stay, 0) * -40px + var(--cover, 0) * -60px));
}
/* sizes follow the 1600px content width, so the words and the box keep their places on big screens */
.cb-giant--1 { font-size: clamp(28px, 4.6vw, 74px); line-height: 1; margin: 0 0 .1em .05em; color: var(--ink-2); }
.cb-giant--2 { font-size: clamp(52px, 10vw, 160px); line-height: .9; color: var(--ink); }
.cb-giant .cb-ch-letter { display: inline-block; transform: translateY(var(--ly, 0)); opacity: var(--lo, 1); transition: transform 1.1s var(--ease), opacity 1.1s ease; transition-delay: calc(var(--li) * 30ms + .1s); }
.cb-js .cb-giant:not(.is-in) .cb-ch-letter { --ly: .45em; --lo: 0; }

/* the box: a studio photo on the right; its edge just covers the end of the big word */
.cb-hero__stage {
	--tx: 0deg; --ty: 0deg;
	position: absolute; z-index: 2; margin: 0; top: 50%;
	right: calc(max(0px, (100vw - 1600px) / 2) + var(--gutter) * .6); width: clamp(260px, 32vw, 520px);
	transform: translateY(-50%) translateY(calc(var(--stay, 0) * -50px + var(--cover, 0) * -90px)) scale(calc(1 + var(--cover, 0) * .05));
	perspective: 1400px; pointer-events: none;
}
/* the light falling on the backdrop behind it */
.cb-hero__stage::before { content: ''; position: absolute; inset: -16% -20%; z-index: -2; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-hi) 18%, transparent), transparent); }
.cb-hero__float { animation: cb-float 7s ease-in-out infinite alternate; transform-style: preserve-3d; }
.cb-hero__box { display: block; width: 100%; height: auto; transform: rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .9s var(--ease);
	filter: drop-shadow(0 30px 40px rgba(60, 22, 10, .2)); }
/* arrival uses the separate translate/scale properties so it never fights the tilt */
.cb-js .cb-hero__box { opacity: 0; translate: 0 26px; scale: .97; animation: cb-arrive 1.6s .25s var(--ease) forwards; }
@keyframes cb-arrive { to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes cb-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
.cb-hero__shadow { position: absolute; left: 16%; right: 16%; bottom: 4%; height: 8%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(50, 18, 8, .26), transparent); filter: blur(6px); animation: cb-shadow 7s ease-in-out infinite alternate; z-index: -1; }
@keyframes cb-shadow { to { transform: scale(.9); opacity: .75; } }
:root[data-cb-style="dark"] .cb-hero__shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
:root[data-cb-style="dark"] .cb-hero__box { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)) brightness(1.06); }
/* the spec, written under the box like a note on a proof */
.cb-hero__spec { position: absolute; right: 6%; top: calc(100% - 2%); white-space: nowrap; display: flex; justify-content: flex-end; align-items: center; gap: 12px;
	font: 500 11px/1.4 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cb-hero__spec::before { content: ''; flex: 0 0 28px; height: 1px; background: currentColor; opacity: .7; }

.cb-hero__copy {
	grid-row: 3; position: relative; z-index: 3; width: min(100%, calc(var(--hero-x) + 60vw));
	padding: 0 0 clamp(40px, 8vh, 80px) var(--hero-x);
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 40px;
}
.cb-hero__sub { flex: 1 1 320px; max-width: 50ch; margin: 0; color: var(--ink-2); font-weight: 300; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; }
.cb-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Christmas season: the festive poster that opens the home page while switched on --------- */
.cb-ch.cb-xmas { --ch-bg: #ebdccf; }
.cb-xmas {
	--x-red: #b3161d; --x-ink: #26232a; --x-gold: #b08a45;
	overflow: hidden; color: var(--x-ink); /* stays sticky like every chapter */
	display: grid; align-items: center; padding: var(--header-h) 0 0;
	background: linear-gradient(180deg, #e2d2c6 0%, #ecdccf 46%, #f1e5d9 100%);
}
/* the products from the "Christmas Season Alert" artwork; its left edge melts into the backdrop */
.cb-xmas__photo {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(58%, 1000px); margin: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%);
}
.cb-xmas__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%;
	translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); transition: translate 1.2s var(--ease);
	transform: scale(calc(1.04 - var(--stay, 0) * .04)) translateY(calc(var(--cover, 0) * -40px)); transform-origin: 60% 60%; }
/* fairy lights twinkling over the bokeh */
.cb-xmas__light { position: absolute; width: 10px; height: 10px; border-radius: 50%; pointer-events: none;
	translate: calc(var(--mx, 0) * -26px) calc(var(--my, 0) * -18px); transition: translate 1.2s var(--ease);
	background: radial-gradient(circle, #fff6d8 0 22%, rgba(255, 214, 140, .75) 40%, transparent 70%);
	animation: cb-twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); opacity: 0; }
.cb-xmas__light:nth-of-type(1) { left: 14%; top: 18%; }
.cb-xmas__light:nth-of-type(2) { left: 30%; top: 9%; width: 7px; height: 7px; }
.cb-xmas__light:nth-of-type(3) { left: 22%; top: 34%; }
.cb-xmas__light:nth-of-type(4) { left: 70%; top: 6%; width: 8px; height: 8px; }
.cb-xmas__light:nth-of-type(5) { left: 88%; top: 22%; }
.cb-xmas__light:nth-of-type(6) { left: 46%; top: 4%; width: 6px; height: 6px; }
.cb-xmas__light:nth-of-type(7) { left: 92%; top: 44%; width: 7px; height: 7px; }
@keyframes cb-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.5); } 60% { opacity: .7; transform: scale(1); } }

.cb-xmas__copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 18px;
	width: min(100%, calc(max(0px, (100vw - 1600px) / 2) + var(--gutter) + 720px)); padding: 6vh var(--gutter) 10vh calc(max(0px, (100vw - 1600px) / 2) + var(--gutter)); }
.cb-xmas .cb-eyebrow { margin: 0; color: var(--x-gold); }
.cb-xmas__title { margin: 0; font: 400 clamp(54px, 6.6vw, 112px)/.94 var(--f-display); letter-spacing: -.01em; color: var(--x-ink); }
.cb-xmas__title em { display: block; font-style: normal; color: var(--x-red); }
/* the gold rule with a little star, as on the artwork */
.cb-xmas__rule { position: relative; display: block; width: min(360px, 80%); height: 12px; }
.cb-xmas__rule::before, .cb-xmas__rule::after { content: ''; position: absolute; top: 50%; height: 1px; width: calc(50% - 16px); background: linear-gradient(90deg, transparent, var(--x-gold)); }
.cb-xmas__rule::before { left: 0; }
.cb-xmas__rule::after { right: 0; transform: scaleX(-1); }
.cb-xmas__rule i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); background: var(--x-gold);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.cb-xmas__text { margin: 0; max-width: 34ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: #4a4148; }
.cb-xmas__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
/* snow and glitter (assets/js/xmas.js): over the photo, under the words */
.cb-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cb-xhead > .cb-snow { z-index: 1; }
/* a few designs from the collection, dealt like cards */
.cb-xmas__picks { display: grid; gap: 10px; margin-top: 8px; }
.cb-xmas__picks-label { margin: 0; font: 500 11px/1.4 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--x-gold); }
.cb-xmas__picks ul { display: flex; gap: 10px; margin: 0; padding: 4px 0 0; list-style: none; }
.cb-xmas__picks a { display: block; width: 62px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #fff;
	box-shadow: 0 12px 22px -12px rgba(60, 20, 10, .55); transition: transform .5s var(--ease), box-shadow .5s ease; text-decoration: none; }
.cb-xmas__picks li:nth-child(odd) a { transform: rotate(-3deg); }
.cb-xmas__picks li:nth-child(even) a { transform: rotate(2deg); }
.cb-xmas__picks a:hover, .cb-xmas__picks a:focus-visible { transform: translateY(-8px) rotate(0) scale(1.08); box-shadow: 0 20px 30px -14px rgba(60, 20, 10, .6); }
.cb-xmas__picks img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-xmas__picks .is-more a { display: grid; place-content: center; gap: 3px; text-align: center; background: var(--x-red); color: #fff8ef; }
.cb-xmas__picks .is-more b { font: 400 20px/1 var(--f-display); }
.cb-xmas__picks .is-more span { font: 500 8.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.cb-xmas .cb-btn--primary { background: var(--x-red); color: #fff8ef; }
.cb-xmas .cb-btn--primary:hover, .cb-xmas .cb-btn--primary:focus-visible { background: #8f1016; }
.cb-xmas .cb-btn--ghost { color: var(--x-ink); border-color: rgba(38, 35, 42, .35); }
.cb-xmas .cb-btn--ghost:hover, .cb-xmas .cb-btn--ghost:focus-visible { background: var(--x-ink); color: #f6efe4; border-color: var(--x-ink); }

/* Noir: a candle-lit version — dark wine room, the photo shown as a framed print */
:root[data-cb-style="dark"] .cb-ch.cb-xmas { --ch-bg: #1a0a0a; }
:root[data-cb-style="dark"] .cb-xmas { --x-ink: #f4eadc; --x-red: #e2473f; --x-gold: #e2c27e;
	background: radial-gradient(80% 90% at 75% 45%, #3a1012 0%, #1f0a0b 55%, #120606 100%); }
:root[data-cb-style="dark"] .cb-xmas__photo { top: calc(var(--header-h) + 4vh); bottom: 6vh; right: var(--gutter); width: min(46%, 760px);
	border-radius: var(--r-lg); overflow: hidden; -webkit-mask-image: none; mask-image: none; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
:root[data-cb-style="dark"] .cb-xmas__text { color: rgba(244, 234, 220, .78); }
:root[data-cb-style="dark"] .cb-xmas .cb-btn--ghost:hover { color: #1a0a0a; }

/* portrait screens: the photo on top, fading into the words below it */
@media (max-aspect-ratio: 4/5) {
	.cb-xmas { grid-template-rows: auto 1fr; align-items: start; padding-top: var(--header-h); }
	.cb-xmas__picks li:nth-child(n+4):not(.is-more) { display: none; }
	.cb-xmas__photo { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 42svh;
		-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
	.cb-xmas__photo img { object-position: 50% 62%; }
	.cb-xmas__copy { width: 100%; gap: 16px; padding: 0 var(--gutter) 40px; margin-top: -2vh; }
	.cb-xmas__title { font-size: min(15vw, 96px); }
	.cb-xmas__ctas { width: 100%; gap: 10px; }
	.cb-xmas__ctas .cb-btn { flex: 1 1 100%; }
	:root[data-cb-style="dark"] .cb-xmas__photo { top: auto; bottom: auto; right: auto; width: calc(100% - 2 * var(--gutter)); margin: 2vh auto 0; height: 40svh; }
	:root[data-cb-style="dark"] .cb-xmas__copy { margin-top: 22px; }
}

/* ---- chapter 2: who we are --------------------------------------------------------- */
.cb-intro { padding: clamp(100px, 15vh, 160px) 0 clamp(70px, 10vh, 120px); }
.cb-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.cb-intro__head { position: sticky; top: calc(var(--header-h) + 60px); }
.cb-intro__body { display: grid; gap: 26px; padding-top: 8px; }
.cb-scrub { margin: 0; font: 400 clamp(26px, 2.6vw, 42px)/1.18 var(--f-display); color: var(--ink); }
.cb-scrub span { opacity: .24; transition: opacity .3s linear; }
.cb-scrub span.is-lit { opacity: 1; }
/* what we make: a plain index, the way it would be printed in a catalogue */
.cb-make { margin-top: clamp(50px, 8vh, 90px); }
.cb-make__label { margin: 0 0 18px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 11px/1.4 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cb-make__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cb-make__item a { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
/* the photographs are white-background product shots: they sit on paper-white tiles in both styles */
.cb-make__photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: #f1f1f0; }
.cb-make__photo img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.cb-make__item a:hover .cb-make__photo img { transform: scale(1.06); }
.cb-make__name { font-size: 14px; line-height: 1.3; color: var(--ink-2); transition: color .3s ease; }
.cb-make__item a:hover .cb-make__name { color: var(--accent); }

/* ---- chapter 3: the four crafts, each with a photograph ------------------------------ */
.cb-services { padding: clamp(90px, 14vh, 150px) 0 clamp(70px, 10vh, 120px); }
.cb-sechead { display: flex; flex-direction: column; margin-bottom: clamp(36px, 6vh, 64px); }
.cb-crafts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 30px); }
.cb-craft { display: flex; flex-direction: column; color: var(--ink); }
.cb-craft__photo { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.cb-craft__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cb-craft:hover .cb-craft__photo img { transform: scale(1.035); }
.cb-craft h3 { margin: 0 0 10px; font: 400 clamp(24px, 2vw, 30px)/1.05 var(--f-display); }
.cb-craft p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.cb-craft p.cb-craft__list { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* the gold-foil card on the About page */
.cb-craft--foil { color: #2b1a08; border-color: transparent; background: linear-gradient(125deg, #8a6324 0%, #d9b46a 24%, #f6e3b0 38%, #c99a4e 55%, #8a6324 78%, #d9b46a 100%); }

/* phones: the crafts become a row you swipe, with arrows and dots under it (theme.js) */
.cb-snav { display: none; }
@media (max-width: 768px) {
	.cb-crafts, .cb-make__grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); }
	.cb-crafts::-webkit-scrollbar, .cb-make__grid::-webkit-scrollbar { display: none; }
	.cb-craft { flex: 0 0 72%; scroll-snap-align: start; }
	.cb-make__item { flex: 0 0 42%; scroll-snap-align: start; }
	.cb-snav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
	.cb-snav__dots { display: flex; gap: 8px; }
	.cb-snav__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color .3s ease, width .4s var(--ease); }
	.cb-snav__dots i.is-on { width: 22px; border-radius: 999px; background: var(--ink); }
	.cb-snav__btn {
		display: grid; place-items: center; width: 44px; height: 44px; padding: 0 !important; margin: 0 !important; cursor: pointer;
		border-radius: 999px !important; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent) !important;
		background: transparent !important; color: var(--ink) !important; box-shadow: none !important; min-height: 0 !important;
	}
	.cb-snav__btn:hover, .cb-snav__btn:focus { background: var(--ink) !important; color: var(--bg) !important; }
	.cb-snav__btn[disabled] { opacity: .3; pointer-events: none; }
	.cb-snav__btn .cb-ico { width: 18px; height: 18px; }
	.cb-snav__btn[data-dir="-1"] .cb-ico { transform: rotate(180deg); }
}

/* ---- chapter 4: the studio room ---------------------------------------------- */
.cb-ch.cb-studio { --ch-bg: var(--stage); }
.cb-studio { color: #f3e7d6; padding: clamp(90px, 13vh, 140px) 0 clamp(40px, 6vh, 70px); }
.cb-studio .cb-display { color: #f6ead7; }
.cb-studio .cb-display em { color: var(--gold-hi); }
.cb-studio .cb-eyebrow { color: #e2c27e; }
.cb-studio .cb-lead { color: rgba(246, 234, 215, .78); }
.cb-studio .cb-btn--ghost { color: #f6ead7; border-color: rgba(246, 234, 215, .4); }
.cb-studio .cb-btn--ghost:hover { background: #f6ead7; color: #2a0b07; }
.cb-studio__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 34px; }
.cb-studio__aside { display: grid; gap: 20px; justify-items: start; }
.cb-studio__frame {
	width: calc(100% - 2 * var(--gutter)); max-width: 1600px; height: min(84svh, 880px); margin: 0 auto;
	border-radius: var(--r-lg); overflow: hidden; position: relative;
	box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(226, 194, 126, .25);
}
.cb-studio__frame .cbps-bleed { width: 100%; margin-left: 0; height: 100%; }
.cb-studio__frame .cb-stage { height: 100%; min-height: 0; }
.cb-studio__missing { padding: 40px; }
.cb-page--studio { padding-top: var(--header-h); }
.cb-page--studio .cb-stage { height: calc(100svh - var(--header-h)); }
.admin-bar .cb-page--studio { padding-top: calc(var(--header-h) + 32px); }
.admin-bar .cb-page--studio .cb-stage { height: calc(100svh - var(--header-h) - 32px); }

/* ---- chapter 5: why — a typeset list beside a photograph -------------------------- */
.cb-why { padding: clamp(100px, 14vh, 150px) 0 clamp(70px, 10vh, 120px); }
.cb-why__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.cb-why__photo { margin: 36px 0 0; max-width: 420px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.cb-why__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.cb-reasons { margin: 0; padding: 0; list-style: none; }
.cb-reason { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px 40px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.cb-reason:last-child { border-bottom: 1px solid var(--line); }
.cb-reason h3 { margin: 0; font: 400 clamp(24px, 2.2vw, 32px)/1.08 var(--f-display); }
.cb-reason p { margin: 0; color: var(--ink-2); font-weight: 300; max-width: 46ch; }
.cb-reason { position: relative; }
.cb-reason::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.cb-reason.is-current::before { transform: scaleX(1); }
.cb-js .cb-reason h3, .cb-js .cb-reason p { opacity: .3; transition: opacity .7s ease, transform .9s var(--ease), color .5s ease; }
.cb-js .cb-reason h3 { transform: translateX(-10px); }
.cb-js .cb-reason p { transform: translateY(6px); }
.cb-js .cb-reason.is-lit h3, .cb-js .cb-reason.is-lit p { opacity: 1; transform: none; }
.cb-reason.is-current h3 { color: var(--accent); }
:root[data-cb-style="dark"] .cb-reason.is-current h3 { color: var(--gold); }

/* ---- chapter 6: how — dieline folds into a box -------------------------------- */
.cb-how { padding: clamp(100px, 14vh, 150px) 0 clamp(70px, 10vh, 120px); --f: 0; }
.cb-how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.cb-steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cb-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; opacity: .5; transition: opacity .5s ease; }
.cb-step.is-active, .cb-step.is-done { opacity: 1; }
.cb-step.is-done .cb-step__n { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.cb-step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); font: 400 22px/1 var(--f-display); transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.cb-step.is-active .cb-step__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cb-step h3 { margin: 4px 0 6px; font: 400 28px/1.05 var(--f-display); }
.cb-step p { margin: 0; color: var(--ink-2); font-weight: 300; }

.cb-fold { display: grid; justify-items: center; gap: 22px; }
.cb-fold__scene { position: relative; width: min(100%, 520px); aspect-ratio: 1; perspective: 1500px; display: grid; place-items: center; }
.cb-fold__box {
	--W: clamp(150px, 16vw, 220px); --D: calc(var(--W) * .7); --H: calc(var(--W) * .5);
	position: relative; width: var(--W); height: var(--D); transform-style: preserve-3d;
	transform: rotateX(calc(58deg - var(--f) * 2deg)) rotateZ(calc(-30deg + var(--f) * 18deg)) translateZ(calc(var(--f) * -20px));
}
.cb-face { position: absolute; transform-style: preserve-3d; backface-visibility: visible;
	background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #fff) , var(--accent-deep));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
/* score lines show while it's still a flat dieline */
.cb-face::before { content: ''; position: absolute; inset: 0; border: 1px dashed rgba(255, 245, 225, calc(.7 - var(--f) * .7)); }
.cb-face--bottom { inset: 0; background: linear-gradient(135deg, var(--accent-deep), #5e0c10); }
.cb-face--front { left: 0; top: 100%; width: var(--W); height: var(--H); transform-origin: 50% 0; transform: rotateX(calc(var(--f) * 90deg)); }
.cb-face--back { left: 0; bottom: 100%; width: var(--W); height: var(--H); transform-origin: 50% 100%; transform: rotateX(calc(var(--f) * -90deg)); }
.cb-face--left { right: 100%; top: 0; width: var(--H); height: var(--D); transform-origin: 100% 50%; transform: rotateY(calc(var(--f) * 90deg)); }
.cb-face--right { left: 100%; top: 0; width: var(--H); height: var(--D); transform-origin: 0 50%; transform: rotateY(calc(var(--f) * -90deg)); }
/* the lid hangs off the back panel's far edge and closes last (--lid from theme.js) */
.cb-face--lid { left: 0; bottom: 100%; width: var(--W); height: var(--D); transform-origin: 50% 100%;
	transform: rotateX(calc(var(--lid, 0) * -90deg)); display: grid; place-items: center;
	background: linear-gradient(135deg, #2a1712, #120a08); }
.cb-face--lid img { width: 46%; opacity: calc(var(--f)); filter: drop-shadow(0 0 6px rgba(226, 194, 126, .5)); }
.cb-fold__shadow { position: absolute; left: 50%; top: 62%; width: 70%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(rgba(30, 8, 4, .35), transparent 70%); filter: blur(8px); opacity: calc(.4 + var(--f) * .6); z-index: -1; }
.cb-fold__caption { margin: 0; font: 500 11px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cb-fold__caption span { color: var(--gold); }

/* ---- chapter 7: the invitation ----------------------------------------------- */
.cb-cta { --ch-bg: transparent; background: var(--cta-bg); color: #f8ecdc; display: grid; align-items: center; overflow: hidden; text-align: center; }
.cb-cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; padding-block: 120px; }
.cb-cta .cb-eyebrow { color: #f0d79c; justify-content: center; }
.cb-cta .cb-display { color: #f8ecdc; max-width: 17ch; }
.cb-cta .cb-display em { color: #f0d79c; }
.cb-cta .cb-lead { color: rgba(248, 236, 220, .82); margin-inline: auto; }
.cb-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cb-cta .cb-btn--primary { background: #f6e7c8; color: #5a0d11; }
.cb-cta .cb-btn--primary:hover { background: #fff6e2; }
.cb-cta .cb-btn--ghost { color: #f8ecdc; border-color: rgba(248, 236, 220, .45); }
.cb-cta .cb-btn--ghost:hover { background: #f8ecdc; color: #4d080b; }

/* ---- footer ------------------------------------------------------------------ */
.cb-footer { position: relative; z-index: 1; background: var(--foot-bg); color: var(--foot-ink); padding: clamp(80px, 12vh, 130px) 0 34px; overflow: hidden; }
.cb-footer .cb-eyebrow { color: #e2c27e; }
.cb-footer__id { display: grid; gap: 22px; justify-items: start; align-self: start; }
.cb-footer__id .cb-eyebrow { margin: 0; }
.cb-footer__logo { display: block; height: 76px; width: auto; }
.cb-footer__hours { margin: 0; color: rgba(241, 230, 215, .8); }
.cb-footer__hours small { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 230, 215, .5); }
.cb-footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.cb-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cb-footer__contact a, .cb-footer__static { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(241, 230, 215, .12); text-decoration: none; color: inherit; transition: padding .4s var(--ease), color .3s ease; }
.cb-footer__contact a:hover { padding-left: 10px; color: #f3dfae; }
.cb-footer__contact .cb-ico { width: 22px; height: 22px; flex: 0 0 auto; color: #e2c27e; }
.cb-footer__contact small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 230, 215, .5); margin-bottom: 3px; }
.cb-footer__bottom { margin-top: clamp(50px, 9vh, 100px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; padding-top: 22px; border-top: 1px solid rgba(241, 230, 215, .12); font-size: 13px; color: rgba(241, 230, 215, .6); }
.cb-footer__bottom p { margin: 0; }
.cb-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.cb-footer__links a { text-decoration: none; }
.cb-footer__links a:hover { color: #f3dfae; }
.cb-footer__social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(241, 230, 215, .25); }
.cb-footer__social .cb-ico { width: 18px; height: 18px; }

/* ---- inner pages --------------------------------------------------------------- */
.cb-page { padding-top: var(--header-h); min-height: 70vh; }
.cb-pagehead { padding: clamp(60px, 12vh, 140px) 0 clamp(30px, 6vh, 60px); border-bottom: 1px solid var(--line); margin-bottom: 50px; }
.cb-prose { max-width: 860px; padding-bottom: 100px; }
.cb-prose h2, .cb-prose h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; }
.cb-prose h2 { font-size: clamp(30px, 3vw, 44px); margin: 1.6em 0 .5em; }
.cb-prose a { color: var(--accent); }
.cb-page--elementor { padding-top: var(--header-h); }
.cb-404 { display: grid; align-items: center; min-height: 80vh; }
.cb-404 .cb-wrap { display: grid; gap: 22px; }
.cb-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }

/* ---- reveal ------------------------------------------------------------------- */
.cb-js [data-cb-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.cb-js [data-cb-reveal].is-in { opacity: 1; transform: none; }

/* ---- responsive --------------------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 769px) {
	.cb-crafts { grid-template-columns: repeat(2, 1fr); }
	.cb-craft__photo { aspect-ratio: 4 / 3; }
}
/* portrait screens: words on top, the box under them, then the text */
@media (max-aspect-ratio: 4/5) {
	.cb-hero { grid-template-rows: var(--header-h) auto 1fr auto; }
	.cb-hero__type { align-self: start; padding-top: 4vh; }
	.cb-giant--1 { font-size: min(8.6vw, 66px); }
	.cb-giant--2 { font-size: min(15.6vw, 120px); }
	.cb-hero__stage { position: relative; grid-row: 3; top: auto; right: auto; justify-self: center; align-self: center;
		width: min(70vw, 440px); margin: 2vh 0 0;
		transform: translateY(calc(var(--stay, 0) * -30px + var(--cover, 0) * -60px)); }
	.cb-hero__spec { position: static; margin-top: -1%; justify-content: center; white-space: nowrap; font-size: 9.5px; letter-spacing: .1em; }
	.cb-hero__spec::before { display: none; }
	.cb-hero__copy { grid-row: 4; width: 100%; padding-right: var(--hero-x); padding-top: 14px; gap: 18px; }
	.cb-hero__sub { flex-basis: 100%; }
	.cb-hero__ctas { width: 100%; flex-wrap: nowrap; gap: 10px; }
	.cb-hero__ctas .cb-btn { flex: 1 1 auto; padding: 0 14px; font-size: 12px; gap: 8px; }
	.cb-hero__ctas .cb-btn .cb-ico { display: none; }
	.cb-crop { display: none; }
}
@media (max-width: 960px) {
	:root { --header-h: 66px; }
	.cb-nav, .cb-header__cta { display: none; }
	.cb-burger { display: block; }
	/* phones and tablets: menu button left, logo centred, "Start a project" right;
	   the light / dark switch is at the bottom of the menu */
	.cb-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
	.cb-header__tools { display: contents; }
	.cb-burger { grid-column: 1; grid-row: 1; justify-self: start; }
	.cb-brand { grid-column: 2; grid-row: 1; justify-self: center; }
	.cb-header__start { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; --h: 40px; padding: 0 16px; font-size: 11px; letter-spacing: .08em; }
	.cb-header__tools .cb-style-toggle { display: none; }
	.cb-hud { display: none; }
	.cb-intro__grid, .cb-why__grid, .cb-how__grid, .cb-studio__head, .cb-footer__top { grid-template-columns: 1fr; }
	.cb-intro__head, .cb-why__head { position: static; }
	.cb-why__photo { max-width: none; }
	.cb-reason { grid-template-columns: 1fr; padding: 22px 0; }
	/* phones: the chapter is taller than the screen and rests on its bottom edge while the
	   box folds, so the box sits under the steps where it stays in view */
	.cb-fold__scene { width: min(100%, 300px); }
	.cb-how { padding-bottom: 40px; }
	.cb-ch--cover { border-radius: 16px 16px 0 0; }
}
/* small phones: a slightly smaller logo and button keep the logo truly centred */
@media (max-width: 430px) {
	.cb-header__bar { gap: 6px; }
	.cb-header .cb-logo { height: 32px; }
	.cb-header__start { --h: 38px; padding: 0 12px; font-size: 12px; letter-spacing: .01em; text-transform: none; }
}
@media (max-width: 370px) {
	.cb-header .cb-logo { height: 28px; }
	.cb-header__start { padding: 0 10px; font-size: 11.5px; }
	.cb-burger { width: 40px; height: 40px; }
	.cb-burger span { left: 11px; right: 11px; }
	.cb-burger span:first-child { top: 15px; } .cb-burger span:last-child { top: 23px; }
	.cb-burger[aria-expanded="true"] span:first-child, .cb-burger[aria-expanded="true"] span:last-child { top: 19px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.cb-brand__word { font-size: 20px; }
	.cb-logo { height: 40px; }
	.cb-brand__seal { width: 34px; height: 34px; }
	.cb-studio__frame { height: 78svh; width: calc(100% - 20px); }
	.cb-btn { --h: 50px; padding: 0 22px; }
	.cb-btn--lg { --h: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
	.cb-ch { transform: none !important; }
	.cb-js [data-cb-reveal] { opacity: 1; transform: none; }
}

.cb-anchor { display: block; height: 0; }

/* =============================================================================
   Inner pages (templates/*)
   ========================================================================== */
.cb-page--theme { padding-top: 0; }
.cb-block { padding: clamp(70px, 11vh, 130px) 0; }
.cb-block + .cb-block { padding-top: 0; }

/* page hero */
.cb-phero { --trim-x: clamp(26px, 3.2vw, 52px); --trim-top: calc(var(--header-h) + 16px);
	position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(70px, 14vh, 150px)) 0 clamp(60px, 10vh, 110px); border-bottom: 1px solid var(--line); background: var(--bg); }
.cb-phero__word { position: absolute; right: -2vw; bottom: -.18em; font: 400 clamp(120px, 26vw, 460px)/.8 var(--f-display); letter-spacing: -.04em; color: color-mix(in srgb, var(--ink) 5%, transparent); pointer-events: none; white-space: nowrap; }
.cb-phero__inner { position: relative; display: grid; gap: 26px; justify-items: start; }
.cb-phero__title { max-width: 14ch; font-size: clamp(46px, 7.4vw, 128px); }
.cb-phero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* about */
.cb-manifesto .cb-wrap { display: grid; gap: 18px; max-width: 1100px; }
.cb-manifesto .cb-scrub { font-size: clamp(30px, 4vw, 62px); line-height: 1.08; }
.cb-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.cb-split__text { display: grid; gap: 30px; }
.cb-promise { margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line); font: 400 clamp(26px, 2.6vw, 40px)/1.15 var(--f-display); color: var(--accent); }
:root[data-cb-style="dark"] .cb-promise { color: var(--gold); }
.cb-study__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.cb-study__list li { display: flex; gap: 14px; align-items: baseline; padding: 22px 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font: 400 24px/1.15 var(--f-display); }
.cb-mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cb-mv__card { padding: clamp(30px, 4vw, 54px); border-radius: var(--r-lg); min-height: 300px; display: grid; align-content: space-between; gap: 30px; }
.cb-mv__card .cb-eyebrow { color: inherit; opacity: .8; }
.cb-mv__card--noir { background: #171010; color: #f3e7d6; }
.cb-mv__card--noir .cb-eyebrow { color: #e2c27e; opacity: 1; }
.cb-mv__text { margin: 0; font: 400 clamp(24px, 2.4vw, 36px)/1.2 var(--f-display); }

/* services */
.cb-svcs .cb-wrap { display: grid; gap: clamp(60px, 10vh, 120px); }
.cb-svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; scroll-margin-top: calc(var(--header-h) + 20px); }
.cb-svc--flip .cb-svc__photo { order: 2; }
.cb-svc__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.cb-svc__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-svc__body { display: grid; gap: 22px; }
.cb-svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.cb-svc__list li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cb-svc__list li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo)); transform: rotate(45deg) scale(.7); }
.cb-blank__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.cb-blank__inner > div { display: grid; gap: 22px; }
.cb-blank__sheet { aspect-ratio: 1.414; border-radius: 6px; background: #fbf8f2; box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, .04); display: grid; place-content: center; text-align: center; transform: rotate(-4deg); position: relative; }
.cb-blank__sheet span { font: 400 clamp(38px, 5vw, 76px)/.95 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(168, 120, 47, .55); }
.cb-blank__sheet::after { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(200, 37, 43, .35); border-radius: 3px; }

/* FAQ */
.cb-faq__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.cb-faq { border-bottom: 1px solid var(--line); }
.cb-faq:first-child { border-top: 1px solid var(--line); }
.cb-faq summary { display: grid; grid-template-columns: 46px 1fr 28px; gap: 14px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; }
.cb-faq summary::-webkit-details-marker { display: none; }
.cb-faq__n { font: 500 12px/1 var(--f-ui); letter-spacing: .14em; color: var(--gold); }
.cb-faq__q { font: 400 clamp(21px, 1.9vw, 28px)/1.2 var(--f-display); }
.cb-faq__pm { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.cb-faq__pm::before, .cb-faq__pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.cb-faq__pm::after { transform: rotate(90deg); }
.cb-faq[open] .cb-faq__pm::after { transform: rotate(0deg); }
.cb-faq[open] .cb-faq__pm { background: var(--accent); border-color: var(--accent); }
.cb-faq[open] .cb-faq__pm::before, .cb-faq[open] .cb-faq__pm::after { background: var(--on-accent); }
.cb-faq__a p { margin: 0 0 26px 60px; max-width: 62ch; color: var(--ink-2); font-weight: 300; }
.cb-faq__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.cb-faq__card { display: grid; gap: 16px; justify-items: start; padding: 34px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cb-faq__card img { width: 64px; height: 64px; border-radius: 50%; }
.cb-faq__card p { margin: 0; color: var(--ink-2); }

/* contact */
.cb-contact__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.cb-contact__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.cb-ccard { display: grid; gap: 6px; align-content: start; min-height: 190px; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s ease; }
.cb-ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cb-ccard .cb-ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 18px; }
.cb-ccard small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cb-ccard strong { font: 400 21px/1.2 var(--f-display); overflow-wrap: anywhere; }
.cb-ccard span { font-size: 13px; color: var(--muted); }
.cb-ccard--wa { background: #1f6f4a; color: #f1fff6; border-color: transparent; }
.cb-ccard--wa .cb-ico, .cb-ccard--wa small, .cb-ccard--wa span { color: rgba(241, 255, 246, .8); }
.cb-contact__form { padding: clamp(26px, 4vw, 46px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 22px; }
.cb-contact__quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.cb-contact__quote p { margin: 0; max-width: 40ch; color: var(--ink-2); font-size: 15px; }
.cb-map { padding: 0 var(--gutter) clamp(60px, 10vh, 110px); }
.cb-map iframe { display: block; width: 100%; max-width: var(--wrap); height: 420px; margin: 0 auto; border: 0; border-radius: var(--r-lg); filter: grayscale(.6) sepia(.15); }
:root[data-cb-style="dark"] .cb-map iframe { filter: grayscale(.8) invert(.9) hue-rotate(180deg) brightness(.9); }

/* forms printed by plugins (Contact Form 7, CB Jobs) */
.cb-contact__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cb-contact__form select, .cb-contact__form textarea,
.cb-apply__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cb-apply__form select, .cb-apply__form textarea {
	width: 100%; min-height: 52px; padding: 14px 18px; border-radius: var(--r) !important; border: 1px solid var(--line) !important;
	background: var(--bg) !important; color: var(--ink) !important; font: 400 16px/1.4 var(--f-ui) !important; box-shadow: none !important;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.cb-contact__form textarea, .cb-apply__form textarea { min-height: 150px; }
.cb-contact__form :is(input, select, textarea):focus, .cb-apply__form :is(input, select, textarea):focus { outline: none; border-color: var(--gold) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent) !important; }
.cb-contact__form label, .cb-apply__form label { color: var(--ink-2) !important; font: 500 12px/1.4 var(--f-ui) !important; letter-spacing: .12em; text-transform: uppercase; }
.cb-contact__form .wpcf7-submit, .cb-apply__form .cb-apply-submit {
	height: 54px !important; padding: 0 30px !important; border: 0 !important; border-radius: 999px !important; cursor: pointer;
	background: var(--accent) !important; color: var(--on-accent) !important; font: 500 14px/1 var(--f-ui) !important; letter-spacing: .06em; text-transform: uppercase;
	transition: background-color .3s ease, transform .35s var(--ease) !important;
}
.cb-contact__form .wpcf7-submit:hover, .cb-apply__form .cb-apply-submit:hover { background: var(--accent-deep) !important; border-radius: 999px !important; }
.cb-apply__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.cb-apply__grid > div:first-child { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 30px); }
.cb-apply__form { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cb-apply__form .cb-apply-wrap, .cb-apply__form .cb-apply-form { background: transparent !important; box-shadow: none !important; padding: 0 !important; color: var(--ink); }
.cb-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cb-perks li { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font: 400 22px/1.2 var(--f-display); }
.cb-jobs-none { margin: 0; max-width: 60ch; font: 400 clamp(22px, 2vw, 30px)/1.3 var(--f-display); color: var(--ink); }
.cb-jobs-none a { color: var(--accent); text-underline-offset: .18em; }

/* Christmas collection page: a festive head with the same photograph as the home chapter */
.cb-xhead {
	--x-ink: #26232a; --x-red: #b3161d; --x-gold: #b08a45;
	position: relative; overflow: hidden; color: var(--x-ink);
	padding: calc(var(--header-h) + clamp(50px, 10vh, 120px)) 0 clamp(56px, 9vh, 100px);
	background: linear-gradient(180deg, #e2d2c6 0%, #ecdccf 46%, #f1e5d9 100%);
}
.cb-xhead__photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(52%, 860px); margin: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
.cb-xhead__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; }
.cb-xhead__inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.cb-xhead__inner > * { max-width: 620px; }
.cb-xhead .cb-eyebrow { margin: 0; color: var(--x-gold); }
.cb-xhead__title { color: var(--x-ink); font-size: clamp(46px, 6vw, 100px); }
.cb-xhead__title em { color: var(--x-red); }
.cb-xhead .cb-lead { color: #4a4148; }
.cb-xhead__how { display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0; padding: 0; list-style: none;
	font: 500 12px/1.4 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--x-ink); }
.cb-xhead__how li { display: inline-flex; align-items: center; }
.cb-xhead__how li + li::before { content: ''; width: 30px; height: 1px; margin: 0 14px; background: var(--x-gold); }
.cb-xhead__count { margin: 0; font-size: 13px; color: #6d6168; }
.cb-xcol { padding: clamp(50px, 8vh, 90px) 0 clamp(80px, 12vh, 130px); }
:root[data-cb-style="dark"] .cb-xhead { --x-ink: #f4eadc; --x-red: #e2473f; --x-gold: #e2c27e;
	background: radial-gradient(80% 90% at 75% 45%, #3a1012 0%, #1f0a0b 55%, #120606 100%); }
:root[data-cb-style="dark"] .cb-xhead__photo { top: calc(var(--header-h) + 30px); bottom: 30px; right: var(--gutter); width: min(40%, 640px);
	border-radius: var(--r-lg); overflow: hidden; -webkit-mask-image: none; mask-image: none; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
:root[data-cb-style="dark"] .cb-xhead .cb-lead { color: rgba(244, 234, 220, .78); }
:root[data-cb-style="dark"] .cb-xhead__count { color: rgba(244, 234, 220, .6); }
@media (max-width: 860px) {
	.cb-xhead { padding-top: var(--header-h); }
	.cb-xhead__photo { position: relative; width: 100%; height: 40svh;
		-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
	.cb-xhead__inner { margin-top: -2vh; gap: 16px; }
	.cb-xhead__how { flex-direction: column; align-items: flex-start; gap: 8px; }
	.cb-xhead__how li + li::before { display: none; }
	.cb-xhead__how li::before { content: ''; width: 18px; height: 1px; margin-right: 12px; background: var(--x-gold); }
	:root[data-cb-style="dark"] .cb-xhead__photo { top: auto; bottom: auto; right: auto; width: calc(100% - 2 * var(--gutter)); height: 34svh; margin: 18px auto 0; }
	:root[data-cb-style="dark"] .cb-xhead__inner { margin-top: 24px; }
}

/* the closing band on inner pages */
.cb-band.cb-cta { display: block; padding: 0; min-height: 0; }
.cb-band .cb-cta__inner { padding-block: clamp(90px, 14vh, 150px); }

@media (max-width: 960px) {
	.cb-split__grid, .cb-mv__grid, .cb-svc, .cb-blank__inner, .cb-faq__grid, .cb-contact__grid, .cb-apply__grid { grid-template-columns: 1fr; }
	.cb-svc--flip .cb-svc__photo { order: 0; }
	.cb-svc__photo { aspect-ratio: 4 / 3; }
	.cb-faq__aside, .cb-apply__grid > div:first-child { position: static; }
}
@media (max-width: 640px) {
	.cb-contact__cards, .cb-svc__list { grid-template-columns: 1fr; }
	.cb-faq summary { grid-template-columns: 34px 1fr 28px; }
	.cb-faq__a p { margin-left: 48px; }
}
