:root {
  --navy: #071a52;
  --blue: #0b288c;
  --sky: #36acef;
  --pale: #eaf7ff;
  --mist: #f6fbff;
  --ink: #08132f;
  --muted: #53617b;
  --line: rgba(8, 19, 47, 0.16);
  --white: #ffffff;
  --shell: min(1240px, calc(100vw - 64px));
  --header-height: 88px;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(7, 26, 82, 0.14);
  --sans: "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a.cms-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a.cms-inline-link:hover {
  opacity: 0.72;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(7, 26, 82, 0.97);
  color: var(--white);
  box-shadow: 0 10px 34px rgba(3, 13, 46, 0.18);
  backdrop-filter: blur(18px);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header::after {
  position: absolute;
  right: 40px;
  bottom: 0;
  left: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  content: "";
  transition: background-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(7, 26, 82, 0.08);
  color: var(--navy);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled::after,
.site-header.menu-active::after {
  background: var(--line);
}

.brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.is-scrolled .brand img,
.menu-active .brand img,
.brand-footer img {
  filter: none;
}

.brand > span {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand span span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header .brand {
  gap: 14px;
}

.site-header .brand img {
  width: 54px;
  height: 44px;
}

.site-header .brand strong {
  font-size: 20px;
}

.site-header .brand > span > span {
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 14px;
  font-weight: 750;
}

.main-nav > a:not(.social-link) {
  position: relative;
  padding: 11px 0;
}

.main-nav > a:not(.social-link, .nav-join)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav > a:not(.social-link, .nav-join):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-join {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 10px 18px !important;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.is-scrolled .nav-join,
.menu-active .nav-join {
  border-color: var(--blue);
}

.nav-join:hover {
  border-color: var(--sky);
  background: var(--sky);
  color: var(--navy);
}

.social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link svg {
  width: 20px;
  fill: currentColor;
}

.social-link-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-link-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.social-link-pending {
  cursor: default;
  opacity: 0.72;
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 12.5px);
  width: 25px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-active .menu-toggle span:first-child {
  transform: rotate(45deg);
}

.menu-active .menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  height: 94svh;
  align-items: end;
  overflow: hidden;
  background:
    var(--hero-image, url("./assets/kasinonranta.jpg")) center 48% / cover no-repeat,
    var(--blue);
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 67, 0.9) 0%, rgba(4, 18, 67, 0.68) 36%, rgba(4, 18, 67, 0.14) 72%, rgba(4, 18, 67, 0.08) 100%),
    linear-gradient(0deg, rgba(3, 14, 51, 0.55) 0%, transparent 44%);
}

.hero-mobile-photo {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 170px 0 116px;
}

.eyebrow,
.section-kicker,
.card-meta {
  margin: 0 0 16px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(58px, 7.4vw, 116px);
  font-weight: 760;
  letter-spacing: -0.068em;
  line-height: 0.89;
}

.hero-lead {
  max-width: 620px;
  margin: 34px 0 0;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 820;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--sky);
  color: var(--navy);
}

.button-primary:hover {
  background: var(--white);
}

.button-white {
  background: var(--white);
  color: var(--blue);
}

.button-white:hover {
  background: var(--pale);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid currentColor;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 800;
}

.text-link-light {
  color: var(--white);
}

.hero-caption {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 2;
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.hero-caption span {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-weight: 750;
}

.ticker {
  --ticker-gap: 28px;
  display: flex;
  height: 62px;
  align-items: center;
  overflow: hidden;
  background: var(--sky);
  color: var(--navy);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: var(--ticker-gap);
  animation: ticker 30s linear infinite;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--ticker-gap);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
}

