/*
 * EYU LABS
 *
 * One stylesheet, written mobile first: the base rules are the phone, wider screens add to them.
 *
 * The look: a white page, near-black type, and the EYU LABS logo's blue (#2563EB) on every button and
 * accent. Headings are big and uppercase (Bricolage Grotesque), text is Hanken Grotesk, small labels are
 * JetBrains Mono. The two apps sit in dark cards of their own with their own real pictures. The studio is
 * always white, whatever the visitor's device setting; only the app cards and the two app pages are dark.
 *
 * The two app pages are worlds of their own: .world-suits (carbon and lime) and .world-earn (black and
 * gold). They set their own colours below.
 *
 * Other rules: nothing loops; everything that moves stops for people who ask their device for reduced
 * motion; there are no italics.
 */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-wght.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */

:root {
	--paper: #ffffff;
	--paper-2: #f3f5f9;
	--ink: #15171a;
	--ink-soft: #3a3f46;
	--muted: #5a616b;
	--line: #e1e4ea;
	--rule: #e1e4ea;
	--brand: #2563eb;     /* the blue of the logo: every button and accent */
	--accent: #2563eb;
	--on-accent: #ffffff;
	--lime: #c6ff34;
	--on-lime: #12140a;
	--gold: #d4af37;
	--on-gold: #17120a;
	--btn-bg: #2563eb;
	--btn-fg: #ffffff;
	--sweep: #15171a;
	--on-sweep: #ffffff;
	--tint: #e9effd;      /* a pale wash of the logo blue for picture stages */
	--r1: 6px;
	--r2: 14px;
	--wrap: 1180px;
	--gutter: clamp(16px, 4.2vw, 32px);
	--header: 68px;
	--shadow: 0 24px 48px -24px rgba(20, 22, 26, 0.35);
	--display-case: uppercase;
	--display-track: 0.005em;
	--display-lh: 0.98;
	--f-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
	--f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
	color-scheme: light;
}

/* EYU SUITS: the app's own world */
body.world-suits {
	--paper: #191c1f; /* the mascot picture's own background, so it has no edge */
	--paper-2: #20242a;
	--ink: #eef0ea;
	--ink-soft: #cdd1c8;
	--muted: #9aa0a8;
	--line: #2e343b;
	--rule: #2e343b;
	--brand: #6ea0ff;
	--accent: #c6ff34;
	--on-accent: #12140a;
	--btn-bg: var(--lime);
	--btn-fg: var(--on-lime);
	--sweep: #ffffff;
	--on-sweep: #12140a;
	--shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
	color-scheme: dark;
}
/* EarnUnlock: the app's own world */
body.world-earn {
	--paper: #0b0b0c;
	--paper-2: #141416;
	--ink: #f2f0ea;
	--ink-soft: #d6d3cc;
	--muted: #a3a09a;
	--line: #2a2a2e;
	--rule: #2a2a2e;
	--brand: #6ea0ff;
	--accent: #d4af37;
	--on-accent: #17120a;
	--btn-bg: var(--gold);
	--btn-fg: var(--on-gold);
	--sweep: #ffffff;
	--on-sweep: #17120a;
	--shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
	color-scheme: dark;
}
html:has(body.world-suits) { background: #191c1f; }
html:has(body.world-earn) { background: #0b0b0c; }

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); background: var(--paper); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.62 var(--f-text);
	font-synthesis-style: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
/* No italics anywhere on this website (the owner's rule). No italic font is loaded, and every element a
   browser would slant is set upright, so nothing can be faked either. */
em, i, cite, dfn, var, address, q, blockquote, caption, figcaption, .wp-caption-text { font-style: normal; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r1); }
.skip:focus { top: 12px; }
.icon { flex: none; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ type pieces */

.section-title, .page-head h1, .hero-title, .app-card-name, .number-big, .number-name, .band-title, .statement-title, .suits-title,
.earn-id h1, .buy-price, .manifesto dt, .feature-list dt, .prose h2, .toc-title, .room h3, .tier-name,
.tier-price, .custom-amount h2, .about-links-name {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: var(--display-lh);
	letter-spacing: var(--display-track);
	text-transform: var(--display-case);
	text-wrap: balance;
}
.section-title { font-size: clamp(2rem, 5.4vw, 3.2rem); margin-bottom: clamp(24px, 4vw, 44px); }
.lede { font-size: clamp(1.12rem, 2.3vw, 1.36rem); line-height: 1.5; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.fine { font-size: 0.92rem; line-height: 1.5; color: var(--muted); max-width: 46em; }
.fine a { text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r1);
	font: 600 1rem/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--ghost { border-color: var(--muted); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: inset 0 0 0 1px rgba(18, 20, 10, 0.28); }
.btn--lime:hover { background: #d4ff63; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: #e2bf4d; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn--block { width: 100%; }
/* the hover is a block that sweeps in from the left, like the logo's blocks */
.btn--primary, .btn--ghost { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before, .btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep); transform: scaleX(0); transform-origin: left center; transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1); }
.btn--ghost::before { background: var(--ink); }
.btn--primary:hover::before, .btn--ghost:hover::before { transform: scaleX(1); }
.btn--primary:hover { color: var(--on-sweep); }
.btn--ghost:hover { color: var(--paper); }

/* ----------------------------------------------------------------- header */

/* WordPress's toolbar (shown to the signed-in administrator) is fixed at the top: sit below it, not under it */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.logo-mark { display: block; flex: none; }
.brand-name { font: 700 0.8rem/1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: 0.34em; text-transform: uppercase; }
@media (max-width: 380px) { .brand-name { letter-spacing: 0.24em; } }

.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-right: -12px; background: none; border: 0; cursor: pointer; font-weight: 600; }
.menu-btn-close { display: none; }
.site-header[data-open] .menu-btn-open { display: none; }
.site-header[data-open] .menu-btn-close { display: inline-flex; }

