/*
Theme Name: Briiffiground Gen-Z 2024 Theme
Description:Briiffiground Gen-Z 2024 Theme
Author: Briiffiground Oy & Miikka Asukas
Theme URI: https://briiffiground.fi
Author URI: https://miikka-asukas.fi
Version: 1.0
-----------------------------------------------------------------------------*/

*, *::before, *::after {

	box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, header, section, figcaption, footer, blockquote {

	margin: 0;
	padding: 0;
}

ul, ol {

	list-style: none;
}

b, strong {

	font-weight: 700;
}

html {

  --light: #fff;
  --dark: #002A2F;
  --purple: #9994FA;
  --purple-light: #F1F0FD;
  --yellow: #F4EE50;
  --font-tondu: "tondu", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-cooper: "cooper-black-std", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pontano: "Pontano Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 5px 5px 0 var(--dark);
	--padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 6vw, 4rem);
}

html, body {

	scroll-behavior: smooth;
}

body {

	-ms-touch-action: manipulation;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1;
	font-size: 16px;
  font-weight: 400;
	background: var(--purple);
	color: var(--dark);
  font-family: var(--font-pontano);
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5 {

  font-weight: 400;
  font-family: var(--font-cooper);
}

::selection {

	background: var(--yellow);
  color: var(--dark);
}

::-moz-selection {

  background: var(--yellow);
  color: var(--dark);
}

img::selection {

  background: rgba(255, 255, 255, 0);
}

img {

	display: block;
	max-width: 100%;
}

a {

	color: inherit;
	text-decoration: none;
}

p {

  font-size: 1rem;
}

.sr_only {

  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Button */

button, a.button {

  -webkit-font-smoothing: inherit;
	-moz-osx-font-smoothing: inherit;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
	margin: 0;
  padding: 0;
  width: auto;
	overflow: visible;
	outline: none;
  cursor: pointer;
	user-select: none;
  border: none;
	border-radius: 0;
}

.button, a.button {

  --size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-cooper);
  font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 10);
	font-weight: 400;
	line-height: 1;
	padding: 1.25rem 2rem;
	text-transform: uppercase;
	background-color: var(--yellow);
	color: var(--dark);
  text-align: center;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

button::-moz-focus-inner {

  border: 0;
  padding: 0;
}

button.loading {

	pointer-events: none;
	color: transparent;
}

/* Loader */

.loading:after {

  content: "";
	position: absolute;
	top: 50%;
	left: 50%;
  border: 0.375rem solid var(--light);
  border-top: 0.375rem solid var(--purple);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: spin 1s linear infinite;
	transition: none;
  margin-top: -1.25rem;
  margin-left: -1.25rem;
}

@keyframes spin {

  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media screen and (pointer: fine) {

	a[href^="tel:"]:hover, a[href^="mailto:"]:hover {

		text-decoration: underline;
	}

  .button:hover, a.button:hover {

    background: var(--light);
    color: var(--brown);
  }
}

/* Header */

.header {

  position: relative;
  background: var(--purple);
  color: var(--dark);
}

.header .top {

  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  /*aspect-ratio: 160 / 69;*/
  text-align: center;
  min-height: 43.125vw;
}

.header .mobile_top {

	display: none;
	flex-flow: column nowrap;
  align-items: center;
  justify-content: flex-end;
}

.header .top:before {

  content: "";
  position: absolute;
  top: -21%;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url(images/tausta.svg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.header .top img,
.header .top svg {

  display: block;
}

.header .top .genz {

  position: absolute;
  bottom: 0;
  left: -11%;
  width: 100%;
  height: auto;
  max-width: 56%;
  z-index: 2;
}

.header .top .inner {

  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: flex-end;
  z-index: 4;
}

.header .top .logo {

  align-self: center;
  width: 100%;
  max-width: 22vw;
  height: auto;
  margin-bottom: 2vw;
}

.header .top .banner {

  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 100%;
  max-width: 21%;
  height: auto;
  z-index: 3;
}

.header .top .banner path {

  fill: var(--dark);
}

.header .top .banner text {

  fill: #fff;
  font-family: var(--font-tondu);
  font-size: 3.5rem;
  isolation: isolate;
}

.header .top p,
.header .mobile_top p {

  font-family: var(--font-cooper);
  color: var(--yellow);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.header .top h1,
.header .mobile_top h1 {

  font-family: var(--font-tondu);
  color: var(--light);
  font-size: clamp(1.5rem, 5vw, 4.375rem);
}

.header .top h2,
.header .mobile_top h2 {

  font-family: var(--font-tondu);
  color: var(--dark);
  font-size: clamp(1.5rem, 5vw, 6.25rem);
}

.header .text {

  text-align: center;
  margin-top: 2rem;
  padding: 0 2rem;
}

.header .text p {

  --size: clamp(1.25rem, 3vw, 1.875rem);
  font-size: var(--size);
  line-height: 1.15;
  letter-spacing: calc(var(--size) * 0.001 * 10);
  max-width: 57rem;
  margin: 2rem auto;
}

.header .bottom {

  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: -4rem;
  padding-right: 4rem;
}

.header .hands {

  position: relative;
  max-width: 43vw;
  align-self: flex-end;
}

.header .box {

  margin-top: 8rem;
  margin-bottom: 4rem;
  margin-left: -2rem;
  max-width: 50.625rem;
}

.header .box h2 {

  font-size: clamp(1.5rem, 2vw, 2.75rem);
}

.header .box p {

  --size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-size: var(--size);
  line-height: 1.15;
  letter-spacing: calc(var(--size) * 0.001 * 10);
  margin-top: 2rem;
}

@media screen and (max-width: 64rem) {

	.header .bottom {

		padding: 0;
		justify-content: center;
	}

	.header .hands {

		position: absolute;
		left: 0;
	}

	.header .box {

		position: relative;
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.header .top .inner {

		justify-content: center;
	}

	.header .top .logo  {

		margin-bottom: 0;
	}

	.header .top .inner p,
	.header .top .inner h1,
	.header .top .inner h2 {

		display: none;
	}

	.header .mobile_top {

		display: flex;
		margin-top: -9vw;
		gap: 0.25rem;
	}

	.header .top .banner {

		max-width: 25%;
		right: 5%;
	}
}

@media screen and (max-width: 40rem) {

	.header .top .logo {

		max-width: 27vw;
		margin-bottom: 4vw;
	}
}

/* Content */

.content {

	position: relative;
}

.content .inner {

  max-width: 94rem;
  margin: 0 auto;
  padding: var(--padding);
}

.content h2,
.content h3 {

  font-size: clamp(1.5rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.content h2.elem {

  font-size: clamp(1.5rem, 5vw, 3.75rem);
  font-family: var(--font-tondu);
  text-align: center;
}

.content .elem + h2.elem {

  padding-top: 4rem;
}

.content p,
.content ul {

  --size: clamp(1.25rem, 5vw, 1.5rem);
  font-size: var(--size);
  line-height: 1.15;
  letter-spacing: calc(var(--size) * 0.001 * 10);
  margin: 2rem 0;
}

.content ul {
  padding-left: 1.3rem;
  list-style: initial;
}

.content ul.list {

  list-style-type: disc;
  margin-left: 1rem;
}

.content ul.list li::marker {

  color: var(--purple);
}

.content p.price {

  display: inline-block;
  font-family: var(--font-cooper);
  border-bottom: 3px solid var(--purple);
  padding: 0 0.5rem 0.5rem 0.5rem;
  margin: 0;
}

.content .elem + .elem {

  margin-top: 4rem;
}

.content .elem.center {

  text-align: center;
}

.content audio {

	display: block;
	width: 100%;
}

@media screen and (max-width: 48rem) {

	.content .elem + h2.elem {

		padding-top: 0;
	}
}

/* Box */

.boxes {

  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 6.5rem;
}

.box {

  padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 6vw, 4rem);
  background: var(--light);
  box-shadow: var(--shadow);
  border-radius: 2rem;
}

.boxes .box {

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row */

.row {

  display: grid;
  grid-template-columns: 1fr 1fr;
}

.row .column {

  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 6vw, 4rem);
}

.row.yellow .column {

  background: var(--yellow);
}

.row figure {

  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 56.25%;
}

.row.reverse {

	position: relative;
	z-index: 7;
}

.row.reverse .column {

  order: 2;
}

.row.reverse figure {

  order: 1;
}

@media screen and (max-width: 64rem) {

	.row {

	  display: grid;
	  grid-template-columns: 1fr;
	}

	.row .column {

	  order: 2;
		justify-content: flex-start;
	}

	.row figure {

	  order: 1;
	}

}

/* Personnel */

.personnel {

  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  text-align: center;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.person h3 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--yellow);
  margin-bottom: .5rem;
  max-width: 35rem;
  margin-top: .5rem;
}

.person h4 {
  font-size: clamp(1.5rem, 1.7vw, 1.8rem);
  color: var(--yellow);
  margin-bottom: 1rem;
  margin-top: 0;
  max-width: 27rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.person p {

  max-width: 26rem;
  margin: 0 auto;
}

.person img {

  margin: 0 auto;
}

@media screen and (max-width: 48rem) {

	.personnel {

		grid-template-columns: 1fr;
	}
}

/* Footer */

.footer {

	position: relative;
  background: var(--dark);
  padding: var(--padding);
  text-align: center;
}

.footer h2 {

  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.footer h3 {

  font-size: clamp(1.5rem, 6vw, 3.75rem);
  color: var(--light);
  font-family: var(--font-tondu);
}

/* Form */

input[type="text"], input[type="email"], textarea {

	appearance: none;
	-webkit-appearance: none;
	font-family: var(--azo);
	font-size: 1.25rem;
	line-height: 1;
	color: var(--dark);
	background: var(--purple-light);
	padding: 1rem 2rem;
	width: 100%;
	border: none;
	border-radius: 0;
	font-weight: 400;
	outline: none;
	resize: none;
	text-align: left;
  box-shadow: var(--shadow);
  border-radius: 2rem;
}

textarea {

  min-height: calc(2*1rem + 5 * 20px);
}

.form {

  --size: clamp(1.25rem, 1.5vw, 1.25rem);
	position: relative;
  background: var(--light);
  padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 6vw, 4rem);
  background: var(--light);
  box-shadow: 10px 10px 0 var(--purple);
  border-radius: 2rem;
  max-width: 53.375rem;
	margin: 4rem auto 0 auto;
min-height: 40rem;
}

.form h4 {

  font-size: clamp(1rem, 3vw, 1.5625rem);
  color: var(--dark);
  text-align: left;
}

.form form {

	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 1rem;
}

.form.wait form {

	position: relative;
	pointer-events: none;
}

.form.wait form *:not(.submit):not(.button) {
	opacity: 0.5;
}

.form .radios {
	display: flex;
  align-items: center;
	gap: 1rem;
}

.form .submit {
  text-align: left;
}

.content .inner .form button {
	margin-top: 2rem;
}

.form .thanks {
	display: none;
}

.form .thanks h4 {
  color: var(--purple);
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  margin-bottom: 1rem;
}

.form .thanks p {
  --size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-size: var(--size);
  line-height: 1.15;
  letter-spacing: calc(var(--size) * 0.001 * 10);
  margin: 2rem 0;
}

.form.success .thanks {

	display: flex;
	align-items: center;
	justify-content: center;
}

.form.success form {
	display: none;
}

.form form .container {

  --box-size: 1.25rem;
	display: block;
	position: relative;
	cursor: pointer;
	user-select: none;
	font-size: var(--size);
  letter-spacing: calc(var(--size) * 0.001 * 10);
  line-height: 1.15;
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.form form .container input {

  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form form input[type="radio"] + .checkmark,
.form form input[type="checkbox"] + .checkmark {

  position: absolute;
  top: 50%;
  left: 0;
  height: var(--box-size);
  width: var(--box-size);
  background-color: var(--dark);
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
}

.form form input[type="checkbox"] + .checkmark {

  border-radius: 0;
}

.form form input[type="radio"] + .checkmark:after {

	content: "";
	position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%) scale(0);
  width: calc(var(--box-size) * 0.444);
  height: calc(var(--box-size) * 0.444);
	background: var(--yellow);
	border-radius: 50%;
	transition: 0.2s ease all;
}

.form form input[type="checkbox"] + .checkmark:after {

	content: "";
	position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%) scale(0);
  width: var(--box-size);
  height: var(--box-size);
	background: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='yellow' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
	border-radius: 50%;
	transition: 0.2s ease all;
}

.form form input[type="radio"]:checked + .checkmark:after,
.form form input[type="checkbox"]:checked + .checkmark:after {

	transform: translate(-50%, -50%) scale(1);
}

.form form .container a {

	text-decoration: underline;
}

@media screen and (any-pointer: fine) {

	.form form .container .checkmark:hover {

	  background-color: var(--purple);
	}

  .form .button:hover {

    background: var(--purple);
    color: var(--light);
  }
}

@media screen and (max-width: 48rem) {

	.form .radios {

		display: grid;
		justify-content: flex-start;
		text-align: left;
	}

	.form form .container {

		margin: 0;
		padding-left: 2rem;
	}
}

/* Decorations */

.decorations {

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.decorations figure {

  --y: 0px;
  --x: 0px;
  --i: 0px;
  --scale: clamp(0.3, 6vw, 1);
  display: block;
  position: absolute;
	top: var(--y);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate3d(var(--x), var(--i), 0);
  width: var(--w);
  height: calc(var(--w) * var(--h));
}

.decorations figure.heart.blue {

  --w: 5.5208vw; /* 106x97 */
  --h: 0.915094;
  background-image: url(images/decorations/sydan_blue.png);
}

.decorations figure.ball {

  --w: 5.15625vw;
  --h: 1;
  background-image: url(images/decorations/pallo.png);
}

.decorations figure.party {

  --w: 17.9166vw; /* 344x213 */
  --h: 0.6191860;
  background-image: url(images/decorations/rinkula.png);
}

.decorations figure.heart {

  --w: 5.5208vw; /* 106x104 */
  --h: 0.9811320;
  background-image: url(images/decorations/sydan_red.png);
}

.decorations figure.star {

  --w: 5.5208vw; /* 120x124 */
  --h: 1.0333;
  background-image: url(images/decorations/tahti.png);
}

.decorations figure.party_2 {

  --w: 8.177083vw; /* 157x158 */
  --h: 1.006369;
  background-image: url(images/decorations/rinkula_2.png);
}

.decorations figure.party_3 {

  --w: 14.6875vw; /* 282x284 */
  --h: 1.0070921;
  background-image: url(images/decorations/rinkula_3.png);
}

.decorations figure.flowers {

  --x: 45vw;
  --y: 20vw;
  --w: 17.760416vw; /* 341x366 */
  --h: 1.0733137;
  background-image: url(images/decorations/kukat.png);
}

.decorations figure.lighting {

	--x: 41vw;
	--y: 20vw;
  --w: 12.1875vw; /* 234x308 */
  --h: 1.3162393;
  background-image: url(images/decorations/salama.png);
}

/* Header Decos */

.header .decorations figure.heart.blue {

	--x: 5.5vw;
  --y: 4%;
}

.header .decorations figure.ball {

	--x: 24vw;
  --y: 9%;
}

.header .decorations figure.party  {

	--x: 70vw;
  --y: 1.5vw;
}

.header .decorations figure.star {

	--x: 80vw;
  --y: 57.5vw;
}

.header .decorations figure.heart {

	--x: 8.5vw;
  --y: 44.5vw;
}

.header .decorations figure.party_2 {

	--x: 89vw;
  --y: 86.5vw;
}

/* Content_2 */

.content_2 .decorations figure.lighting {

	--x: 89vw;
  --y: 44.5vw;
  --w: 9.1875vw;
}

.content_2 .decorations figure.star {

	--x: 5vw;
  --y: 33.5vw;
}

.content_2 .decorations figure.party_2 {

	--x: 3vw;
  --y: 55vw;
}

/* Footer */

.footer .decorations figure.heart {

	--x: 79.5vw;
  --y: 44.5vw;
}

.footer .decorations figure.party_3 {

	--x: 8vw;
  --y: 51vw;
}

.footer .decorations figure.star {

	--x: 11vw;
  --y: 33.5vw;
}

@media screen and (max-width: 64rem), (orientation: portrait) {

	.decorations {

		display: none;
	}
}

/* Animation */

@media screen and (prefers-reduced-motion: no-preference) {

  /* Animation name | Duration | Timing function | Delay | Iteration count | Fill mode */

  /* Landing */

	.header .top .genz,
	.header .top .logo,
	.header .top .banner,
	.header .decorations,
	.header .top h1, .header .mobile_top h1,
	.header .top h2, .header .mobile_top h2,
	.header .top p, .header .mobile_top p,
	.header .text p,
  .header .text a.button,
	.header .bottom {

    opacity: 0;
  }

	.header.show .top .genz {

    animation: fade_in 600ms ease 0s 1 forwards;
  }

	.header.show .top .logo {

    animation: fade_in 600ms ease 100ms 1 forwards;
  }

	.header.show .top .banner {

    animation: fade_in 600ms ease 200ms 1 forwards;
  }

	.header.show .top p, .header.show .mobile_top p {

    animation: trans_in 600ms ease 300ms 1 forwards;
  }

	.header.show .top h1, .header.show .mobile_top h1 {

    animation: trans_in_2 600ms ease 400ms 1 forwards;
  }

	.header.show .top h2, .header.show .mobile_top h2 {

    animation: trans_in_3 600ms ease 500ms 1 forwards;
  }

	.header.show .text p {

    animation: trans_in_3 600ms ease 600ms 1 forwards;
  }

	.header.show .text a.button {

    animation: trans_in_3 600ms ease 700ms 1 forwards;
  }

	.header .decorations {

    animation: fade_in 1000ms ease 300ms 1 forwards;
  }

	.header.show .bottom {

    animation: fade_in 600ms ease 800ms 1 forwards;
  }
}

@keyframes fade_in {

	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes trans_in {

	from {

		opacity: 0;
		transform: translateX(5%);
	}
	to {

		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes trans_in_2 {

	from {

		opacity: 0;
		transform: translateX(-5%);
	}
	to {

		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes trans_in_3 {

	from {

		opacity: 0;
		transform: translateY(-5%);
	}
	to {

		opacity: 1;
		transform: translateY(0);
	}
}

.work-email-container {
  position: fixed;
  top: -1000px;
  left: -1000px;
}

.work-email-container .visible {
  position: static;
}


.logos-wrapper {
    background-color: #fff;
    padding: 1.25rem 0;
}

.logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 92rem;
    margin: 50px auto;
    background-color: #fff;
    align-items: center;
    text-align: center;
}

.logos img {
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .logos img:nth-child(4),
    .logos img:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {

    .logos-wrapper {
        padding: 1rem 0;
    }

    .logos {
        grid-template-columns: repeat(2, 1fr);
        padding: .5rem;
    }

    .logos img {
        margin: 1rem auto;
        padding: .4rem;
        max-width: 90% !important;
        max-height: 5rem;
    }
}