@font-face {
  font-family: "DM Sans";
  src: url("assets/body.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Gloock";
  src: url("assets/gloock-legal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --cream: #fff2db;
  --brass: #e3bc7a;
  font: 400 16px/1.5 "DM Sans", system-ui, sans-serif;
  background: #121110; color: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; position: relative; isolation: isolate; -webkit-font-smoothing: antialiased; }
.metal-field { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; pointer-events: none; }
.metal-field img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.metal-field::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 34% 43%, #d1a26416, transparent 44%),
    linear-gradient(180deg, #14120f13, #100e0c36 58%, #08070678);
}
a { color: inherit; text-decoration: none; }
button, summary { -webkit-tap-highlight-color: transparent; color: inherit; font: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; }
:where(a, button, summary):focus-visible { outline: 3px solid #fff2ca; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: #222120; background: #efd392; }
.icons { width: 0; height: 0; position: absolute; overflow: hidden; }
.i { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.profile {
  width: min(530px, calc(100% - 40px)); margin: 0 auto;
  padding: clamp(35px, 8svh, 90px) 0 max(50px, env(safe-area-inset-bottom));
}
.identity { text-align: center; }
.stage { --wingspan: min(85vw, 435px); position: relative; padding: calc(var(--wingspan) * .12) 0 15px; }
.perch { display: flex; flex-direction: column; align-items: center; pointer-events: none; animation: hover 5s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-4px); } }
.stage.resting .perch { animation-play-state: paused; }
.eagle-mount { position: relative; width: var(--wingspan); max-width: 94%; transform-origin: 50% 79%; }
.flight-pending .eagle-mount { visibility: hidden; }
.eagle { display: block; width: 100%; height: auto; }
.wing-surface { position: absolute; inset: -45% 0 auto; width: 100%; height: 190%; }
.stage.wings-moving .eagle { opacity: 0; }
.portrait-frame {
  position: relative; width: clamp(66px, 18vw, 84px); aspect-ratio: 1; margin-top: calc(var(--wingspan) * -.074);
  filter: drop-shadow(0 4px 10px #070604a8);
}
.portrait { display: block; width: 100%; height: 100%; }
.eagle-shadow { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(2% round 17%); filter: blur(1px); opacity: 0; }

.wordmark {
  display: grid; position: relative; isolation: isolate; width: fit-content; margin: -6px auto 8px;
  font: 400 clamp(58px, 7.5vw, 79px)/1.12 "Gloock", Georgia, serif;
  letter-spacing: -.042em; transform: perspective(480px) rotateX(7deg) rotateY(-5deg);
}
.wordmark > span { grid-area: 1 / 1; white-space: nowrap; }
.wordmark .depth {
  color: #936225; transform: translate(.5px,1px);
  text-shadow: 0 1px #a97830, .5px 2px #885a23, 1px 3px #775024, 1.5px 4px #5f3c17, 2px 5px #4f3113, 2px 6px #38210c, 1px 8px 8px #000b;
}
.wordmark .face {
  position: relative; color: #ffe2a4; -webkit-text-stroke: .45px #ffe8a5;
  background-image: linear-gradient(110deg, transparent 43%, #fffae4 49%, #fff6d7 51%, transparent 57%),
                    linear-gradient(170deg, #fff6cb 4%, #f2d187 31%, #d59b42 48%, #a8712b 54%, #f4cd77 68%, #ffeabe 86%);
  background-size: 260% 100%, 100% 100%; background-position: 100% 0, 0 0;
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.wordmark { animation: title-turn 6s ease-in-out infinite; }
.wordmark .face { animation: title-light 6s ease-in-out infinite; }
@keyframes title-turn {
  0%,100% { transform: perspective(480px) rotateX(7deg) rotateY(-9deg) rotateZ(-1deg); }
  50% { transform: perspective(480px) rotateX(1deg) rotateY(9deg) rotateZ(.5deg); }
}
@keyframes title-light {
  0%, 14% { background-position: 100% 0, 0 0; }
  72%, 100% { background-position: 0% 0, 0 0; }
}
.handle {
  display: inline-flex; gap: 7px; align-items: center; justify-content: center;
  padding: 4px 14px; min-height: 40px; color: #f5e5ce; border: 1px solid #c7ab7b5c;
  background: #15120fde; font-size: 14px; letter-spacing: .025em; border-radius: 22px;
}
.handle .i { width: 16px; height: 16px; color: #f0c991; }
.handle:hover { background: #32291f; }

.actions { width: min(100%, 410px); margin: 28px auto 0; }
.paykod { display: block; border-radius: 14px; filter: drop-shadow(0 10px 17px #07050380); }
.ticket {
  --stub: clamp(65px, 21vw, 94px);
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub); min-height: 119px; border-radius: inherit;
  color: #2b1b0f; box-shadow: inset 0 0 0 1px #fff4d1, inset 0 -2px 0 #73562f;
  background:
    repeating-linear-gradient(2deg, #50371d0a 0 1px, transparent 1px 4px),
    linear-gradient(110deg, #fff0c7 0%, #ebce96 30%, #e1b979 62%, #bb8d54 100%);
  --notch: circle at calc(100% - var(--stub));
  -webkit-mask: radial-gradient(var(--notch) top, transparent 6px, #000 7px) top / 100% 51% no-repeat, radial-gradient(var(--notch) bottom, transparent 6px, #000 7px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(var(--notch) top, transparent 6px, #000 7px) top / 100% 51% no-repeat, radial-gradient(var(--notch) bottom, transparent 6px, #000 7px) bottom / 100% 51% no-repeat;
  transition: transform .18s ease;
}
.ticket::before {
  content: ""; position: absolute; inset: 5px; z-index: -1; pointer-events: none;
  border: 1px solid #684e2b70; border-radius: 10px;
}
.ticket-copy { align-self: center; display: grid; gap: 5px; padding: 16px clamp(18px, 5vw, 28px); }
.ticket-copy strong { font: italic 700 clamp(44px, 12vw, 61px)/.98 Georgia, serif; letter-spacing: -.065em; }
.ticket-copy small { font-size: 14px; font-weight: 600; letter-spacing: .015em; color: #49331c; }
.ticket-stub {
  position: relative; display: grid; place-items: center;
  background: repeating-radial-gradient(ellipse at 140% 120%, transparent 0 4px, #67462054 4px 5px, transparent 5px 8px);
}
.ticket-stub::before {
  content: ""; position: absolute; inset: 10px auto 10px 0; width: 1px;
  background: repeating-linear-gradient(to bottom, #684521ad 0 4px, transparent 4px 8px);
}
.ticket-stub .i {
  width: clamp(44px, 12vw, 56px); height: auto; aspect-ratio: 1; padding: 11px;
  color: #f9d79b; border-radius: 50%; background: #2b241b;
  box-shadow: 0 0 0 2px #edc991, 0 0 0 3px #87673d; transition: transform .2s ease;
}
.ticket-edge {
  position: absolute; pointer-events: none; z-index: 1; width: 46px; height: 2px;
  border-radius: 50%; background: linear-gradient(90deg, transparent, #fff8d9 65%, transparent);
  box-shadow: 0 0 4px #fff3d1; offset-path: inset(1px round 13px); animation: edge-run 5.5s linear infinite;
}
@keyframes edge-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (hover: hover) {
  .paykod:hover .ticket { transform: perspective(800px) translateY(-2px) rotateX(3deg); }
  .paykod:hover .ticket-stub .i { transform: translate(2px,-2px); }
}
.paykod:active .ticket { transform: scale(.985); }
.contacts {
  margin: 12px 0 0; border: 1px solid #8f796466;
  border-radius: 13px; background: linear-gradient(115deg,#27241fee,#171615f5);
  box-shadow: 0 6px 16px #08060455;
}
.contacts summary {
  position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr 24px;
  align-items: center; gap: 8px; padding: 9px 18px 9px 12px; min-height: 60px;
  border-radius: 12px; color: #fcf1df;
  font-size: 18px; line-height: 1.2; font-weight: 600; letter-spacing: -.016em; list-style: none;
}
.contacts summary::-webkit-details-marker { display: none; }
.contacts[open] summary { border-radius: 12px 12px 0 0; }
.contacts summary:hover { background: #d7bb8720; }
.contacts .contact-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #eed09e; background: #42392c; }
.indicator { display: grid; place-items: center; width: 23px; height: 23px; }
.indicator::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.contacts[open] .indicator::before { transform: translateY(2px) rotate(225deg); }
.contact-body { padding: 13px 17px 5px; border-top: 1px solid #c8b0873b; }
.contact-body p { margin: 0 0 3px; color: #e5d9c6; font-size: 14px; }
.phone-row { display: flex; align-items: center; gap: 6px; }
.phone-row + .phone-row { border-top: 1px solid #d2bc922b; }
.phone-row a { display: flex; flex: 1; min-height: 51px; align-items: center; gap: 11px; font-weight: 600; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone-row a .i { color: var(--brass); }
.phone-row a:hover { color: #f3cd91; }
.copy { display: grid; place-items: center; min-height: 44px; min-width: 44px; color: #d2c5af; background: transparent; border: 0; border-radius: 9px; }
.copy .i { width: 17px; height: 17px; }
.copy:hover { background: #92a1a424; }
.copy.done { color: #c9e3d2; }
.toast { pointer-events: none; position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 8px 13px; border-radius: 9px; background: var(--cream); color: #242321; font-size: 14px; box-shadow: 0 4px 22px #0005; }
.toast:empty { display: none; }
@media (max-width: 500px) {
  .wordmark { font-size: clamp(46px, 14.3vw, 66px); }
}
@media (min-width: 850px) {
  .profile {
    width: min(1080px, 89%); padding-top: clamp(85px, calc(50svh - 207px), 300px);
    display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(32px, 7vw, 94px); align-items: start;
  }
  .actions { margin: clamp(66px, 8vw, 116px) 0 0; }
  .stage { --wingspan: min(38vw, 505px); }
  .ticket { min-height: 137px; }
}
@media (max-height: 540px) {
  .profile { padding-top: 16px; }
  .stage { --wingspan: min(260px, 80vw); }
}