@keyframes ticker {
  to {
    transform: translateX(calc(-50% - var(--ticker-gap) / 2));
  }
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-size: clamp(46px, 5.6vw, 82px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro {
  overflow: hidden;
  background: var(--pale);
}

.intro::after {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(54, 172, 239, 0.18);
  border-radius: 50%;
  content: "";
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: clamp(50px, 8vw, 130px);
  row-gap: 70px;
}

.intro-copy p {
  max-width: 670px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.48;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.intro-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(11, 40, 140, 0.28);
}

.intro-stats div {
  display: grid;
  gap: 8px;
  padding: 34px 30px 0 0;
}

.intro-stats div + div {
  border-left: 1px solid rgba(11, 40, 140, 0.2);
  padding-left: 36px;
}

.intro-stats strong {
  color: var(--blue);
  font-size: clamp(42px, 4.5vw, 68px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.intro-stats span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 420px;
  gap: 20px;
}

.news-card {
  position: relative;
  grid-column: span 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}

.news-card-featured {
  grid-column: span 1;
  grid-row: span 1;
}

.news-card-wide {
  grid-column: span 1;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.news-card-featured img {
  object-position: 48% center;
}

.news-card-wide img {
  object-position: center 68%;
}

.news-card:hover img {
  transform: scale(1.045);
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 15, 51, 0.88) 0%, rgba(4, 15, 51, 0.08) 72%);
}

.news-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
}

.news-card-featured .news-card-content {
  padding: 44px;
}

.news-card h3 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.news-card:not(.news-card-featured) h3 {
  font-size: clamp(23px, 2.1vw, 32px);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  padding: 4px 0 6px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.events {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(54, 172, 239, 0.22), transparent 28%),
    var(--navy);
  color: var(--white);
}

.events .section-kicker,
.join .section-kicker {
  color: var(--sky);
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.7);
}

.event-main {
  display: grid;
  grid-template-columns: 240px 150px 1fr;
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 54px 0;
}

.talk-logo-viewport {
  width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--sky);
}

.talk-logo-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.88);
}

.event-date {
  display: grid;
  justify-items: center;
  color: var(--sky);
}

