

.end {
  --end-e: clamp(90px, 13svh, 140px);                
  --end-muted: #4a4741;                              
  --end-grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .07 0 0 0 0 .2 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --end-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: relative; isolation: isolate; box-sizing: border-box;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--m);
  background: var(--bone);   
  color: var(--ink);
}

.end::before { content: ""; grid-row: 1 / 3; grid-column: 1; min-height: 100svh; pointer-events: none; }
.end > .end-call { grid-row: 1; grid-column: 1; }
.end > .end-mark { grid-row: 2; grid-column: 1; }
.end > .end-base { grid-row: 3; grid-column: 1; }


.end-snap { display: none; position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }


.end-ground { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(255,255,255,.62), transparent 72%),
    linear-gradient(180deg, #f4f1ea 0%, var(--bone) 34%, #e7e2d8 100%); }
.end-ground::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: var(--end-grain-dark); }

.end-plinth { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --pl-yb: calc(100svh - 21svh); --pl-yf: calc(100svh - 15svh);
  --pl-bl: 9vw; --pl-br: 91vw; --pl-fl: 6vw; --pl-fr: 94vw; --pl-rr: 6vw; }   

.pl-top { position: absolute; left: 0; right: 0; top: var(--pl-yb); height: calc(var(--pl-yf) - var(--pl-yb) + 1px);
  clip-path: polygon(var(--pl-bl) 0, var(--pl-br) 0, var(--pl-fr) 100%, var(--pl-fl) 100%);
  background: linear-gradient(180deg, #2f3bdc 0%, #3a47ee 70%, #4552f4 100%); }

.pl-face { position: absolute; top: var(--pl-yf); bottom: 0; left: var(--pl-fl); right: var(--pl-rr);
  background:
    linear-gradient(180deg, rgba(255,255,255,.34) 0, rgba(255,255,255,.08) 2px, transparent 3px),
    var(--end-grain-light),
    linear-gradient(180deg, #2430e0 0%, var(--blue) 26%, #1a25c0 100%); }
.pl-face::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: var(--end-grain-dark); }


.end-call { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(62px + clamp(30px, 6.4svh, 76px)); }

.end-top { display: flex; flex-direction: column; align-items: center; }
.end-h { margin: 0; color: var(--ink); font: 400 clamp(52px, min(6.6vw, 12.4svh), 124px)/.98 var(--display);
  letter-spacing: -.018em; white-space: nowrap; }
.end-h .w { display: inline-block; transform-origin: 50% 100%; }
.end-ln { display: inline; }


.end-cta { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: clamp(22px, 3.8svh, 40px); height: 78px; padding: 0 36px 0 38px; border-radius: 999px;
  background: var(--blue); color: var(--bone); font: 400 27px/1 var(--display); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -5px 0 rgba(10,16,120,.55) inset,
    0 26px 50px -20px rgba(12,18,110,.55), 0 6px 14px -6px rgba(12,18,110,.4);
  transition: padding .45s var(--heavy), background-color .2s, translate .15s; }
.end-cta i { font-style: normal; display: inline-block; transition: transform .45s var(--heavy); }
.end-cta:hover { padding-right: 60px; background: #2f3cf2; }
.end-cta:hover i { transform: translateX(10px); }
.end-cta:active { translate: 0 2px; }
.end-cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }


.end-mail { display: inline-flex; align-items: stretch; margin-top: 18px; border-radius: 999px;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px var(--ink) inset, 0 16px 34px -22px rgba(7,10,58,.45); }
.end-addr { display: inline-flex; align-items: center; min-height: 58px; padding: 0 22px 0 28px; border-radius: 999px 0 0 999px;
  color: var(--ink); font: 500 23px/1.2 var(--body); text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .22em; text-decoration-color: rgba(17,17,17,.35); transition: text-decoration-color .2s; }
.end-addr:hover { text-decoration-color: var(--ink); }
.end-addr:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.end-copy { position: relative; display: inline-grid; place-items: center; min-height: 58px; margin: 0; padding: 0 28px 0 24px;
  border: 0; border-radius: 0 999px 999px 0; background: var(--ink); color: var(--bone); cursor: pointer;
  font: 500 20px/1.2 var(--body); white-space: nowrap;
  transition: background-color .25s, padding .45s var(--heavy); }
.end-copy:hover { background: #26262b; }
.end-copy[hidden] { display: none; }
.end-mail:not(:has(.end-copy:not([hidden]))) .end-addr { border-radius: 999px; }
.end-copy:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.end-copy.done { background: var(--blue); padding-right: 40px; }
.end-copy.miss { background: var(--blue); }
.end-copy-t { display: inline-flex; align-items: center; gap: 10px; }
.end-copy-t svg { width: 18px; height: 18px; flex: none; }
.end-reply { margin-top: 16px; color: var(--end-muted); font: 400 22px/1.4 var(--body); }
.end-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.end-addr::selection { background: var(--blue); color: var(--bone); }


.end-mark { position: relative; z-index: 1; min-height: clamp(220px, 40svh, 560px); pointer-events: none; }
.end-gl { position: absolute; left: calc(-1 * var(--m)); right: calc(-1 * var(--m)); top: -8%; bottom: 0;
  width: calc(100% + 2 * var(--m)); height: 108%; display: block; opacity: 0; transition: opacity .6s ease; }
.end[data-gl="on"] .end-gl { opacity: 1; }
.end-flat { position: absolute; left: 50%; bottom: 13%; width: min(60%, 150svh); height: 66%; translate: -50% 0;
  fill: var(--bone); overflow: visible;
  filter: drop-shadow(0 2px 0 #d3cdc1) drop-shadow(14px 10px 18px rgba(5,8,68,.45));   
  transition: opacity .6s ease; }
.end[data-gl="on"] .end-flat { opacity: 0; }


.end-base { position: relative; z-index: 2; color: var(--bone);
  margin-left: calc(var(--pl-fl) - var(--m)); margin-right: calc(var(--pl-rr) - var(--m));
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lock" "nav" "foot";
  justify-items: center; text-align: center; gap: clamp(18px, 3svh, 30px);
  padding: clamp(34px, 5svh, 56px) clamp(24px, 3.2vw, 56px) calc(clamp(30px, 4.6svh, 48px) + env(safe-area-inset-bottom)); }
.end-base ul { list-style: none; margin: 0; padding: 0; }

.end-foot { grid-area: foot; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2svh, 22px); }
.end-nav { grid-area: nav; }
.end-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(20px, 2.6vw, 44px); }

.end-nav a { display: inline-flex; align-items: center; min-height: 52px; color: var(--bone); text-decoration: none;
  font: 400 clamp(24px, 2vw, 30px)/1 var(--display); letter-spacing: -.005em;
  text-shadow: 0 -1px 0 rgba(6, 10, 90, .55), 0 1px 0 rgba(255, 255, 255, .12);
  background: linear-gradient(var(--bone), var(--bone)) no-repeat 0 calc(100% - 6px) / 0 3px;
  transition: background-size .45s var(--heavy); }
.end-nav a:hover { background-size: 100% 3px; }
.end-nav a:focus-visible, .end-social a:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; border-radius: 6px; }
.end-social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; }
.end-social ul { display: flex; justify-content: center; gap: 12px; }

.end-social a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; box-shadow: 0 0 0 2px var(--bone) inset; color: var(--bone);
  text-decoration: none; transition: background-color .15s, color .15s; }
