@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");

:root {
  --ink: #280905;
  --bg: #f3e9d2;
  --blue: #1e6fa8;
  --side: clamp(16px, 6vw, 100px);
  --max: 1100px;
  --tileGap: clamp(30px, 8vw, 40px);
  --imgRatio: 4 / 3;
}


html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, serif;
}

.wrap {
  width: min(calc(100% - (var(--side) * 2)), var(--max));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) 0;
}

.mosaic-grid {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tileGap);
  padding-top: clamp(6px, 1vw, 10px);
  overflow: visible;
  --tileW: calc((100% - var(--tileGap)) / 2);
}

.tile {
  width: 100%;
  aspect-ratio: var(--imgRatio);
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--bg);
  opacity: 0;
  transform: translate(0, 0) scale(0.86);
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 760ms ease;
  will-change: transform, opacity;
}

.tile-tl {
  transform: translate(-30vw, -30vh) scale(0.86);
}

.tile-tr {
  transform: translate(30vw, -30vh) scale(0.86);
}

.tile-bl {
  transform: translate(-30vw, 30vh) scale(0.86);
}

.tile-br {
  transform: translate(30vw, 30vh) scale(0.86);
}

.tile-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--tileW) * 0.7);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  z-index: 3;
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 760ms ease;
  will-change: transform, opacity;
}

.tile.in {
  opacity: 1;
  transform: translate(0, 0) scale(0.86);
}

.tile-center.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.86);
}

.lower {
  margin-top: clamp(24px, 5vw, 44px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: clamp(18px, 4vw, 40px);
}

.script-title {
  margin: 0 0 16px 0;
  font-family: "Dancing Script", Georgia, serif;
  font-size: clamp(34px, 4.6vw, 58px);
  color: var(--blue);
  font-weight: 500;
}

.statement-p {
  margin: 0;
  max-width: 800px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
}

.page-title {
  margin: 0;
  font-family: "Dancing Script", Georgia, serif;
  font-size: clamp(54px, 7vw, 90px);
  font-weight: 500;
  line-height: 1.05;
  text-align: right;
  letter-spacing: 0.06em;
}

.site-footer {
  background: #1e6fa8;
  opacity: 0.5;
}

.footer-inner {
  width: 70%;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-note,
.footer-contact {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: 200;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  line-height: 0.8;
}

.contact-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-icon {
  display: inline-block;
  width: 20px;
  font-size: 30px;
  color: #fff;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}