.next-step .slide-inner { max-width:1480px; }
.next-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(44px,6vw,88px); align-items:center; }
.next-actions { min-width:0; }
.next-sequence>div { display:grid; grid-template-columns:24px 1fr; gap:0 22px; padding:28px 0; border-bottom:1px solid var(--line); }
.next-sequence>div:first-child { padding-top:0; }
.step-number { font-size:12px; color:var(--muted); padding-top:6px; }
.next-sequence p { font-size:clamp(23px,2vw,30px); line-height:1.35; letter-spacing:-.025em; }
.primary-action { display:inline-flex; align-items:center; justify-content:center; height:56px; padding:16px 32px; margin-top:48px; border-radius:6px; background:#1a1a1a; color:#fff; font:500 16px/.95 'Geist',sans-serif; letter-spacing:-.32px; white-space:nowrap; transition:opacity .2s ease; }
.primary-action:hover { opacity:.85; }
.closing-visual { position:relative; width:100%; height:min(680px,calc(100svh - 200px)); min-height:500px; overflow:hidden; background:#e1edf0; }
.closing-photo { width:100%; height:100%; object-fit:cover; object-position:center bottom; }
.closing-visual h2 { position:absolute; top:8.5%; left:8.57%; right:8.57%; font-size:clamp(34px,3.2vw,50px); font-weight:400; line-height:1.1; letter-spacing:-.04em; max-width:17ch; text-wrap:balance; }
.closing-notification { position:absolute; top:35.9%; left:8.57%; right:8.57%; padding:clamp(18px,1.5vw,24px); border:1px solid #ffffff4d; border-radius:16px; background:linear-gradient(180deg,#ffffffa6,#ffffff64); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); box-shadow:0 3px 8px #0000001a,1px 14px 14px #00000017,3px 31px 19px #0000000d,5px 55px 22px #00000003; opacity:0; transform:translateY(12px); transition:opacity .45s ease,transform .45s cubic-bezier(.22,.7,.25,1); }
.next-step[data-notification-visible='true'] .closing-notification { opacity:1; transform:translateY(0); }
.closing-notification-header { display:flex; gap:10px; align-items:center; margin-bottom:24px; font-size:18px; font-weight:500; }
.closing-notification-header img { width:32px; height:32px; flex:none; }
.closing-notification-header time { margin-left:auto; font-size:14px; font-weight:400; }
.closing-message { position:relative; font-size:clamp(16px,1.35vw,21px); line-height:1.4; letter-spacing:-.02em; white-space:pre-line; }
.closing-message-space { visibility:hidden; }
.closing-message-typed { position:absolute; inset:0; }
.closing-message-accessible { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(min-width:901px) and (max-height:800px) {
  .closing-visual { height:calc(100svh - 164px); min-height:460px; }
  .closing-visual h2 { font-size:40px; }
  .closing-notification { padding:18px; }
  .closing-notification-header { margin-bottom:18px; }
}
@media(max-width:1000px) {
  .next-layout { gap:36px; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
  .next-sequence p { font-size:23px; }
  .next-sequence>div { gap:0 16px; padding-block:24px; }
  .closing-visual { height:580px; min-height:0; }
  .closing-visual h2 { font-size:34px; }
  .closing-notification { left:6%; right:6%; padding:16px; }
  .closing-notification-header { margin-bottom:18px; }
}
@media(max-width:700px) {
  .next-layout { grid-template-columns:1fr; gap:36px; }
  .closing-visual { grid-row:1; height:auto; aspect-ratio:1173 / 1213; min-height:420px; }
  .closing-visual h2 { font-size:clamp(27px,7.5vw,36px); top:7%; }
  .closing-notification { top:33%; padding:15px; border-radius:14px; }
  .closing-notification-header { font-size:16px; margin-bottom:14px; }
  .closing-notification-header img { width:28px; height:28px; }
  .closing-notification-header time { font-size:12px; }
  .closing-message { font-size:15px; line-height:1.4; }
  .next-sequence p { font-size:24px; }
}
@media(prefers-reduced-motion:reduce) {
  .closing-notification, .primary-action { transition:none; }
}