.end-social svg { width: 22px; height: 22px; display: block; }
.end-social a:hover { background: var(--bone); color: var(--blue); }
.end-lock { grid-area: lock; display: block; height: 52px; width: auto; aspect-ratio: 3722 / 740; fill: var(--bone);
  filter: drop-shadow(0 -1px 0 rgba(6, 10, 90, .55)); }

.end-copyr { margin: 0; }
.end-copyr > span { display: inline-block; padding: 11px 18px; border-radius: 6px;
  font: 400 20px/1.2 var(--body); color: rgba(239, 235, 227, .92); text-shadow: 0 -1px 0 rgba(6, 10, 90, .6);
  background: rgba(8, 14, 120, .28);
  box-shadow: 0 0 0 1.5px rgba(239, 235, 227, .5) inset, 0 2px 4px rgba(4, 8, 70, .45) inset, 0 1px 0 rgba(255, 255, 255, .16); }


.end-reg { margin: 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); max-width: 64ch; text-align: center; font: 300 14px/1.5 var(--body); color: rgba(239, 235, 227, .78); text-shadow: 0 -1px 0 rgba(6, 10, 90, .6); }

.end-reg span { display: inline-block; text-wrap: balance; }


.end-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 2.4vw, 32px); }
.end-a11y { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--bone);
  font: 400 20px/1.2 var(--body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em;
  text-decoration-color: rgba(239, 235, 227, .5); text-shadow: 0 -1px 0 rgba(6, 10, 90, .6); transition: text-decoration-color .2s; }