.event-date span {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.event-date i {
  width: 70px;
  height: 2px;
  margin: 13px 0;
  background: var(--sky);
  transform: rotate(-18deg);
}

.event-date small {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.event-content {
  max-width: 700px;
}

.event-content h3,
.event-secondary h3 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.event-content p,
.event-secondary p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.event-content .event-intro {
  color: var(--white);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
}

.event-content .button {
  margin-top: 14px;
}

.event-secondary {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding-top: 54px;
}

.event-secondary h3 {
  max-width: 700px;
  font-size: clamp(32px, 4vw, 54px);
}

.event-secondary p {
  max-width: 720px;
}

.event-no-image {
  position: relative;
  display: grid;
  min-height: 270px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sky), #7fd3ff);
  color: var(--navy);
}

.event-no-image img {
  position: absolute;
  right: -56px;
  bottom: -54px;
  width: 240px;
  opacity: 0.2;
  transform: rotate(-18deg);
}

.event-no-image span {
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.board {
  background: var(--mist);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.person {
  min-height: 250px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px;
  background: var(--white);
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.person:hover {
  background: var(--pale);
}

.person-lead {
  grid-column: span 1;
  background: var(--blue);
  color: var(--white);
}

.person-lead:hover {
  background: var(--navy);
}

.person p {
  margin: 0 0 38px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.person-lead span {
  color: rgba(255, 255, 255, 0.72);
}

.values {
  overflow: hidden;
  background: var(--white);
}

.values-flower {
  position: absolute;
  top: 80px;
  right: -160px;
  width: 620px;
  opacity: 0.035;
  transform: rotate(10deg);
}

.values-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: stretch;
  margin-bottom: 96px;
}

.values-intro {
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  border-radius: 30px 110px 30px 30px;
  margin: 0;
  padding: clamp(44px, 5.4vw, 74px);
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.values-intro h2 {
  max-width: 720px;
  margin-bottom: 38px;
  color: var(--white);
  font-size: clamp(44px, 5vw, 72px);
}

.values-copy {
  max-width: 660px;
}

.values-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.values-copy p:last-child {
  margin-bottom: 0;
}

.values-image {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 30px 30px 110px 30px;
  margin: 0;
  background: var(--pale);
  box-shadow: var(--shadow);
}

.values-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.values-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 51, 160, 0.38);
  border-left: 1px solid rgba(0, 51, 160, 0.38);
}

.values-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 22px;
  border: 0;
  border-right: 1px solid rgba(0, 51, 160, 0.38);
  border-bottom: 1px solid rgba(0, 51, 160, 0.38);
  border-radius: 0;
  padding: clamp(28px, 3.2vw, 44px);
  background: transparent;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.values-list article:last-child {
  grid-column: 1 / -1;
}

.values-list article:hover {
  background: var(--blue);
}

.values-list span {
  color: var(--sky);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.values-list h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: clamp(23px, 2.4vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: color 180ms ease;
}

.values-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  transition: color 180ms ease;
}

.values-list article:hover h3 {
  color: var(--white);
}

.values-list article:hover p {
  color: rgba(255, 255, 255, 0.78);
}

.join {
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}

.join::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 26%;
  height: 100%;
  background: var(--sky);
  content: "";
  opacity: 0.16;
}

.join-flower {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 650px;
  opacity: 0.1;
  transform: rotate(-18deg);
}

.join-flower img {
  filter: brightness(0) invert(1);
}

.join-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  column-gap: clamp(60px, 9vw, 140px);
  row-gap: 76px;
}

.join-copy > p:first-child {
  max-width: 650px;
  margin: 0 0 30px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.45;
}

.join-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  border-top: 1px solid rgba(255,255,255,.3);
  padding-top: 42px;
}
.contact-form > div { grid-column: 1 / -1; }
.contact-form .contact-success { grid-column: 1 / -1; padding: 14px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; background: rgba(255,255,255,.15); font-weight: 700; }
.contact-form .contact-status { grid-column: 1 / -1; margin: 0; color: #fff; font-weight: 700; }
.contact-form .contact-status:empty { display: none; }
.contact-form h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.contact-form > div > p:last-child { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 16px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.contact-form label:has(textarea) { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: rgba(255,255,255,.08); padding: 13px 15px; color: #fff; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sky); }
.contact-form button { justify-self: start; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 30px 28px 0 0;
}

.contact-grid > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 32px;
}

.contact-grid span {
  color: var(--sky);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-grid strong {
  font-size: 21px;
}

.contact-grid a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.links {
  background: var(--white);
}

.useful-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.useful-links > a {
  position: relative;
  min-height: 290px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.useful-links > a:hover {
  background: var(--blue);
  color: var(--white);
}

.useful-links span {
  color: var(--sky);
  font-size: 13px;
  font-weight: 850;
}

.useful-links h3 {
  max-width: 430px;
  margin: 58px 0 12px;
  font-size: clamp(29px, 3vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.useful-links p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.useful-links > a:hover p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  background: var(--pale);
  padding: 48px 0;
  color: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
}

.brand-footer img {
  width: 42px;
}

.footer-grid > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
}

.footer-links a {
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: currentColor;
}

.footer-credit {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(7, 26, 82, 0.18);
  margin-top: 34px;
  padding-top: 24px;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.footer-credit a:hover {
  opacity: 0.65;
}

.footer-credit-mark {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
}

.footer-credit-mark i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
}

.footer-credit-copy {
  display: grid;
  gap: 2px;
}

.footer-credit-copy > span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.footer-credit-copy > strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

.article-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: var(--white);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(3, 13, 46, 0.42);
}

.article-dialog::backdrop {
  background: rgba(3, 13, 46, 0.78);
  backdrop-filter: blur(12px);
}

.article-figure {
  margin: 0;
}

.article-figure img {
  width: 100%;
  height: min(430px, 44vw);
  min-height: 250px;
  object-fit: cover;
}

#news-lauttasaari .article-figure img {
  object-position: center top;
}

#news-talk .article-figure img {
  object-position: center 46%;
}

.article-figure figcaption {
  max-width: 760px;
  margin: 0 auto;
  padding: 15px 52px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.article-dialog article {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 52px 62px;
}

.article-dialog h2 {
  margin: 0 0 30px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.article-dialog p {
  margin: 0 0 22px;
  color: #26314a;
  font-size: 17px;
  line-height: 1.7;
}

.article-dialog a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dialog-close {
  position: fixed;
  z-index: 2;
  top: max(30px, calc((100svh - min(100svh - 32px, 100%)) / 2 + 16px));
  right: max(30px, calc((100vw - min(920px, 100vw - 32px)) / 2 + 16px));
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(3, 13, 46, 0.18);
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 48px, 1120px);
  }

  .site-header {
    padding: 0 24px;
  }

  .site-header::after {
    right: 24px;
    left: 24px;
  }

  .main-nav {
    gap: 17px;
    font-size: 13px;
  }

  .hero-caption {
    right: 24px;
  }

  .event-main {
    grid-template-columns: 210px 110px 1fr;
  }

  .talk-logo-viewport {
    width: 210px;
    height: 210px;
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --shell: calc(100% - 40px);
  }

  .site-header {
    height: var(--header-height);
    padding: 0 20px;
  }

  .site-header::after {
    right: 20px;
    left: 20px;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    z-index: 2;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    height: calc(100dvh - var(--header-height));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--white);
    color: var(--navy);
    opacity: 0;
    padding: 32px 30px max(38px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
    transition:
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .menu-active .main-nav,
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav > a:not(.social-link) {
    font-size: clamp(26px, 7vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.08;
  }

  .main-nav .nav-join {
    margin: 10px 0;
    border-radius: 999px;
    padding: 12px 20px !important;
  }

  .social-links {
    position: static;
    margin-top: 22px;
  }

  .hero {
    min-height: 700px;
    height: 90svh;
    background-position: 59% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 18, 67, 0.9), rgba(4, 18, 67, 0.38)),
      linear-gradient(0deg, rgba(3, 14, 51, 0.62), transparent 52%);
  }

  .hero-content {
    padding-bottom: 110px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: clamp(50px, 11.5vw, 82px);
  }

  .hero-lead {
    max-width: 540px;
  }

  .hero-caption {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .intro-grid,
  .join-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .intro-stats,
  .contact-grid {
    grid-column: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 600px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
  }

  .news-card,
  .news-card-featured,
  .news-card-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .news-card-featured {
    grid-column: span 1;
    min-height: 0;
  }

  .event-main {
    grid-template-columns: 180px 1fr;
  }

  .talk-logo-viewport {
    width: 180px;
    height: 180px;
  }

  .event-date {
    align-self: center;
  }

  .event-content {
    grid-column: 1 / -1;
    max-width: 720px;
  }

  .event-secondary {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .values-feature {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 72px;
  }

  .values-intro {
    min-height: 0;
    border-radius: 26px 80px 26px 26px;
    padding: clamp(42px, 8vw, 68px);
  }

  .values-image {
    width: min(100%, 680px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    justify-self: end;
    border-radius: 26px 26px 80px 26px;
  }

  .values-list {
    gap: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
    margin-top: 28px;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-grid > p {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 36px);
    --header-height: 70px;
    --radius: 20px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 0 18px;
  }

  .site-header::after {
    right: 18px;
    left: 18px;
  }

  .site-header .brand {
    gap: 11px;
  }

  .site-header .brand img {
    width: 44px;
    height: 36px;
  }

  .site-header .brand strong {
    font-size: 16px;
  }

  .site-header .brand > span > span {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .main-nav {
    gap: 4px;
    padding: 24px 24px max(32px, env(safe-area-inset-bottom));
  }

  .main-nav > a:not(.social-link) {
    font-size: clamp(24px, 7vw, 32px);
    padding: 8px 0;
  }

  .hero {
    display: flex;
    min-height: 0;
    height: auto;
    flex-direction: column;
    margin-top: var(--header-height);
    background: var(--navy);
  }

  .hero-mobile-photo {
    display: block;
    width: 100%;
    height: clamp(230px, 68.6vw, 290px);
    flex: 0 0 auto;
    background: var(--hero-image, url("./assets/kasinonranta.jpg")) center 74% / auto 233% no-repeat;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    padding: 34px 0 46px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(35px, 10.6vw, 56px);
    letter-spacing: -0.055em;
    line-height: 0.98;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
  }

  .button {
    min-height: 52px;
  }

  .ticker {
    --ticker-gap: 22px;
    height: 56px;
  }

  .ticker-track {
    font-size: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .section h2 {
    font-size: clamp(34px, 9.4vw, 48px);
    line-height: 1.02;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .section-heading {
    gap: 16px;
    margin-bottom: 32px;
  }

  .section-heading > p {
    font-size: 16px;
  }

  .intro-grid {
    row-gap: 26px;
  }

  .intro-copy p {
    font-size: 17px;
    line-height: 1.52;
    margin-bottom: 16px;
  }

  .intro-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-stats div {
    align-content: start;
    gap: 7px;
    padding: 22px 9px 0 0;
  }

  .intro-stats div + div {
    border-left: 1px solid rgba(11, 40, 140, 0.2);
    padding-left: 12px;
  }

  .intro-stats strong {
    font-size: clamp(27px, 7.2vw, 36px);
    white-space: nowrap;
  }

  .intro-stats span {
    font-size: 12px;
    line-height: 1.3;
  }

  .news-grid {
    display: block;
  }

  .news-card,
  .news-card-featured {
    min-height: 350px;
    margin-bottom: 12px;
  }

  .news-card-featured .news-card-content,
  .news-card-content {
    padding: 25px;
  }

  .news-card h3,
  .news-card:not(.news-card-featured) h3 {
    font-size: clamp(24px, 6.5vw, 29px);
  }

  .event-main {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
  }

  .talk-logo-viewport {
    width: 112px;
    height: 112px;
    border-radius: 17px;
  }

  .event-date span {
    font-size: 35px;
  }

  .event-date i {
    width: 48px;
    margin: 8px 0;
  }

  .event-content {
    margin-top: 12px;
  }

  .event-content h3 {
    font-size: clamp(34px, 9vw, 42px);
    overflow-wrap: anywhere;
  }

  .event-content p,
  .event-secondary p {
    font-size: 16px;
  }

  .event-secondary {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .event-no-image {
    min-height: 170px;
  }

  .event-no-image span {
    font-size: 44px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board .section-shell {
    width: calc(100% - 20px);
  }

  .person {
    min-width: 0;
    min-height: 0;
    padding: 20px 12px 22px;
  }

  .person p {
    min-height: 1.3em;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: -0.02em;
    text-transform: none;
    white-space: nowrap;
  }

  .person h3 {
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: -0.05em;
    line-height: 1.12;
    white-space: nowrap;
  }

  .person span {
    font-size: 13px;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .values-feature {
    gap: 16px;
    margin-bottom: 42px;
  }

  .values-intro {
    border-radius: 18px 48px 18px 18px;
    padding: 32px 22px 36px;
  }

  .values-intro h2 {
    margin-bottom: 22px;
    font-size: clamp(32px, 8.8vw, 44px);
  }

  .values-copy p {
    font-size: 16px;
    line-height: 1.5;
  }

  .values-image {
    width: 100%;
    border-radius: 20px 20px 56px 20px;
  }

  .values-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .values-list article:last-child {
    grid-column: auto;
  }

  .values-list article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 22px 18px;
  }

  .values-list h3 {
    font-size: clamp(22px, 6vw, 27px);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .values-list p {
    grid-column: 1 / -1;
  }

  .join-grid {
    gap: 30px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .join-copy > p:first-child {
    font-size: 17px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid > div,
  .contact-grid > div + div,
  .contact-grid > div:last-child {
    grid-column: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
    margin: 0;
    padding: 24px 0;
  }

  .contact-grid > div:first-child {
    border-top: 0;
  }

  .contact-grid a {
    overflow-wrap: anywhere;
  }

  .useful-links {
    grid-template-columns: 1fr;
  }

  .useful-links > a {
    min-height: 190px;
    padding: 24px;
  }

  .useful-links h3 {
    margin-top: 30px;
    font-size: clamp(26px, 7vw, 34px);
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-credit {
    justify-content: flex-start;
  }

  .article-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 20px;
  }

  .article-figure img {
    height: 300px;
  }

  .article-figure figcaption {
    padding: 13px 24px 0;
    font-size: 13px;
  }

  .article-dialog article {
    padding: 32px 24px 46px;
  }

  .article-dialog h2 {
    font-size: clamp(30px, 8vw, 39px);
    overflow-wrap: anywhere;
  }

  .article-dialog p {
    font-size: 16px;
  }

  .dialog-close {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 360px) {
  .site-header .brand img {
    width: 38px;
  }

  .site-header .brand strong {
    font-size: 15px;
  }

  .site-header .brand > span > span {
    font-size: 11px;
  }

  .person {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
