.serif-title {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .serif-title {
    font-size: 44px;
  }
}

.about-subtitle {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
  max-width: 40ch;
}

@media (min-width: 768px) {
  .about-subtitle {
    margin-top: 18px;
    font-size: 28px;
    max-width: 48ch;
  }
}

.about-grid {
  display: block;
  padding: 24px var(--pad-x) var(--section-y);
  padding-left: max(calc(var(--pad-x) + 8px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .about-grid {
    padding-top: 32px;
    padding-left: max(calc(var(--pad-x) + 24px), env(safe-area-inset-left, 0px));
  }
}

@media (min-width: 1024px) {
  .about-grid {
    padding-left: max(calc(var(--pad-x) + 40px), env(safe-area-inset-left, 0px));
  }
}

.about-grid__intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .about-grid__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 40px 48px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .about-grid__intro {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 48px 64px;
  }
}

.about-grid__copy {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.about-body {
  margin-top: 28px;
  max-width: none;
  width: 100%;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.about-body p {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(49, 49, 49, 0.12);
}

.about-body p:first-child {
  padding-top: 0;
}

.about-body p:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .about-body {
    margin-top: 32px;
    font-size: 16px;
  }

  .about-body p {
    padding: 26px 0;
  }

  .about-body p:first-child {
    padding-top: 0;
  }

  .about-body p:last-child {
    padding-bottom: 0;
  }
}

.about-milestones__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink);
}

@media (min-width: 768px) {
  .about-milestones__title {
    margin-bottom: 22px;
    font-size: 20px;
  }
}

.about-history {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(49, 49, 49, 0.12);
}

@media (min-width: 768px) {
  .about-history {
    margin-top: 48px;
    padding-top: 40px;
  }
}

.about-history__rows {
  position: relative;
  margin-top: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}

.about-history__rows::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--color-accent-soft);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: top center;
  transform-origin: top center;
  pointer-events: none;
}

.about-history__rows.is-drawn::before {
  -webkit-animation: draw-scale-y 0.9s var(--reveal-easing) both;
  animation: draw-scale-y 0.9s var(--reveal-easing) both;
}

.about-history__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(49, 49, 49, 0.12);
  align-items: center;
}

.about-history__row:first-child {
  padding-top: 8px;
}

.about-history__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .about-history__rows {
    padding-left: 28px;
  }

  .about-history__row {
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.4fr);
    gap: 28px 40px;
    padding: 26px 0;
  }
}

.about-history__logo {
  margin: 0;
  justify-self: stretch;
}

.about-history__logo-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: var(--color-white);
  border: 1px solid rgba(49, 49, 49, 0.1);
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

.about-history__logo-img--dark {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
  padding: 0;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-history__logo-img {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.milestones {
  position: relative;
}

.milestone {
  display: flex;
  gap: 20px;
  min-width: 0;
}

.milestone__year {
  min-width: 64px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-accent-soft);
}

.milestone__body {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .milestone {
    gap: 28px;
  }

  .milestone__year {
    min-width: 72px;
    font-size: 26px;
  }

  .milestone__body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .milestones::before,
  .about-history__rows::before {
    -webkit-transform: none;
    transform: none;
    -webkit-animation: none;
    animation: none;
  }
}

.craft-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  margin: 0;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .craft-mosaic {
    gap: 16px;
    max-width: 420px;
  }
}

@media (min-width: 1024px) {
  .craft-mosaic {
    gap: 12px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-offset) + env(safe-area-inset-top, 0px) + 24px);
  }
}

.craft-mosaic__item {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}

.craft-mosaic__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .craft-mosaic__item:hover img {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }
}

.craft-mosaic__item:focus-visible img {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .craft-mosaic__item img {
    transition: none;
  }

  .craft-mosaic__item:hover img,
  .craft-mosaic__item:focus-visible img {
    -webkit-transform: none;
    transform: none;
  }
}

.contacts {
  padding: 40px var(--pad-x) var(--section-y-lg);
}

.contacts .serif-title {
  margin: 0;
  text-align: center;
}

.contacts .page-intro {
  margin-top: 12px;
  text-align: center;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.contacts__info {
  order: 1;
}

.contacts__map {
  order: 2;
  min-width: 0;
}

.contacts__form {
  order: 3;
  min-width: 0;
}

.contacts__photo {
  order: 4;
  min-width: 0;
}

.contacts__map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  border: 0;
  background: var(--color-white);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .contacts {
    padding-top: 48px;
  }

  .contacts .page-intro {
    margin-top: 14px;
  }

  .contacts__grid {
    margin-top: 48px;
    gap: 28px;
  }

  .contacts__map-frame {
    min-height: 240px;
  }
}

@media (min-width: 900px) {
  .contacts__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 84%;
    max-width: 100%;
    margin-inline: auto;
    column-gap: 64px;
    row-gap: 28px;
    align-items: stretch;
  }

  .contacts__info {
    grid-column: 1;
    grid-row: 1;
    order: unset;
    display: flex;
    flex-direction: column;
  }

  .contacts__form {
    grid-column: 2;
    grid-row: 1;
    order: unset;
    height: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
  }

  .contacts__map {
    grid-column: 1;
    grid-row: 2;
    order: unset;
    display: flex;
    flex-direction: column;
    min-height: 240px;
  }

  .contacts__photo {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    display: flex;
    flex-direction: column;
    min-height: 240px;
  }

  .contacts__map-frame {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    min-height: 240px;
    height: 100%;
    aspect-ratio: auto;
  }

  .contacts__form .form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .contacts__form .form textarea {
    flex: 1 1 auto;
    min-height: 64px;
  }

  .map-slot {
    max-height: none;
    aspect-ratio: auto;
    min-height: 240px;
    flex: 1 1 auto;
    height: 100%;
  }
}

.info-card {
  background: var(--color-white);
  border: 1px solid rgba(76, 76, 76, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  height: 100%;
  box-sizing: border-box;
}

.info-card__label {
  color: var(--color-gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.info-card__value {
  margin-top: 6px;
}

.info-card__value--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card__value--stack a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.map-slot {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.thanks {
  padding: var(--section-y-lg) var(--pad-x);
  text-align: center;
}

.thanks h1 {
  font-size: 32px;
}

.thanks p {
  margin: 16px auto 28px;
  max-width: 420px;
  opacity: 0.7;
}
