:root {
  --canvas: #fffaf2;
  --paper: #fffdf8;
  --ivory: #f5eadc;
  --shell: #f3dce1;
  --shell-soft: #fbf0f2;
  --rose: #b8667b;
  --berry: #813f55;
  --clay: #9b7654;
  --lauhala: #d0ad77;
  --leaf: #6e7f58;
  --forest: #304633;
  --ink: #2e2925;
  --muted: #6d605b;
  --line: rgba(129, 63, 85, 0.18);
  --green-line: rgba(48, 70, 51, 0.18);
  --shadow: 0 28px 70px rgba(65, 43, 34, 0.16);
  --soft-shadow: 0 16px 38px rgba(65, 43, 34, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1240px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.88), rgba(255, 250, 239, 0.74) 46%, rgba(255, 250, 239, 0.86)),
    linear-gradient(180deg, rgba(244, 229, 205, 0.22), rgba(255, 250, 242, 0.86)),
    url("assets/background-kalo-lauhala.jpg") center top / cover fixed no-repeat,
    #f5eadc;
  color: var(--ink);
  font-family: var(--sans);
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::before {
  background:
    url("assets/background-kalo-lauhala.jpg") left -150px top 90px / 620px auto no-repeat,
    url("assets/background-kalo-lauhala.jpg") right -190px bottom -80px / 680px auto no-repeat,
    linear-gradient(135deg, rgba(83, 63, 35, 0.18), rgba(255, 250, 239, 0.02) 44%),
    radial-gradient(ellipse at 14% 32%, rgba(48, 70, 51, 0.2), transparent 30rem);
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.34;
}

body::after {
  background:
    radial-gradient(ellipse at 10% 8%, rgba(255, 255, 255, 0.48), transparent 22rem),
    radial-gradient(ellipse at 92% 86%, rgba(255, 255, 255, 0.42), transparent 24rem),
    linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 0.38));
  inset: 0;
  opacity: 0.86;
}

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

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

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.58;
  margin: 0 0 0.82rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.02;
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.25rem);
  letter-spacing: 0;
  max-width: 780px;
}

h2 {
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
  max-width: 760px;
}

h3 {
  font-size: 1.22rem;
  font-weight: 850;
}

main {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 250, 242, 0.96)),
    radial-gradient(circle at 0 0, rgba(243, 220, 225, 0.48), transparent 24rem);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin: 24px auto 0;
  max-width: var(--max);
  overflow: hidden;
  padding: clamp(26px, 3.8vw, 48px);
  position: relative;
  width: calc(100% - 56px);
}

main::before {
  background:
    url("assets/background-kalo-lauhala.jpg") center / 118% auto no-repeat,
    radial-gradient(ellipse at center, rgba(110, 127, 88, 0.15) 0 36%, transparent 38%),
    radial-gradient(ellipse at center, rgba(129, 63, 85, 0.08) 0 18%, transparent 20%);
  border-radius: 50%;
  content: "";
  height: 300px;
  position: absolute;
  right: -140px;
  top: -130px;
  transform: rotate(-22deg);
  width: 420px;
  opacity: 0.2;
  z-index: 0;
}

main::after {
  background:
    url("assets/background-kalo-lauhala.jpg") 22% 74% / 175% auto no-repeat,
    radial-gradient(ellipse at center, rgba(48, 70, 51, 0.13) 0 38%, transparent 40%),
    radial-gradient(ellipse at center, rgba(208, 173, 119, 0.12) 0 18%, transparent 20%);
  border-radius: 52% 48% 58% 42%;
  bottom: -120px;
  content: "";
  height: 270px;
  left: -120px;
  pointer-events: none;
  position: absolute;
  transform: rotate(28deg);
  width: 340px;
  opacity: 0.18;
  z-index: 0;
}

main > * {
  position: relative;
  z-index: 1;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  left: 50%;
  max-width: 1120px;
  min-height: 66px;
  padding: 10px 12px 10px 16px;
  position: sticky;
  top: 20px;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  z-index: 50;
}

.brand-mark,
.nav-links,
.footer-links {
  align-items: center;
  display: flex;
}

