.resident-page { background: var(--paper); }

.resident-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) 0 clamp(82px, 10vw, 138px);
  background:
    radial-gradient(circle at 87% 12%, rgba(181,139,69,.18), transparent 28%),
    linear-gradient(145deg, var(--ivory), #f5efe6 58%, #e9dfd0);
}
.resident-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -260px;
  bottom: -310px;
  border: 1px solid rgba(139,75,58,.18);
  border-radius: 50%;
}
.resident-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}
.resident-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: .74rem;
}
.resident-breadcrumb a { color: var(--petrol-800); text-decoration: none; font-weight: 800; }
.resident-hero h1 {
  max-width: 830px;
  margin: 0;
  color: var(--petrol-950);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 6vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.058em;
  line-height: .92;
}
.resident-hero h1 em { color: var(--terra); font-weight: 400; }
.resident-hero__lead {
  max-width: 740px;
  margin: 28px 0 0;
  color: #3f4945;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.72;
}
.resident-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.resident-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.resident-hero__facts strong,
.resident-hero__facts span { display: block; }
.resident-hero__facts strong { color: var(--petrol-800); font-family: var(--serif); font-size: 1.3rem; }
.resident-hero__facts span { margin-top: 4px; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; }

.resident-access-card {
  padding: clamp(28px, 4vw, 42px);
  color: var(--white);
  background: linear-gradient(155deg, var(--petrol-700), var(--petrol-950));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(11,43,40,.2);
}
.resident-access-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #ead29e;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resident-access-card__status::before { content: ""; width: 7px; height: 7px; background: #d6b56f; border-radius: 50%; }
.resident-access-card h2 { margin: 25px 0 13px; color: var(--white); font-family: var(--serif); font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.04; }
.resident-access-card > p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.68; }
.resident-access-card ol { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: access; }
.resident-access-card li { counter-increment: access; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.14); }
.resident-access-card li::before { content: "0" counter(access); color: #d6b56f; font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.resident-access-card li strong { display: block; color: var(--white); font-size: .84rem; }
.resident-access-card li span { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-size: .73rem; line-height: 1.5; }

.resident-section { padding-block: clamp(82px, 10vw, 138px); }
.resident-section--ivory { background: var(--ivory); }
.resident-section--dark { color: var(--white); background: var(--petrol-950); }
.resident-section__head { display: grid; grid-template-columns: 1.05fr .72fr; gap: clamp(38px, 8vw, 110px); align-items: end; }
.resident-section__head h2 { max-width: 780px; margin: 0; color: var(--petrol-950); font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.resident-section__head > p { margin: 0 0 7px; color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
.resident-section--dark .resident-section__head h2 { color: var(--white); }
.resident-section--dark .resident-section__head > p { color: rgba(255,255,255,.64); }

.resident-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 58px; }
.resident-module {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid rgba(21,63,58,.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 42px rgba(17,39,35,.06);
}
.resident-module--ready { color: var(--white); background: var(--petrol-800); }
.resident-module__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.resident-module__number { color: var(--terra); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.resident-module--ready .resident-module__number { color: #e2bf7b; }
.resident-state { padding: 7px 10px; color: var(--ink-soft); background: var(--ivory); border-radius: 999px; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.resident-module--ready .resident-state { color: #ead29e; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.resident-module h3 { margin: 38px 0 12px; color: var(--petrol-950); font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 600; line-height: 1.08; }
.resident-module--ready h3 { color: var(--white); }
.resident-module p { margin: 0; color: var(--ink-soft); font-size: .87rem; line-height: 1.65; }
.resident-module--ready p { color: rgba(255,255,255,.69); }
.resident-module__contents { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.resident-module__contents span { padding: 6px 9px; color: var(--petrol-800); background: rgba(21,63,58,.07); border-radius: 999px; font-size: .65rem; font-weight: 750; }
.resident-module--ready .resident-module__contents span { color: rgba(255,255,255,.78); background: rgba(255,255,255,.09); }

.resident-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 58px; }
.resident-material-card { min-height: 330px; padding: 30px; background: var(--paper); border: 1px solid rgba(21,63,58,.1); border-radius: var(--radius-md); }
.resident-material-card__index { color: var(--terra); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.resident-material-card h3 { margin: 45px 0 14px; color: var(--petrol-950); font-family: var(--serif); font-size: 1.8rem; line-height: 1.08; }
.resident-material-card p { color: var(--ink-soft); font-size: .86rem; line-height: 1.68; }
.resident-material-card ul { margin: 24px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.resident-material-card li { position: relative; margin: 8px 0; padding-left: 18px; color: var(--ink-soft); font-size: .76rem; }
.resident-material-card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--bronze); }

.resident-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 58px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); }
.resident-flow article { min-height: 260px; padding: 29px; background: rgba(255,255,255,.045); }
.resident-flow span { color: #d8b878; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.resident-flow h3 { margin: 55px 0 11px; color: var(--white); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.resident-flow p { margin: 0; color: rgba(255,255,255,.61); font-size: .8rem; line-height: 1.62; }
.resident-safety-note { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 26px; padding: 24px 26px; color: rgba(255,255,255,.76); background: rgba(181,139,69,.1); border: 1px solid rgba(216,184,120,.24); border-radius: var(--radius-sm); }
.resident-safety-note strong { display: block; color: #ead29e; }
.resident-safety-note p { margin: 4px 0 0; font-size: .82rem; line-height: 1.6; }
.resident-safety-note > span { color: #d8b878; font-size: 1.25rem; }

.resident-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.resident-faq__intro { position: sticky; top: 140px; }
.resident-faq__intro h2 { margin: 0; color: var(--petrol-950); font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 4.2rem); line-height: 1; }
.resident-faq__intro p:not(.eyebrow) { color: var(--ink-soft); }
.resident-faq__list { border-top: 1px solid var(--line); }
.resident-faq details { border-bottom: 1px solid var(--line); }
.resident-faq summary { position: relative; padding: 25px 46px 25px 0; color: var(--petrol-950); font-family: var(--serif); font-size: 1.18rem; font-weight: 600; cursor: pointer; list-style: none; }
.resident-faq summary::-webkit-details-marker { display: none; }
.resident-faq summary::after { content: "+"; position: absolute; right: 5px; top: 21px; color: var(--terra); font-family: var(--sans); font-size: 1.35rem; }
.resident-faq details[open] summary::after { content: "−"; }
.resident-faq details p { max-width: 780px; margin: -5px 0 25px; color: var(--ink-soft); font-size: .9rem; line-height: 1.72; }

.resident-closing { padding-block: clamp(72px, 9vw, 112px); background: #e9dfd0; }
.resident-closing__grid { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; }
.resident-closing h2 { max-width: 790px; margin: 0; color: var(--petrol-950); font-family: var(--serif); font-size: clamp(2.4rem, 4.8vw, 4.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.resident-closing p { max-width: 730px; margin: 20px 0 0; color: var(--ink-soft); }
.resident-closing__actions { display: flex; flex-direction: column; gap: 10px; min-width: 245px; }

@media (max-width: 980px) {
  .resident-hero__grid,
  .resident-section__head,
  .resident-faq,
  .resident-closing__grid { grid-template-columns: 1fr; }
  .resident-hero__grid { align-items: start; }
  .resident-access-card { max-width: 680px; }
  .resident-section__head > p { max-width: 760px; }
  .resident-material-grid { grid-template-columns: 1fr 1fr; }
  .resident-flow { grid-template-columns: 1fr 1fr; }
  .resident-faq__intro { position: static; }
  .resident-closing__actions { width: min(100%, 420px); }
}

@media (max-width: 680px) {
  .resident-hero { padding-top: 48px; }
  .resident-hero h1 { font-size: clamp(2.75rem, 15vw, 4.35rem); }
  .resident-hero__facts { grid-template-columns: 1fr; }
  .resident-hero__facts div { padding: 0 0 13px; border-bottom: 1px solid var(--line); }
  .resident-hero__actions .button { width: 100%; }
  .resident-module-grid,
  .resident-material-grid,
  .resident-flow { grid-template-columns: 1fr; }
  .resident-module { min-height: 250px; }
  .resident-flow article { min-height: 220px; }
  .resident-flow h3 { margin-top: 42px; }
  .resident-safety-note { grid-template-columns: 1fr; }
  .resident-closing__actions { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .resident-page *, .resident-page *::before, .resident-page *::after { scroll-behavior: auto !important; }
}
