/* ==========================================================================
   Coco Coming Soon
   Brand colours taken from the logo
   ========================================================================== */
:root {
	--cs-yellow: #ECC402;
	--cs-blue:   #0079C7;
	--cs-teal:   #01806F;
	--cs-black:  #0B0B0B;
	--cs-cream:  #FBF8F1;
	--cs-ink:    #141414;
	--cs-muted:  #4A4A4A;
	--cs-line:   rgba(20, 20, 20, .10);
	--cs-sans:   "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cs-serif:  "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.cs-body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--cs-cream);
	color: var(--cs-ink);
	font-family: var(--cs-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	position: relative;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.cs-skip {
	position: absolute;
	left: 16px; top: -60px;
	background: var(--cs-black);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	z-index: 100;
	text-decoration: none;
}
.cs-skip:focus { top: 16px; }

:focus-visible {
	outline: 3px solid var(--cs-blue);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Background decoration
   ------------------------------------------------------------------------ */
.cs-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.cs-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--cs-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--cs-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
	opacity: .55;
}
.cs-shape {
	position: absolute;
	border-radius: 28px;
	animation: cs-float 14s ease-in-out infinite;
}
.cs-shape--yellow { width: 200px; height: 200px; background: var(--cs-yellow); top: 34%; left: -110px; transform: rotate(-12deg); }
.cs-shape--blue   { width: 140px; height: 140px; background: var(--cs-blue);   top: 14%;  right: -40px; transform: rotate(18deg); animation-delay: -4s; }
.cs-shape--teal   { width: 180px; height: 180px; background: var(--cs-teal);   bottom: -70px; left: 8%; transform: rotate(14deg); animation-delay: -8s; }
.cs-shape--black  { width: 110px; height: 110px; background: var(--cs-black);  bottom: 10%; right: 7%; transform: rotate(-20deg); animation-delay: -2s; }

@keyframes cs-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -22px; }
}

/* --------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------ */
.cs-header,
.cs-main,
.cs-footer { position: relative; z-index: 1; }

.cs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px clamp(20px, 5vw, 64px) 0;
}
.cs-brand { display: inline-block; line-height: 0; border-radius: 6px; }
.cs-logo {
	width: 74px;
	height: auto;
	display: block;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.cs-brand:hover .cs-logo { transform: rotate(-4deg) scale(1.04); }

.cs-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	background: #fff;
	border: 1px solid var(--cs-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .25);
}
.cs-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--cs-teal);
	box-shadow: 0 0 0 0 rgba(1, 128, 111, .55);
	animation: cs-pulse 1.8s infinite;
}
@keyframes cs-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(1, 128, 111, .55); }
	70%  { box-shadow: 0 0 0 10px rgba(1, 128, 111, 0); }
	100% { box-shadow: 0 0 0 0 rgba(1, 128, 111, 0); }
}

/* --------------------------------------------------------------------------
   Main
   ------------------------------------------------------------------------ */
.cs-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 20px 40px;
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.cs-eyebrow {
	margin: 0 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cs-muted);
}
.cs-eyebrow::before,
.cs-eyebrow::after {
	content: "";
	width: 28px; height: 2px;
	background: var(--cs-yellow);
	border-radius: 2px;
}

