.resident-page {
  width: min(calc(100% - 3rem), 68rem);
  margin-inline: auto;
  padding: 1.4rem 0 6rem;
}

.breadcrumbs {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.resident-hero {
  min-height: 29rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.resident-copy {
  padding-block: 2rem;
}

.section-kicker {
  margin-bottom: 0.6rem;
  color: #a55441;
  font-size: 0.78rem;
  font-weight: 750;
}

.resident-copy h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.resident-copy > p:last-child {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

.resident-visual {
  position: relative;
  height: 21rem;
  margin: 0;
  overflow: hidden;
  background: #f0ecdf;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.resident-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1rem rgba(255, 253, 247, 0.18);
  pointer-events: none;
}

.resident-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 52%;
}

.character-section,
.start-section,
.important-section {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

.section-title {
  margin-bottom: 1.8rem;
}

.section-title h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.section-title-row > p {
  max-width: 31rem;
  margin-bottom: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.character-section {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.character-copy {
  max-width: 47rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.character-copy p {
  margin-bottom: 1.15rem;
}

.character-copy p:first-child {
  color: var(--ink);
  font-weight: 650;
}

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

.start-grid {
  border-top: 1px solid var(--line);
}

.start-card {
  --card-accent: var(--sage);
  position: relative;
  min-height: 24rem;
  padding: clamp(2rem, 5vw, 4.25rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  direction: ltr;
  border-bottom: 1px solid var(--line);
}

.start-card:hover {
  background: color-mix(in srgb, var(--card-accent) 3.5%, transparent);
}

.start-card:nth-child(even) {
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: "visual copy";
}

.card-community { --card-accent: #dc806a; }
.card-gate { --card-accent: #789786; }
.card-safety { --card-accent: #84ad8b; }
.card-electricity { --card-accent: #d9b252; }
.card-water { --card-accent: #83bdc9; }
.card-waste { --card-accent: #9fb18f; }
.card-children { --card-accent: #9b8eaf; }

.step-visual {
  grid-area: visual;
  min-height: 23rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.step-copy {
  grid-area: copy;
  max-width: 40rem;
  direction: rtl;
}

.start-card:nth-child(even) .step-visual {
  flex-direction: row-reverse;
}

.step-illustration {
  width: min(100%, 24rem);
  height: 23rem;
  display: block;
  object-fit: contain;
}

.gate-card-copy p {
  max-width: 37rem;
  margin-bottom: 0.65rem;
}

.gate-contact-link {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.gate-contact-link:hover {
  text-decoration: underline;
}

.gate-temporary {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--card-accent) 45%, var(--line));
  border-radius: 0.5rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--card-accent) 9%, #fff);
}

.gate-temporary strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.gate-temporary p {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gate-temporary span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-number {
  min-width: 3.5rem;
  color: color-mix(in srgb, var(--card-accent) 72%, var(--ink));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.start-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.start-card p {
  max-width: 38rem;
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.card-link {
  display: inline-block;
  padding-bottom: 0.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--card-accent);
  font-size: 0.86rem;
  font-weight: 750;
}

.important-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.important-grid article {
  min-height: 10rem;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.important-grid article:nth-child(odd) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.important-grid article:nth-child(even) {
  padding-right: 1.5rem;
}

.rule-mark {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.4rem;
  display: block;
  background: var(--coral);
  border-radius: 50%;
}

.important-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.important-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .resident-hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
    gap: 2rem;
  }

  .start-card {
    min-height: 21rem;
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  .resident-page {
    width: min(calc(100% - 1.5rem), 42rem);
    padding-top: 0.6rem;
  }

  .breadcrumbs {
    display: none;
  }

  .resident-hero {
    min-height: auto;
    padding: 2.4rem 0 3rem;
    grid-template-columns: 1fr;
  }

  .resident-copy {
    padding: 0;
  }

  .resident-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .resident-copy > p:last-child {
    font-size: 1.06rem;
  }

  .resident-visual {
    height: 16rem;
  }

  .character-section {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .character-copy {
    font-size: 1.03rem;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .start-card,
  .start-card:nth-child(even) {
    min-height: auto;
    padding: 2rem 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "copy";
    gap: 1.35rem;
  }

  .step-visual {
    min-height: 16rem;
    gap: 0;
  }

  .start-card:nth-child(even) .step-visual {
    flex-direction: row;
  }

  .step-illustration {
    width: min(100%, 20rem);
    height: 16rem;
  }

  .gate-temporary {
    margin-top: 1rem;
  }

  .important-grid article,
  .important-grid article:nth-child(odd),
  .important-grid article:nth-child(even) {
    min-height: auto;
    padding: 1.25rem 0;
    border-left: 0;
  }

}