.site-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a { display: flex; align-items: center; min-height: 54px; font-size: 1.2rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }

@media (max-width: 899px) {
	html.js .site-nav { display: none; position: absolute; inset: var(--header) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	html.js .site-header[data-open] .site-nav { display: flex; }
}
@media (min-width: 900px) {
	.menu-btn { display: none; }
	.site-nav { flex-direction: row; align-items: center; padding: 0; }
	.nav-list { flex-direction: row; gap: 30px; }
	.nav-list a { min-height: 44px; font-size: 1rem; border-bottom: 0; }
	.nav-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; text-decoration-thickness: 2px; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--flush { padding-top: 0; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: 18px; }
.page-head .fine { margin-top: 14px; }
.page-head .actions { margin-top: 24px; }

/* the fade-in on arrival: once, short, off for reduced motion */
@media (prefers-reduced-motion: no-preference) {
	[data-in] { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
	[data-in="2"] { animation-delay: 0.08s; }
	[data-in="3"] { animation-delay: 0.16s; }
	@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
	html.js .reveal.is-in { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- the studio: home */

/* the opening: a big headline, one word on a block of the logo's blue, one sentence, two buttons */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.hero--hub .hero-title { font-size: clamp(2.3rem, 11.5vw, 7.4rem); line-height: 0.92; letter-spacing: -0.01em; }
.hl { display: inline-block; background: var(--brand); color: #fff; padding: 0.03em 0.14em 0; line-height: 0.92; }
.hero-foot { display: grid; gap: 26px; margin-top: clamp(22px, 3.6vw, 40px); justify-items: start; }

/* the two apps: each in a big dark card of its own, with its own real pictures and its own colour */
.block { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.showcase { display: grid; gap: clamp(18px, 3vw, 28px); }
.app-card {
	--paper: #191c1f; --paper-2: #20242a; --ink: #eef0ea; --ink-soft: #cdd1c8; --muted: #9aa0a8; --line: #2e343b;
	--sweep: #ffffff; --on-sweep: #15171a; --tick: var(--lime);
	display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r2);
	background: var(--paper); color: var(--ink);
}
.app-card--earn { --paper: #0b0b0c; --paper-2: #141416; --ink: #f2f0ea; --ink-soft: #d6d3cc; --muted: #a3a09a; --line: #2a2a2e; --tick: var(--gold); }
.app-card-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; align-content: center; padding: clamp(26px, 4.4vw, 56px); }
.app-card-id { display: flex; align-items: center; gap: 16px; max-width: 100%; }
.app-card-id img { width: 64px; height: 64px; border-radius: var(--r2); flex: none; }
.app-card-id > div { min-width: 0; }
.app-card-name { font-size: clamp(1.7rem, 8.6vw, 3rem); line-height: 0.95; overflow-wrap: anywhere; }
@media (max-width: 480px) { .app-card-id { gap: 12px; } .app-card-id img { width: 52px; height: 52px; } }
.app-card-platform { font: 400 0.82rem/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.app-card-does { color: var(--ink); font-size: 1.12rem; line-height: 1.5; max-width: 30em; }
.app-card-tasks { display: grid; gap: 8px; color: var(--ink-soft); max-width: 32em; }
.app-card-tasks li { display: flex; gap: 10px; align-items: flex-start; }
.app-card-tasks .icon { margin-top: 0.22em; color: var(--tick); }
.app-card-facts { display: grid; gap: 4px; font: 400 0.8rem/1.45 var(--f-mono); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.app-card-line { font-weight: 700; color: var(--ink); max-width: 32em; }
.app-card .text-link { color: var(--ink); }
.app-card-art { align-self: end; min-width: 0; overflow: hidden; }
/* the EYU SUITS window rises out of the bottom-right corner of its card */
.app-card-art--window { padding: clamp(4px, 2vw, 20px) 0 0 clamp(20px, 4vw, 40px); }
.app-card-art--window img { width: 110%; max-width: none; border-radius: var(--r2) 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: -24px -12px 60px -24px rgba(0, 0, 0, 0.7); }
/* the EarnUnlock phones stand along the bottom edge of theirs, the outer two sunk lower than the middle one */
.app-card-art--phones { display: flex; justify-content: center; align-items: flex-end; padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 40px) 0; }
.app-card-art--phones img { flex: 0 0 37%; min-width: 0; max-width: 230px; border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.app-card-art--phones img + img { margin-left: -6%; }
.app-card-art--phones img:nth-child(2) { position: relative; z-index: 2; box-shadow: 0 0 40px 6px rgba(0, 0, 0, 0.6); }
.app-card-art--phones img:nth-child(odd) { margin-bottom: -12%; }
@media (max-width: 559px) {
	/* on a phone the third picture peeks in from the right edge, so there is more to see */
	.app-card-art--phones { justify-content: flex-start; padding-right: 0; }
	.app-card-art--phones img { flex-basis: 46%; }
	.app-card-art--phones img + img { margin-left: -8%; }
}
@media (min-width: 960px) {
	.app-card--suits { grid-template-columns: 5fr 7fr; }
	.app-card--earn { grid-template-columns: 6fr 5fr; }
	.app-card--earn .app-card-art { order: -1; }
	.app-card-art--window { padding-top: clamp(40px, 4vw, 64px); }
}

/* three big numbers about how the studio works */
.numbers { display: grid; gap: 14px; }
.number { display: grid; gap: 4px; align-content: start; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper-2); }
.number-big { font-weight: 800; font-size: clamp(4rem, 9vw, 6.2rem); line-height: 0.85; letter-spacing: -0.02em; color: var(--brand); }
.number-name { font-size: 1.5rem; line-height: 1.1; margin-top: 8px; }
.number p { color: var(--ink-soft); max-width: 22em; }
@media (min-width: 760px) { .numbers { grid-template-columns: repeat(3, 1fr); } }

/* a real job in the app, start to finish: the picture sits in a pale wash of the logo blue */
.work { display: grid; gap: clamp(24px, 4vw, 40px); }
.work-copy { max-width: 36em; }
.work-copy .section-title { margin-bottom: 16px; }
.work-copy p { color: var(--ink-soft); font-size: 1.12rem; }
.stage { background: var(--tint); border-radius: var(--r2); padding: clamp(18px, 4vw, 52px) clamp(18px, 4vw, 52px) 0; overflow: hidden; }
.stage img { width: 100%; max-width: 980px; margin-inline: auto; border-radius: 12px 12px 0 0; border: 1px solid #2e343b; border-bottom: 0; box-shadow: 0 -14px 50px -14px rgba(37, 99, 235, 0.45); }
@media (min-width: 960px) { .work { grid-template-columns: 4fr 8fr; align-items: center; } }

.facts { display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { margin-top: 0.22em; color: var(--accent); }
.facts--big { gap: 14px; font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.facts--big .icon { margin-top: 0.2em; }

/* how we work: a few plain statements, set large */
.manifesto { border-top: 1px solid var(--line); }
.manifesto > div { display: grid; gap: 10px 48px; padding: clamp(22px, 3.4vw, 34px) 0; border-bottom: 1px solid var(--line); }
.manifesto dt { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.02; }
.manifesto dd { color: var(--ink-soft); max-width: 36em; align-self: center; }
.manifesto dd a { text-underline-offset: 3px; }
@media (min-width: 820px) { .manifesto > div { grid-template-columns: 1fr 1fr; align-items: baseline; } }

/* membership strip */
.band { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r2); padding: clamp(26px, 5vw, 52px); display: grid; gap: 22px; align-items: center; }
.band-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.band p:not(.actions) { color: var(--ink-soft); max-width: 36em; }
@media (min-width: 800px) { .band { grid-template-columns: 1fr auto; gap: 48px; } }

/* ------------------------------------------------------------- accordion */

.accordion { max-width: 52rem; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--f-text); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > p { padding: 0 0 20px; color: var(--ink-soft); max-width: 44em; }
.accordion details > p a { text-underline-offset: 3px; }

/* ----------------------------------------------------------------- prose */

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 1.1rem/1.3 var(--f-text); margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose ul li::marker { color: var(--muted); }
.prose ul.social { list-style: none; padding-left: 0; display: flex; }
.prose .social a { text-decoration: none; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose .accordion { margin-top: 0.5em; }
.prose-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .prose-grid:has(.prose + .prose) { grid-template-columns: 1fr 1fr; gap: 72px; } }
.callout { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper-2); color: var(--ink) !important; font-size: 1.12rem; }
.entry > * { max-width: none; }

/* the About page */
.note-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 24em; text-wrap: balance; }
.note-big + .fine { margin-top: 18px; }
.about-grid { display: grid; gap: clamp(40px, 6vw, 72px); }
.about-links { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 46rem; }
.about-links a { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.about-links-name { font-size: 1.7rem; line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.about-links a:hover .about-links-name { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.about-links-text { color: var(--ink-soft); }

/* ------------------------------------------------------------ legal pages */

.legal { display: grid; gap: 32px; }
.legal > .prose:only-child { grid-column: 1 / -1; }
.toc { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper-2); align-self: start; }
.toc-title { font-size: 1.3rem; margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; min-height: 36px; align-items: center; text-decoration: none; color: var(--ink-soft); }
.toc a::before { content: counter(toc) "."; flex: none; width: 2.4em; white-space: nowrap; font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) {
	.legal { grid-template-columns: 260px minmax(0, 42rem); gap: 64px; justify-content: start; }
	.toc { position: sticky; top: calc(var(--header) + 24px); }
}

/* --------------------------------------------------------------- membership */

.tiers { display: grid; gap: 16px; margin-bottom: 20px; }
.tier { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: clamp(22px, 3.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper-2); }
.tier-name { font-size: 1.6rem; }
.tier-price { font-size: 3.2rem; line-height: 0.9; }
.tier-text { color: var(--ink-soft); }
.tier .btn { margin-top: 8px; }
.custom-amount { display: grid; gap: 16px; align-items: center; padding: clamp(22px, 3.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: 24px; }
.custom-amount h2 { font-size: 1.8rem; margin-bottom: 4px; }
.custom-amount p { color: var(--ink-soft); }
@media (min-width: 760px) {
	.tiers { grid-template-columns: repeat(3, 1fr); }
	.custom-amount { grid-template-columns: 1fr auto; }
}

/* ============================================== the two app worlds ========= */

.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.back a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--muted); }
.back a:hover { color: var(--ink); }
.hero-visual { position: relative; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }

/* EYU SUITS */
.hero--suits .hero-grid { gap: 8px; }
.suits-title { font-size: clamp(3.2rem, 14vw, 6rem); line-height: 0.88; display: block; }
.suits-suits { color: transparent; -webkit-text-stroke: clamp(2px, 0.4vw, 3px) var(--ink); }
.hero-visual--mascot { max-width: 460px; width: 100%; margin-inline: auto; }
/* The picture is a crop of larger artwork, so its lime stripe ends at the crop. Fade the edges and it has none. */
.hero-visual--mascot img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 62% 60% at 42% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 60% at 42% 46%, #000 62%, transparent 100%); }
@media (min-width: 900px) {
	.hero--suits .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
	.suits-title { font-size: clamp(4.2rem, 8vw, 6.4rem); }
}
.window img { width: 100%; border-radius: var(--r2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.window figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

.rooms { display: grid; gap: 16px; }
.room { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r2); background: var(--paper-2); border-top: 3px solid var(--tint, var(--line)); }
.room h3 { font-size: 2.1rem; color: var(--tint, var(--ink)); }
.room p:not(.formats) { color: var(--ink-soft); }
.room--motion { --tint: #f5a524; }
.room--sound { --tint: #c6ff34; }
.room--picture { --tint: #4cb5ff; }
.room--text { --tint: #b79cff; }
.formats { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 0.8rem/1.3 var(--f-mono); letter-spacing: 0.04em; color: var(--muted); }
.chain-note { margin-top: 22px; color: var(--ink-soft); max-width: 40em; }
.chain-note strong { color: var(--ink); }
@media (min-width: 720px) { .rooms { grid-template-columns: 1fr 1fr; } }

.section--statement { background: var(--paper-2); border-block: 1px solid var(--line); }
.statement { display: grid; gap: 32px; align-items: start; }
.statement-title { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 0.94; }
@media (min-width: 900px) { .statement { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; } }

.get > p { color: var(--ink-soft); max-width: 40em; margin-bottom: 28px; }
.link-list { display: grid; gap: 0; max-width: 40rem; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 2px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; text-decoration: none; transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.link-list a:hover { padding-left: 10px; }
.link-list--small a { min-height: 52px; font-size: 1rem; }

/* EarnUnlock */
.earn-id { display: flex; align-items: center; gap: 16px; }
.earn-icon { width: 72px; height: 72px; border-radius: var(--r2); flex: none; }
.earn-id h1 { font-size: clamp(2.8rem, 11vw, 4.8rem); line-height: 0.9; text-transform: none; letter-spacing: -0.03em; }
.hero-visual--phones { display: flex; justify-content: center; max-width: 520px; margin-inline: auto; width: 100%; }
.phone { width: 47%; border-radius: var(--r2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone--b { margin-left: -6%; margin-top: 12%; }
@media (min-width: 900px) { .hero--earn .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 16px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--muted) transparent; -webkit-overflow-scrolling: touch; }
.strip li { flex: 0 0 clamp(150px, 42vw, 210px); scroll-snap-align: start; }
.thumb { display: block; border-radius: var(--r2); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.thumb:hover { transform: translateY(-4px); }
.thumb img { width: 100%; border-radius: var(--r2); border: 1px solid var(--line); }

.feature-list { display: grid; gap: 0 48px; }
.feature-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-size: 1.8rem; color: var(--accent); margin-bottom: 6px; }
.feature-list dd { color: var(--ink-soft); max-width: 32em; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }

/* A slim bar until play is pressed; then it becomes the player (nothing is fetched before that). */
.video { position: relative; max-width: 52rem; border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper-2); overflow: hidden; }
.video.is-playing { aspect-ratio: 16 / 9; }
.video-play { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon text" "icon note"; align-items: center; column-gap: 18px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; padding: 18px 22px; }
.video-icon { grid-area: icon; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.video-play:hover .video-icon { transform: scale(1.06); }
.video-text { grid-area: text; align-self: end; font-weight: 700; font-size: 1.15rem; }
.video-note { grid-area: note; align-self: start; color: var(--muted); font-size: 0.9rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pro { display: grid; gap: 32px; align-items: start; }
.pro-copy > p { color: var(--ink-soft); max-width: 36em; margin-bottom: 20px; }
.buy-box { display: grid; gap: 10px; padding: clamp(22px, 3.4vw, 32px); border: 1px solid var(--accent); border-radius: var(--r2); background: var(--paper-2); }
.buy-label { font: 400 0.8rem/1.3 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.buy-price { display: flex; align-items: baseline; gap: 14px; font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 0.9; color: var(--accent); }
.buy-was { font-size: 1.8rem; color: var(--muted); }
.buy-note { color: var(--ink-soft); margin-bottom: 8px; }
@media (min-width: 900px) { .pro { grid-template-columns: 7fr 5fr; gap: 64px; } .buy-box { position: sticky; top: calc(var(--header) + 24px); } }

.lightbox { padding: 0; border: 0; background: transparent; width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh; color: #f2f0ea; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-img { max-width: min(92vw, 460px); max-height: 88dvh; width: auto; height: auto; border-radius: var(--r2); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px) 28px; margin-top: clamp(24px, 5vw, 56px); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; color: var(--ink-soft); }
.foot-brand a:not(.brand) { text-underline-offset: 3px; }
.foot-h { font: 400 0.8rem/1.3 var(--f-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-col ul { display: grid; }
.foot-col a { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.social { display: flex; flex-wrap: wrap; gap: 4px; }
.social a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: var(--r1); color: var(--ink-soft); }
.social a:hover { color: var(--ink); background: var(--paper-2); }
.social--inline a { display: inline-flex; gap: 10px; padding: 0 14px 0 12px; border: 1px solid var(--line); text-decoration: none; }
.social--inline { gap: 8px; margin-top: 6px; }
@media (min-width: 800px) {
	.foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
	.foot-brand { grid-column: auto; }
}

/* ============================================================== motion: blocks
 * One idea, taken from the logo: things arrive the way a block slides into place.
 *   - the headline rises out of a mask, line by line
 *   - every section heading is revealed by a block of colour sweeping across it (ink on the light
 *     studio, lime on the dark studio and on EYU SUITS, gold on EarnUnlock)
 *   - buttons fill with a block from the left
 *   - the app pictures rise into their cards
 *   - moving between pages is a wipe, and a thin bar along the header shows how far down the page you are
 * All of it is transform or opacity, runs once, and is switched off for reduced motion.
 */
@media (prefers-reduced-motion: no-preference) {
	.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
	.hero-title .line > span { display: block; animation: line-up 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.hero-title .line:nth-child(2) > span { animation-delay: 0.14s; }
	@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }

	/* a section heading: a block sweeps across, and the words are there when it has passed */
	html.js .section-title.reveal { opacity: 1; transform: none; transition: none; position: relative; width: fit-content; max-width: 100%; }
	html.js .section-title.reveal:not(.is-in) { color: transparent; }
	html.js .section-title.reveal::after { content: ""; position: absolute; inset: 0.08em -0.05em 0.04em -0.05em; background: var(--accent); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
	html.js .section-title.reveal.is-in { animation: title-ink 1s steps(1, end) both; }
	html.js .section-title.reveal.is-in::after { animation: title-block 1s cubic-bezier(0.7, 0, 0.2, 1) both; }
	@keyframes title-ink { from { color: transparent; } 46% { color: var(--ink); } to { color: var(--ink); } }
	@keyframes title-block { 0% { transform: scaleX(0); transform-origin: left center; } 45% { transform: scaleX(1); transform-origin: left center; } 46% { transform: scaleX(1); transform-origin: right center; } 100% { transform: scaleX(0); transform-origin: right center; } }

	/* the pictures in the app panels rise into place when the panel is reached */
	html.js .app-card.reveal .app-card-art { transform: translateY(14%); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s; }
	html.js .app-card.reveal.is-in .app-card-art { transform: none; }

	/* moving from page to page: the new page wipes in over the old (browsers that can; others just load) */
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: vt-out 0.5s cubic-bezier(0.7, 0, 0.2, 1) both; }
	::view-transition-new(root) { animation: vt-in 0.5s cubic-bezier(0.7, 0, 0.2, 1) both; }
	@keyframes vt-out { to { opacity: 0.5; transform: translateX(-3%); } }
	@keyframes vt-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
}

/* reading progress: a bar along the foot of the header fills as the page scrolls (pure CSS, where supported) */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; animation: read linear both; animation-timeline: scroll(root block); pointer-events: none; }
		@keyframes read { to { transform: scaleX(1); } }
	}
}

/* ------------------------------------------------------------------- print */

@media print {
	.site-header, .site-footer, .toc, .skip { display: none; }
	body { background: #fff; color: #000; }
	.prose p, .prose li { color: #000; }
}