.cs-title {
	margin: 0;
	line-height: .92;
	letter-spacing: -.035em;
}
.cs-title__a {
	display: block;
	font-family: var(--cs-sans);
	font-weight: 800;
	font-size: clamp(52px, 11vw, 128px);
	color: var(--cs-ink);
}
.cs-title__b {
	display: inline-block;
	font-family: var(--cs-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(60px, 13vw, 150px);
	letter-spacing: -.02em;
	color: var(--cs-teal);
	position: relative;
	padding: 0 .08em;
}
.cs-title__b::after {
	content: "";
	position: absolute;
	left: 4%; right: 4%;
	bottom: .12em;
	height: .16em;
	background: var(--cs-yellow);
	border-radius: 999px;
	z-index: -1;
	transform-origin: left;
	animation: cs-underline 1.2s .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes cs-underline {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.cs-text {
	max-width: 560px;
	margin: 26px auto 0;
	color: var(--cs-muted);
	font-size: clamp(16px, 1.6vw, 18px);
}

/* --------------------------------------------------------------------------
   Countdown
   ------------------------------------------------------------------------ */
.cs-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 18px);
	width: 100%;
	max-width: 640px;
	margin: 42px auto 0;
}
.cs-tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: clamp(14px, 2.4vw, 24px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	overflow: hidden;
	box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cs-tile:hover { transform: translateY(-6px) rotate(-1.5deg); }
.cs-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 45%);
	pointer-events: none;
}
.cs-tile--yellow { background: var(--cs-yellow); color: var(--cs-black); }
.cs-tile--blue   { background: var(--cs-blue);   color: #fff; }
.cs-tile--teal   { background: var(--cs-teal);   color: #fff; }
.cs-tile--black  { background: var(--cs-black);  color: #fff; }

.cs-num {
	font-family: var(--cs-sans);
	font-weight: 800;
	font-size: clamp(34px, 7vw, 68px);
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
	display: inline-block;
}
.cs-num.is-tick { animation: cs-tick .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes cs-tick {
	0%   { transform: translateY(-30%); opacity: 0; }
	100% { transform: translateY(0);     opacity: 1; }
}
.cs-lbl {
	font-size: clamp(10px, 1.4vw, 13px);
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .92;
}

.cs-live {
	margin: 34px 0 0;
	padding: 14px 24px;
	background: var(--cs-black);
	color: #fff;
	border-radius: 14px;
	font-weight: 600;
}

.cs-date {
	margin: 22px 0 0;
	font-size: 15px;
	color: var(--cs-muted);
}
.cs-date strong { color: var(--cs-ink); }

/* --------------------------------------------------------------------------
   Notify form
   ------------------------------------------------------------------------ */
.cs-form {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 480px;
	margin: 34px auto 0;
	padding: 7px;
	background: #fff;
	border: 1.5px solid var(--cs-ink);
	border-radius: 999px;
	box-shadow: 5px 5px 0 var(--cs-yellow);
	transition: box-shadow .25s ease;
}
.cs-form:focus-within { box-shadow: 5px 5px 0 var(--cs-blue); }
.cs-form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 12px 18px;
	font: inherit;
	font-size: 16px;
	color: var(--cs-ink);
	border-radius: 999px;
}
.cs-form input[type="email"]::placeholder { color: #6b6b6b; }
.cs-form input[type="email"]:focus { outline: none; }
.cs-form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--cs-black);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .2s ease, transform .2s ease;
}
.cs-form button:hover { background: var(--cs-teal); }
.cs-form button:hover svg { transform: translateX(3px); }
.cs-form button svg { transition: transform .2s ease; }

.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cs-msg p {
	margin: 16px 0 0;
	font-size: 15px;
	font-weight: 600;
}
.cs-msg--ok  { color: var(--cs-teal); }
.cs-msg--err { color: #B3261E; }

/* --------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.cs-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 22px clamp(20px, 5vw, 64px) 28px;
	font-size: 14px;
	color: var(--cs-muted);
}
.cs-copy { margin: 0; }
.cs-social {
	list-style: none;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.cs-social a {
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--cs-line);
	color: var(--cs-ink);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cs-social li:nth-child(4n+1) a:hover { background: var(--cs-yellow); color: var(--cs-black); }
.cs-social li:nth-child(4n+2) a:hover { background: var(--cs-blue);   color: #fff; }
.cs-social li:nth-child(4n+3) a:hover { background: var(--cs-teal);   color: #fff; }
.cs-social li:nth-child(4n+4) a:hover { background: var(--cs-black);  color: #fff; }
.cs-social a:hover { transform: translateY(-3px); }
.cs-mail {
	color: var(--cs-ink);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--cs-yellow);
}
.cs-mail:hover { border-color: var(--cs-teal); }

/* --------------------------------------------------------------------------
   Reveal on load
   ------------------------------------------------------------------------ */
.cs-reveal {
	opacity: 0;
	transform: translateY(18px);
	animation: cs-in .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
.cs-main > .cs-reveal:nth-child(1) { animation-delay: .05s; }
.cs-main > .cs-reveal:nth-child(2) { animation-delay: .15s; }
.cs-main > .cs-reveal:nth-child(3) { animation-delay: .28s; }
.cs-main > .cs-reveal:nth-child(4) { animation-delay: .40s; }
.cs-main > .cs-reveal:nth-child(6) { animation-delay: .50s; }
.cs-main > .cs-reveal:nth-child(7) { animation-delay: .60s; }
@keyframes cs-in { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 640px) {
	.cs-logo { width: 58px; }
	.cs-pill { font-size: 12px; padding: 8px 12px; }
	.cs-shape--yellow { width: 120px; height: 120px; top: 46%; left: -84px; }
	.cs-shape--blue   { width: 80px;  height: 80px; top: 24%; right: -52px; }
	.cs-shape--teal,
	.cs-shape--black  { display: none; }
	.cs-main { padding-top: 36px; }
	.cs-eyebrow { font-size: 11px; letter-spacing: .16em; }
	.cs-eyebrow::before,
	.cs-eyebrow::after { width: 16px; }
	.cs-title__a { font-size: clamp(48px, 15vw, 72px); }
	.cs-title__b { font-size: clamp(56px, 18vw, 86px); }
	.cs-footer { justify-content: center; text-align: center; }
}
@media (max-width: 440px) {
	.cs-countdown { gap: 8px; }
	.cs-tile { border-radius: 14px; }
	.cs-form { flex-direction: column; border-radius: 22px; padding: 8px; }
	.cs-form button { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.cs-reveal { opacity: 1; transform: none; }
}

/* Admin bar offset */
.admin-bar .cs-bg { top: 32px; }
@media (max-width: 782px) { .admin-bar .cs-bg { top: 46px; } }