.end-a11y:hover { text-decoration-color: var(--bone); }
.end-a11y:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; border-radius: 6px; }


.end[data-fx="pre"] .end-h .w { opacity: 0; transform: translateY(.5em) scale(.96); }
.end[data-fx="in"] .end-h .w { transition: opacity .32s ease, transform .66s var(--pop); transition-delay: calc(var(--i, 0) * 55ms); }
.end[data-fx="pre"] .end-rise { opacity: 0; transform: translateY(24px); }
.end[data-fx="in"] .end-rise { transition: opacity .35s ease, transform .6s var(--pop); }
.end[data-fx="in"] .end-cta.end-rise { transition: opacity .35s ease .22s, transform .6s var(--pop) .22s, padding .45s var(--heavy), background-color .2s, translate .15s; }
.end[data-fx="in"] .end-mail.end-rise { transition-delay: .3s; }
.end[data-fx="in"] .end-reply.end-rise { transition-delay: .38s; }

.end[data-fx="done"] .end-rise { transition: padding .45s var(--heavy), background-color .2s, translate .15s; }


@media (max-width: 1099px) {
  .end-h { white-space: normal; font-size: clamp(52px, 9.6vw, 104px); }
  .end-ln { display: block; }
}


@media (max-width: 767px) {
  .end::before { min-height: 0; }                  
  .end-call { padding-top: calc(54px + 30px); }
  .end-h { font-size: clamp(38px, calc((100vw - 2 * var(--m)) / 7.1), 64px); line-height: 1; }   
  .end-top { align-self: stretch; }
  .end-cta { align-self: stretch; height: 66px; margin-top: 24px; padding: 0 26px; font-size: 23px; }
  .end-cta:hover { padding-right: 26px; }
  .end-mail { align-self: stretch; flex-direction: column; border-radius: 30px; margin-top: 14px; }
  .end-addr { justify-content: center; min-height: 56px; padding: 0 16px; border-radius: 30px 30px 0 0; font-size: 20px; }
  .end-copy { min-height: 56px; border-radius: 0 0 30px 30px; padding: 0 20px; font-size: 20px; }
  .end-copy.done { padding-right: 20px; }
  .end-reply { margin-top: 14px; font-size: 19px; }
  .end-mark { min-height: clamp(230px, 32svh, 300px); }
  .end-flat { width: 86%; bottom: 14%; }
  .end-base { gap: 20px; padding-top: 22px; }
  .end-nav ul { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0 clamp(18px, 6vw, 30px); }
  .end-nav li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; }   
  .end-base { padding-left: 18px; padding-right: 18px; }
  .end-nav a { white-space: nowrap; }
  .end-nav a { font-size: clamp(19px, 5.6vw, 23px); min-height: 48px; }
  .end-foot { gap: 18px; }
  
  .end-legal { flex-wrap: nowrap; gap: 0 clamp(12px, 4vw, 20px); }
  .end-legal .end-a11y { font-size: 17px; white-space: nowrap; }
  .end-lock { height: 40px; }
}

@media (max-width: 359px) {
  .end { grid-template-columns: minmax(0, 1fr); }   
  .end-cta { padding: 0 18px; font-size: 21px; }
  .end-nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .end-legal .end-a11y { font-size: 16px; }
}


@media (orientation: landscape) and (max-height: 560px) {
  .end { padding: 0 max(var(--m), env(safe-area-inset-left), env(safe-area-inset-right)); }
  .end-call { padding-top: calc(54px + 14px); }
  .end-h { white-space: nowrap; font-size: clamp(34px, 12svh, 56px); }
  .end-ln { display: inline; }
  .end-cta { height: 60px; margin-top: 16px; padding: 0 28px 0 30px; font-size: 22px; }
  .end-cta:hover { padding-right: 44px; }
  .end-mail { margin-top: 12px; }
  .end-addr, .end-copy { min-height: 48px; font-size: 19px; }
  .end-reply { margin-top: 10px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .end[data-fx] .end-h .w, .end[data-fx] .end-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .end-cta, .end-cta i, .end-copy, .end-nav a, .end-gl, .end-flat { transition: none; }
}