.brand-mark {
  color: var(--berry);
  flex: 0 0 auto;
  font-size: 0.98rem;
  font-weight: 900;
  gap: 10px;
}

.mark-bloom {
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--shell-soft));
  border: 1px solid rgba(129, 63, 85, 0.22);
  border-radius: 50%;
  color: var(--berry);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-links {
  color: #605750;
  flex: 1;
  flex-wrap: nowrap;
  font-size: 0.9rem;
  font-weight: 750;
  gap: clamp(10px, 1.3vw, 20px);
  justify-content: center;
  white-space: nowrap;
}

.nav-links a,
.footer-links a {
  border-radius: 999px;
}

.nav-links a {
  padding: 8px 2px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--berry);
  outline: none;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry);
  display: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  min-height: 42px;
  padding: 0 16px;
}

.nav-button,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-button,
.button.primary {
  background: var(--forest);
  box-shadow: 0 12px 24px rgba(48, 70, 51, 0.18);
  color: var(--paper);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--line);
  color: var(--berry);
}

.button:hover,
.nav-button:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
}

.page-shell,
.section,
.page-hero,
.hero {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.hero,
.page-hero {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  min-height: 0;
  padding: 0 0 clamp(40px, 5vw, 64px);
}

.hero {
  background: linear-gradient(135deg, rgba(255, 251, 244, 0.94), rgba(248, 229, 226, 0.66));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  min-height: clamp(520px, 54vw, 660px);
  overflow: hidden;
  padding: 0;
}

.page-hero {
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: auto;
}

.hero-copy,
.page-hero-copy,
.section-copy {
  min-width: 0;
}

.hero-copy {
  align-self: center;
  padding: clamp(28px, 4vw, 44px);
}

.eyebrow {
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-subtitle,
.page-hero-copy > p {
  font-size: clamp(1.03rem, 1.55vw, 1.18rem);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.photo-frame,
.hero-media,
.page-hero-image {
  background: var(--paper);
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
}

.photo-frame img,
.hero-media img,
.page-hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-media {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  min-height: 100%;
}

.hero-media img {
  object-position: 53% center;
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(255, 251, 244, 0.34), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-media,
.page-hero-image {
  aspect-ratio: 16 / 11;
}

.page-hero-image.portrait,
.photo-frame.portrait {
  aspect-ratio: 4 / 5;
}

.hero-media.landscape,
.page-hero-image.landscape,
.photo-frame.landscape {
  aspect-ratio: 16 / 10;
}

.photo-frame.square {
  aspect-ratio: 1 / 1;
}

.photo-frame.soft-contain {
  align-items: center;
  background: linear-gradient(135deg, #fff, #fff7f2);
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 34px);
}

.photo-frame.soft-contain img {
  object-fit: contain;
}

.page-hero-image.soft-contain img {
  object-fit: contain;
  padding: clamp(18px, 3vw, 32px);
}

.founder-hero-photos {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  justify-self: center;
  max-width: 440px;
  width: 100%;
}

.founder-hero-photos .photo-frame {
  align-items: center;
  background: linear-gradient(135deg, #fffaf4, #f8ece3);
  border-width: 8px;
  display: flex;
  justify-content: center;
}

.founder-hero-photos .photo-frame:first-child,
.founder-hero-photos .photo-frame:last-child {
  aspect-ratio: 16 / 9;
}

.founder-hero-photos img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.founder-childhood-photo img {
  object-fit: contain;
  object-position: center;
}

.art-card {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(250, 237, 216, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.art-card img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.section {
  padding-bottom: clamp(42px, 5vw, 66px);
  padding-top: clamp(42px, 5vw, 66px);
}

.section + .section {
  border-top: 1px solid rgba(129, 63, 85, 0.08);
}

.section-heading {
  margin: 0 auto 24px;
  max-width: 820px;
  text-align: center;
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.card-grid,
.spec-grid,
.partner-grid {
  display: grid;
  gap: 14px;
}

.card-grid.three,
.spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-card,
.spec-card,
.notice-card,
.timeline-card,
.profile-card,
.contact-panel {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  height: 100%;
  padding: clamp(20px, 2.6vw, 30px);
}

.content-card,
.spec-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 178px;
}

.spec-card {
  overflow: hidden;
  position: relative;
}

.spec-card::after {
  background: radial-gradient(circle, rgba(182, 145, 82, 0.16), rgba(244, 231, 214, 0));
  border-radius: 999px;
  bottom: -28px;
  content: "";
  height: 96px;
  pointer-events: none;
  position: absolute;
  right: -20px;
  width: 96px;
}

.spec-card > * {
  position: relative;
  z-index: 1;
}

.spec-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.spec-icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(250, 229, 234, 0.96), rgba(245, 238, 223, 0.96));
  border: 1px solid rgba(177, 69, 109, 0.16);
  border-radius: 18px;
  color: var(--berry);
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  width: 52px;
}

.spec-card:nth-child(3n + 2) .spec-icon,
.spec-card:nth-child(3n) .spec-icon {
  background: linear-gradient(135deg, rgba(220, 231, 210, 0.94), rgba(255, 253, 248, 0.96));
  border-color: rgba(43, 77, 55, 0.14);
  color: var(--forest);
}

.spec-icon.color-dots {
  gap: 6px;
  font-size: 0;
}

.spec-icon.color-dots::before,
.spec-icon.color-dots::after {
  border-radius: 999px;
  content: "";
  height: 13px;
  width: 13px;
}

.spec-icon.color-dots::before {
  background: var(--rose);
}

.spec-icon.color-dots::after {
  background: var(--forest);
}

.content-card .pill,
.spec-card .pill,
.timeline-status,
.small-pill {
  background: rgba(110, 127, 88, 0.16);
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding: 8px 12px;
  text-transform: uppercase;
  width: fit-content;
}

.spec-card .pill {
  margin-bottom: 0;
}

.content-card h3,
.spec-card h3 {
  margin-bottom: 10px;
}

.content-card p,
.spec-card p {
  margin-bottom: 0;
}

.split {
  align-items: stretch;
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
}

.split.reverse {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.split > * {
  min-width: 0;
}

.section-copy {
  align-self: center;
}

.section-copy.panel,
.notice-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 246, 242, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: clamp(22px, 3vw, 34px);
}

.section-copy.panel > :last-child,
.notice-card > :last-child,
.content-card > :last-child,
.spec-card > :last-child {
  margin-bottom: 0;
}

.section-copy h2 {
  margin-bottom: 12px;
}

.lead {
  color: var(--berry);
  font-size: 1.12rem;
  font-weight: 900;
}

.mission-statement {
  background: linear-gradient(135deg, rgba(243, 220, 225, 0.72), rgba(255, 253, 248, 0.86));
  border: 1px solid var(--line);
  border-left: 5px solid var(--rose);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.62;
  margin-top: 18px;
  padding: 16px 18px;
}

.check-list {
  color: var(--ink);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.check-list li {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px 1fr;
  line-height: 1.5;
}

.check-list li::before {
  background: var(--leaf);
  border-radius: 50%;
  color: #fff;
  content: "";
  display: inline-flex;
  height: 9px;
  margin-top: 8px;
  width: 9px;
}

.notice-card {
  align-self: center;
  border-color: rgba(129, 63, 85, 0.2);
}

.notice-card strong {
  color: var(--berry);
}

.photo-pair,
.photo-triplet,
.art-grid {
  display: grid;
  gap: 14px;
}

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

.photo-triplet,
.art-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-pair .photo-frame,
.photo-triplet .photo-frame {
  min-height: 100%;
}

.timeline {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}

.timeline::before {
  background: linear-gradient(180deg, rgba(129, 63, 85, 0.32), rgba(48, 70, 51, 0.24));
  border-radius: 999px;
  content: "";
  height: calc(100% - 44px);
  left: 50%;
  position: absolute;
  top: 22px;
  width: 2px;
}

.timeline-card {
  margin: 0 36px 26px 0;
  position: relative;
}

.timeline-card:nth-child(even) {
  margin: 20px 0 22px 30px;
}

.timeline-card::before {
  background: var(--paper);
  border: 5px solid var(--rose);
  border-radius: 50%;
  content: "";
  height: 16px;
  position: absolute;
  right: -48px;
  top: 32px;
  width: 16px;
  z-index: 1;
}

.timeline-card:nth-child(even)::before {
  left: -48px;
  right: auto;
}

.timeline-card.future::before {
  border-color: var(--lauhala);
}

.timeline-card.active::before {
  border-color: var(--leaf);
}

.profile-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin-inline: auto;
  max-width: 1040px;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.profile-card {
  display: flow-root;
  height: auto;
  overflow: hidden;
}

.profile-card .photo-frame {
  border-width: 8px;
  float: left;
  height: auto;
  margin: 0 clamp(18px, 2.8vw, 28px) 18px 0;
  max-width: 260px;
  min-height: 0;
  shape-outside: inset(0 round 28px);
  width: min(34%, 260px);
}

.profile-card:nth-child(even) .photo-frame {
  float: right;
  margin: 0 0 18px clamp(18px, 2.8vw, 28px);
}

.profile-card .photo-frame.portrait {
  aspect-ratio: 4 / 5;
}

.profile-card .photo-frame img {
  height: 100%;
  object-position: center top;
  width: 100%;
}

.profile-card > div:last-child {
  min-width: 0;
}

.profile-card h2 {
  font-size: clamp(2rem, 2.8vw, 2.85rem);
  overflow-wrap: anywhere;
}

.profile-title {
  color: var(--berry);
  font-weight: 900;
  margin-top: 8px;
}

.supporting-development-section {
  border-top: 1px solid rgba(116, 83, 85, 0.12);
  padding-top: clamp(24px, 3vw, 36px);
}

.support-card {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(247, 233, 220, 0.76)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  margin-inline: auto;
  max-width: 980px;
  padding: clamp(22px, 3vw, 34px);
}

.support-card h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
  margin-bottom: 10px;
}

.support-card-photo {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.96), rgba(233, 221, 199, 0.52)),
    var(--paper);
  border: 8px solid rgba(255, 253, 248, 0.96);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(72, 56, 48, 0.14);
  min-height: 100%;
  overflow: hidden;
}

.support-card-photo img {
  display: block;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.support-closing {
  color: var(--berry);
  font-weight: 900;
}

.scripture {
  background: rgba(243, 220, 225, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 16px 0 0;
  padding: 18px;
}

.founder-faith-section {
  border-top: 1px solid rgba(116, 83, 85, 0.12);
  padding-top: clamp(34px, 5vw, 56px);
}

.founder-faith-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.founder-faith-grid.single {
  margin-inline: auto;
  max-width: 820px;
}

.scripture-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 250, 0.96), rgba(246, 232, 220, 0.72)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  display: grid;
  min-height: 0;
  padding: clamp(22px, 3vw, 30px);
  text-align: center;
}

.scripture-card .scripture {
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-main {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.contact-hero {
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  padding-bottom: 0;
}

.contact-hero .page-hero-copy {
  align-self: center;
}

.contact-hero .page-hero-copy h1 {
  max-width: 620px;
}

.contact-hero .page-hero-image {
  align-self: center;
  aspect-ratio: 16 / 8.5;
}

.contact-section {
  align-items: stretch;
  border-top: 0;
  gap: clamp(18px, 3vw, 30px);
  padding-bottom: clamp(28px, 4vw, 42px);
  padding-top: 0;
}

.contact-section .contact-panel,
.contact-section .section-copy.panel {
  align-self: stretch;
}

.contact-section .section-copy.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 4px rgba(184, 102, 123, 0.2);
  outline: 2px solid transparent;
}

.checkbox-line {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.checkbox-line input {
  min-height: auto;
  margin-top: 5px;
}

.site-footer {
  background: rgba(46, 41, 37, 0.94);
  color: var(--paper);
  margin: 18px auto 24px;
  max-width: var(--max);
  padding: 30px clamp(22px, 3vw, 42px);
  width: calc(100% - 64px);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.footer-inner {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1.35fr;
  margin: 0 auto;
  max-width: 1120px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 253, 248, 0.76);
}

.site-footer strong {
  color: var(--paper);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-links {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 10px;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .button,
  .nav-button,
  .menu-toggle {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    width: calc(100% - 48px);
  }

  main,
  .site-footer {
    width: calc(100% - 48px);
  }

  .nav-links {
    gap: 12px;
  }

  .nav-button {
    padding: 0 16px;
  }
}

@media (max-width: 940px) {
  body::before {
    width: 78vw;
  }

  .site-header {
    border-radius: 18px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 16px;
    padding: 10px;
    position: absolute;
    right: 16px;
    top: calc(100% + 10px);
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    width: 100%;
  }

  .nav-button {
    display: none;
  }

  .hero,
  .page-hero,
  .split,
  .split.reverse,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    min-height: auto;
    order: -1;
  }

  .page-hero {
    padding-bottom: 46px;
  }

  main > .page-hero:first-child,
  main > .hero:first-child {
    padding-top: 0;
  }

  .page-hero-image.portrait {
    aspect-ratio: 4 / 4.7;
    max-height: 680px;
  }

  .founder-hero-photos {
    grid-template-columns: 1fr;
    margin-inline: auto;
    max-width: 440px;
    width: 100%;
  }

  .card-grid.three,
  .spec-grid,
  .partner-grid,
  .photo-triplet,
  .art-grid,
  .founder-faith-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-card .photo-frame {
    height: auto;
    min-height: 0;
  }

  .founder-faith-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline::before {
    left: 18px;
  }

  .timeline-card,
  .timeline-card:nth-child(even) {
    margin: 0 0 16px 38px;
  }

  .timeline-card::before,
  .timeline-card:nth-child(even)::before {
    left: -34px;
    right: auto;
  }

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

@media (max-width: 680px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 250, 239, 0.9), rgba(255, 250, 239, 0.82)),
      url("assets/background-kalo-lauhala.jpg") 54% top / auto 100vh fixed no-repeat,
      #f5eadc;
  }

  body::before,
  body::after {
    opacity: 0.42;
  }

  .site-header {
    left: 12px;
    min-height: 62px;
    right: 12px;
    top: 12px;
    transform: none;
    width: auto;
  }

  .brand-mark span:last-child {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main {
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
    margin-top: 0;
    padding: 24px 16px 36px;
    width: 100%;
  }

  .site-footer {
    border-radius: 0;
    margin: 0;
    width: 100%;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.55rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  p {
    font-size: 1rem;
  }

  .hero,
  .section-copy.panel,
  .notice-card,
  .content-card,
  .spec-card,
  .profile-card,
  .support-card,
  .contact-panel {
    border-radius: 20px;
  }

  .hero-copy {
    padding: 24px 18px 26px;
  }

  .page-hero,
  .section {
    padding-bottom: 42px;
    padding-top: 42px;
  }

  .hero {
    margin-top: 0;
  }

  .hero-actions,
  .form-row,
  .photo-pair,
  .card-grid.three,
  .spec-grid,
  .partner-grid,
  .photo-triplet,
  .art-grid,
  .founder-faith-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .photo-frame,
  .page-hero-image {
    border-width: 7px;
  }

  .photo-frame.portrait,
  .profile-card .photo-frame.portrait {
    aspect-ratio: 4 / 4.8;
  }

  .founder-hero-photos .photo-frame:first-child,
  .founder-hero-photos .photo-frame:last-child {
    aspect-ratio: 16 / 9;
  }

  .profile-card .photo-frame {
    float: none;
    margin: 0 auto 18px;
    max-width: 300px;
    shape-outside: none;
    width: min(100%, 300px);
  }

  .profile-card:nth-child(even) .photo-frame {
    float: none;
    margin: 0 auto 18px;
  }

  .content-card,
  .spec-card {
    min-height: 0;
  }

  .support-card {
    grid-template-columns: 1fr;
  }

  .support-card-photo img {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}
