/* The final chapter: one stable native action, with glass architecture behind it. */
body:is([data-page="home"],[data-page="projects"]) .cf-closing.cf-next-chapter {
  --closing-progress:1;--closing-gutter:max(var(--pad,var(--cf-gutter)),calc((100vw - var(--cf-rail-home))/2));
  color:var(--cf-ink);font-family:var(--cf-body);
  position:relative;isolation:isolate;overflow:clip;
  display:block;padding:88px var(--closing-gutter) 64px;
  background:linear-gradient(to bottom,transparent calc(100% - 130px),#0b1420),radial-gradient(ellipse at 79% 42%,#0e416445,transparent 45%),linear-gradient(115deg,#0d1421,#0c1725 70%,#0b1420);
  /* The elastic footer samples this solid colour to continue the bottom fade. */
  background-color:#0b1420;
  border-top:1px solid #314a64;
}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter>:not(.cf-next-architecture) {position:relative;z-index:2}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter>.chapter-bar {
  display:flex;justify-content:space-between;align-items:center;gap:30px;
  padding-top:23px;border-top:1px solid #5873995c;
  font:400 10px/1.5 var(--cf-mono);letter-spacing:.065em;color:var(--cf-label);
}
.cf-next-chapter>.chapter-bar p {margin:0}
.cf-next-chapter>.chapter-bar p:first-child {display:flex;gap:34px}
.cf-next-chapter>.chapter-bar p:first-child>span {color:var(--cf-light)}
.cf-next-chapter>.chapter-bar p:last-child {text-align:right}
.cf-next-chapter>.chapter-bar::before {
  content:"";position:absolute;left:0;top:-1px;height:2px;
  width:calc(58px + var(--seam-progress,1)*20%);background:var(--cf-light);
  box-shadow:0 0 13px color-mix(in srgb,var(--cf-blue) 31.37%,transparent);pointer-events:none;
}
.cf-next-chapter .micro {font-family:var(--cf-mono);font-weight:400}
body[data-page="projects"] .cf-next-chapter {margin-top:90px}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-layout {
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);
  gap:clamp(48px,6.5vw,140px);align-items:center;margin:74px 0 68px;
}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-copy {min-width:0}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter h2 {
  margin:0;font-family:var(--cf-display);font-weight:500;
  font-size:clamp(76px,8vw,154px);line-height:1.11;letter-spacing:-.012em;
  text-transform:uppercase;max-width:100%;text-wrap:initial;
}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter h2 em {color:var(--cf-blue);font-style:normal}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-copy>p {
  max-width:42ch;margin:36px 0 0;color:#b9c8da;
  font-size:clamp(16px,1.15vw,20px);line-height:1.7;
}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-stage {
  position:relative;isolation:isolate;width:100%;max-width:640px;
  padding:52px 32px 0 18px;justify-self:end;perspective:1200px;
}
.cf-next-stage::before {
  content:"";position:absolute;inset:-10% -14% 0;z-index:-2;pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%,#019edb1f,transparent 65%);
}
.cf-next-orbit {
  position:absolute;z-index:-1;pointer-events:none;width:115%;max-width:none;
  height:auto;left:-7%;top:-7%;overflow:visible;
  transform:rotate(-5deg) scale(calc(.94 + var(--closing-progress)*.06));
}
.cf-next-orbit-outer,.cf-next-orbit-inner {stroke:#80b6da;stroke-width:1;opacity:.23}
.cf-next-orbit-inner {opacity:.13}
.cf-next-orbit-trace {
  stroke:#67ddff;stroke-width:1.8;opacity:.8;
  stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--closing-progress));
}
.cf-next-planes {position:absolute;inset:38px 20px 80px 18px;z-index:-1;pointer-events:none;perspective:1200px}
.cf-next-planes>span {
  position:absolute;inset:0;clip-path:polygon(0 0,90% 0,100% 14%,100% 100%,10% 100%,0 86%);
  background:linear-gradient(135deg,#83bfe055,#4c779445);
}
.cf-next-planes>span::before {
  content:"";position:absolute;inset:1px;
  clip-path:polygon(0 0,90% 0,100% 14%,100% 100%,10% 100%,0 86%);
  background:linear-gradient(130deg,#16283a,#0d1c2b);
}
.cf-next-planes>span:first-child {
  transform:translate3d(calc(-38px - (1 - var(--closing-progress))*24px),calc(-28px - (1 - var(--closing-progress))*32px),-25px) rotate(-7deg);
}
.cf-next-planes>span:last-child {
  transform:translate3d(calc(26px + (1 - var(--closing-progress))*24px),calc(-13px - (1 - var(--closing-progress))*18px),-12px) rotate(3deg);
}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-action {
  position:relative;isolation:isolate;display:block;width:100%;aspect-ratio:540/410;
  padding:0;border:0;border-radius:0;background:transparent;color:#173149;
  font-family:var(--cf-body);font-weight:500;text-align:left;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.cf-next-face {position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 28px 26px #02061090);pointer-events:none}
.cf-next-face-depth {fill:#7193ab;stroke:#4d718c;stroke-width:1.5}
.cf-next-face-front {fill:#e2ebf1;stroke:#9cd3eb;stroke-width:1.5;transition:fill .35s}
.cf-next-face-inset {fill:none;stroke:#7698ae;stroke-width:1}
.cf-next-face-light {fill:none;stroke:#67ddff;stroke-width:2;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--closing-progress));opacity:.9}
.cf-next-action::after {
  content:"";position:absolute;inset:0 3.33% 4.4% 0;z-index:0;pointer-events:none;
  clip-path:polygon(0 0,90% 0,100% 14%,100% 100%,10% 100%,0 86%);
  background:linear-gradient(118deg,transparent 20%,#ffffff65 47%,transparent 68%);
  opacity:0;transform:translateX(-5%);transition:opacity .45s,transform .65s var(--cf-ease);
}
.cf-next-action-cue {
  position:absolute;left:8%;top:9%;z-index:1;
  font-family:var(--cf-mono);font-size:clamp(9px,.75vw,11px);font-weight:400;
  letter-spacing:.025em;color:#466985;
}
.cf-next-chevron {
  position:absolute;left:19%;top:10%;width:62%;height:68%;z-index:1;
  pointer-events:none;
}
.cf-next-chevron::before {content:"";position:absolute;left:27%;right:17%;bottom:11%;height:7%;border-radius:50%;background:#204b6940;filter:blur(8px)}
.cf-next-chevron-fallback,.cf-next-chevron-canvas {position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.cf-next-chevron-canvas {visibility:hidden}
.cf-next-chevron[data-chevron-ready="true"] .cf-next-chevron-canvas {visibility:visible}
.cf-next-chevron[data-chevron-ready="true"] .cf-next-chevron-fallback {visibility:hidden}
.cf-next-action-label {
  position:absolute;left:8%;right:10%;bottom:12%;z-index:1;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-top:1px solid #7896ab75;padding-top:22px;
  font-size:clamp(18px,1.65vw,27px);letter-spacing:-.035em;line-height:1.25;
}
.cf-next-action-label>span {font-size:1.25em;font-weight:400;color:#006f99}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-action:focus-visible {outline:2px solid #67ddff;outline-offset:10px}
@media(hover:hover) and (pointer:fine) {
  .cf-next-action:hover .cf-next-face-front {fill:#f2f8fc}
  .cf-next-action:hover::after {opacity:.8;transform:translateX(0)}
}
.cf-next-action:focus-visible .cf-next-face-front {fill:#f2f8fc}
.cf-next-action:focus-visible .cf-next-chevron {translate:0 0}
.cf-next-action:active .cf-next-face-front {fill:#d5e7f0}
body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-note {
  color:#a7b9cd;font-family:var(--cf-body);font-size:13px;line-height:1.6;
  margin:27px 8px 0 8%;max-width:38ch;
}
.cf-next-architecture {position:absolute!important;inset:0;z-index:-1!important;overflow:hidden;pointer-events:none}
.cf-next-architecture>span {
  position:absolute;top:-65%;right:8%;width:50%;height:230%;
  border-left:1px solid #547e9b24;transform:rotate(35deg);
  mask-image:linear-gradient(transparent,#000 35%,#000 60%,transparent);
}
.cf-next-architecture>span:nth-child(2) {right:0;transform:rotate(35deg) translateX(48px);opacity:.6}
.cf-next-architecture>span:nth-child(3) {right:-12%;transform:rotate(35deg) translateX(96px);opacity:.35}
.cf-next-foot {display:flex;align-items:center;gap:36px;border-top:1px solid #34516b55;padding-top:26px}
.cf-next-foot>.micro {font-size:9px;color:#8ca8c4;letter-spacing:.06em}
.cf-next-light-line {height:1px;flex:1;background:linear-gradient(90deg,#019edb,#67ddff55,transparent);max-width:240px;margin-left:auto}
@media(max-width:1100px) {
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-layout {gap:44px;margin:60px 0}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter h2 {font-size:clamp(66px,8vw,90px)}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-stage {padding:38px 16px 0 16px}
  .cf-next-action-label {padding-top:15px;font-size:20px}
}
@media(max-width:900px) {
  body:is([data-page="home"],[data-page="projects"]) .cf-closing.cf-next-chapter {padding-top:64px;padding-bottom:48px}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-layout {grid-template-columns:1fr;gap:40px;margin:48px 0 52px}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter h2 {font-size:clamp(72px,12vw,104px)}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-copy>p {margin-top:24px;max-width:40ch}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-stage {max-width:520px;justify-self:center;padding:40px 20px 0}
  .cf-next-action-label {font-size:25px}
  .cf-next-planes {inset:34px 20px 74px}
}
@media(max-width:650px) {
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter>.chapter-bar {gap:20px;font-size:8px;padding-top:20px;align-items:start}
  .cf-next-chapter>.chapter-bar p:first-child {gap:15px}
  .cf-next-chapter>.chapter-bar p:last-child {max-width:120px}
}
@media(max-width:700px) {body[data-page="projects"] .cf-next-chapter {margin-top:60px}}
@media(max-width:600px) {
  body:is([data-page="home"],[data-page="projects"]) .cf-closing.cf-next-chapter {padding-top:40px;padding-bottom:35px}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter h2 {font-size:clamp(52px,14.5vw,80px);line-height:1.13}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-layout {gap:26px;margin:42px 0 36px}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-copy>p {font-size:16px;max-width:33ch}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-stage {padding:24px 7px 0}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-note {font-size:12px;margin-top:23px;max-width:33ch}
  .cf-next-action-cue {font-size:8px;letter-spacing:0}
  .cf-next-action-label {font-size:clamp(17px,4.5vw,23px);padding-top:14px;gap:8px}
  .cf-next-chevron {top:11%;height:calc(68% - 24px)}
  .cf-next-planes {inset:24px 10px 66px}
  .cf-next-planes>span:first-child {transform:translate(-12px,-8px) rotate(-4deg)}
  .cf-next-planes>span:last-child {transform:translate(12px,-4px) rotate(2deg)}
  .cf-next-orbit {width:109%;left:-4.5%;top:0}
  .cf-next-foot {gap:18px;padding-top:22px}
  .cf-next-foot>.micro {max-width:23ch;font-size:8px;line-height:1.8}
  .cf-next-light-line {max-width:90px}
}
html[data-motion="off"] .cf-next-chapter {--closing-progress:1!important}
html[data-motion="off"] .cf-next-chevron {translate:0 0!important}
@media(prefers-reduced-motion:reduce) {
  .cf-next-chapter {--closing-progress:1!important}
  .cf-next-chevron {translate:0 0!important}
}
@media(forced-colors:active) {
  .cf-next-orbit,.cf-next-planes,.cf-next-architecture,.cf-next-face,.cf-next-chevron,.cf-next-action::after {display:none}
  body:is([data-page="home"],[data-page="projects"]) .cf-next-chapter .cf-next-action {border:2px solid ButtonText;background:ButtonFace;color:ButtonText;aspect-ratio:auto;min-height:100px;padding:24px}
  .cf-next-action-cue {position:static;display:block;color:ButtonText}
  .cf-next-action-label {position:static;color:ButtonText;border:0;padding-top:16px}
}
