* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: light; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color:#101010; background:#fff; }
body { margin:0; min-height:100svh; }
button,input,textarea { font:inherit; }
a { color:inherit; }
button,a,input,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible { outline:2px solid #1a28de; outline-offset:5px; }
.contact-header { --fio-caption-size: clamp(12px, 1.04vw, 33px); position:absolute; inset:0 0 auto; z-index:2; }
.signature { position:absolute; top:max(2.35svh,env(safe-area-inset-top)); left:max(1.46vw,12px,env(safe-area-inset-left)); display:flex; gap:.12em; font-size:var(--fio-caption-size); line-height:.88; font-weight:700; letter-spacing:-.035em; text-decoration:none; }
.signature-first { writing-mode:vertical-rl; transform:rotate(180deg); }
.signature-last { position:relative; }
.signature sup { position:absolute; left:100%; top:.14em; margin-left:.08em; font-size:.44em; letter-spacing:normal; }
.contact-close { position:absolute; top:max(4px,calc(2.35svh - 12px),env(safe-area-inset-top)); right:max(4px,env(safe-area-inset-right)); width:44px; height:44px; display:grid; place-items:center; color:#1a28de; font-size:29px; line-height:1; text-decoration:none; font-weight:300; }
main { min-height:100svh; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:65px 20px 28px; }
.phone-scene { position:relative; text-align:center; }
.phone { width:302px; padding:22px 24px 16px; border-radius:63px 63px 67px 67px / 62px 62px 90px 90px; background:linear-gradient(100deg,#101d37 0%,#314464 9%,#233655 27%,#21314a 65%,#142139 94%,#10192a); border:2px solid #131c2d; box-shadow:inset 2px 2px 3px #98acc46b,inset -3px -3px 4px #0009,1px 3px 0 #172035,0 18px 20px -13px #0008,0 35px 42px -28px #0005; position:relative; margin:0 auto 27px; }
.phone:after { content:""; position:absolute; inset:3px; border-radius:inherit; border:1px solid #ffffff13; pointer-events:none; }
.speaker { display:flex; justify-content:center; gap:5px; margin:1px 0 13px; }
.speaker i { width:5px; height:17px; border-radius:5px; background:#111a28; box-shadow:inset 0 1px 2px #000,0 1px 0 #8b9aad55; }
.phone-brand { color:#ecece7; font-size:10px; font-weight:800; letter-spacing:.22em; margin-bottom:10px; text-shadow:0 1px 1px #000; }
.display-frame { padding:9px; border-radius:15px 15px 24px 24px; background:linear-gradient(120deg,#87909c,#bfc7cc 35%,#535e70 99%); box-shadow:inset 1px 1px 1px #fff8,0 1px 0 #0008; }
#phone-form { height:222px; background:#a9b88a; color:#263421; border:3px solid #141e29; border-radius:5px 5px 13px 13px; padding:9px 10px 8px; box-shadow:inset 2px 3px 8px #17271066,inset -1px -1px 4px #e2efb555; font-family:"Courier New",monospace; position:relative; display:flex; flex-direction:column; text-align:left; }
#phone-form:after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.13; background:repeating-linear-gradient(0deg,transparent 0 2px,#344c2c 2px 3px); border-radius:inherit; }
.display-top { display:flex; align-items:center; justify-content:space-between; font-size:9px; font-weight:bold; border-bottom:1px solid #26342177; padding-bottom:5px; white-space:nowrap; }
.signal { font-size:8px; letter-spacing:-1px; }
.battery { width:17px; height:8px; border:1px solid currentColor; position:relative; }
.battery:before { content:""; position:absolute; inset:1px; background:currentColor; }
.battery:after { content:""; position:absolute; height:4px; width:2px; background:currentColor; right:-3px; top:1px; }
.display-content { flex:1; min-height:0; padding-top:13px; }
.display-content h1,.display-content h2 { font-size:19px; line-height:1.1; letter-spacing:-1px; margin:8px 0; font-weight:bold; }
.pixel-icon { width:47px; height:35px; display:block; margin:0 auto 8px; shape-rendering:crispEdges; animation:idle-float 2s ease-in-out infinite; }
[data-screen="hello"],[data-screen="sent"] { text-align:center; }
#phone-form section:is([data-screen="name"], [data-screen="email"], [data-screen="message"]) label {
  text-align:center;
}

#phone-form section:is([data-screen="name"], [data-screen="email"], [data-screen="message"]) :is(input, textarea) {
  text-align:left;
}
.screen-copy { font-size:10px; line-height:1.35; margin:8px 0; font-weight:bold; }
.screen-start { border:0; padding:4px 0; font-size:10px; font-weight:bold; color:inherit; background:none; text-decoration:underline; }
.step-label { font-size:9px; margin:0 0 17px; font-weight:bold; letter-spacing:.04em; }
.display-content label { display:block; font-size:clamp(16px, 10cqw, 23px); font-weight:bold; line-height:1.15; margin-bottom:8px; letter-spacing:-.8px; }
.display-content input,.display-content textarea { display:block; width:100%; resize:none; border:0; border-bottom:1px solid #26342188; border-radius:0; padding:5px 0; color:inherit; background:none; outline:none; font:18px/1.2 "Courier New",monospace; caret-color:#263421; }
.display-content input:focus,.display-content textarea:focus { border-bottom:2px solid #263421; }
.display-content input::placeholder,.display-content textarea::placeholder { opacity:.67; color:inherit; font-size:14px; }
#phone-status { font-size:10px; line-height:1.12; margin-top:3px; max-height:36px; overflow-y:auto; font-weight:bold; }
.screen-softkeys { display:flex; justify-content:space-between; padding-top:6px; border-top:1px solid #26342144; margin-top:5px; }
.screen-softkeys button { color:inherit; border:0; background:none; padding:2px 0; min-height:19px; font-size:14px; font-weight:bold; }
.screen-softkeys button:last-child { margin-left:auto; }
.screen-softkeys:has(.phone-step-count:not([hidden])) {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.screen-softkeys:has(.phone-step-count:not([hidden])) [data-back] { justify-self:start; }
.screen-softkeys:has(.phone-step-count:not([hidden])) [data-next] { justify-self:end; }
.phone-step-count { font-size:.85em; font-variant-numeric:tabular-nums; }
button:disabled { opacity:.45; cursor:wait; }
.review-name { font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:5px 0; }
.review-message { font-size:11px; max-height:45px; overflow-y:auto; margin:7px 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.delivery-hint { font-size:8px; }
.phone-controls { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:15px; align-items:center; margin:15px 4px 13px; }
.call-key,.select-key { border:1px solid #858b91; border-radius:48%; background:linear-gradient(145deg,#fffdf3,#d6d7cb 55%,#9eaba5); box-shadow:inset 1px 1px 2px #fff,1px 2px 2px #0009; height:30px; }
.call-key svg { width:21px; height:21px; }
.call-green svg { fill:#278456; }
.call-red svg { fill:#c13b38; transform:rotate(180deg); }
.select-key { height:39px; background:linear-gradient(#9aa7b9,#647287); border-color:#3e4c65; box-shadow:inset 0 1px 2px #d4dcea,0 2px 2px #000b; }
.select-key span { display:block; border:1px solid #ffffff77; width:20px; height:3px; margin:auto; }
.keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:7px 12px; padding:0 8px; }
.keypad button { min-width:0; height:33px; padding:3px 2px; border:1px solid #b5bbb4; border-radius:43% 43% 45% 45%; color:#293448; background:linear-gradient(145deg,#fffdf4,#dedfd2 58%,#b0b8b0); box-shadow:inset 1px 1px 2px #fff,1px 3px 2px #0c1426,0 4px 1px #75829933; display:flex; justify-content:center; align-items:center; gap:4px; }
.keypad b { font-size:19px; font-weight:500; line-height:1; }
.keypad small { font-size:8px; font-weight:700; }
.keypad button:active,.phone-controls button:active { transform:translateY(2px); box-shadow:inset 1px 1px 3px #0003; }
.phone-bottom { font-size:8px; color:#101a2b; margin-top:14px; text-shadow:0 1px #72819844; }
.phone-caption { font-size:10px; letter-spacing:.045em; font-weight:700; margin:0 0 6px; }
.phone-help,.direct-email { font-size:11px; line-height:1.4; }
.phone-help { color:#737373; margin:0; }
.direct-email { margin-top:19px; text-decoration-thickness:1px; text-underline-offset:3px; }
.honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#phone-verification { max-width:100%; }
.blink { animation:blink 1.1s steps(1) infinite; }
.phone[data-sending] .pixel-icon { animation:send-envelope .65s ease-in infinite; }
@keyframes blink { 50% { opacity:0; } }
@keyframes idle-float { 50% { transform:translateY(-3px); } }
@keyframes send-envelope { to { transform:translate(35px,-20px); opacity:0; } }
@media (max-width:650px) { main { padding-top:72px; padding-bottom:max(22px,env(safe-area-inset-bottom)); } .signature { left:max(12px,env(safe-area-inset-left)); } }
@media (max-width:340px) { .phone { width:284px; padding-inline:19px; } main { padding-inline:8px; } }
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { animation:none!important; transition:none!important; } }


/* Original 6630 geometry. Controls align to the photographed hardware. */
main { padding:54px 4px max(18px,env(safe-area-inset-bottom)); }
.phone {
  width:min(440px,calc(100vw - 8px));
  aspect-ratio:2/3;
  padding:0;
  margin:0 auto;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.phone::after,.speaker,.phone-bottom { display:none; }
.nokia-shell { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; user-select:none; }
.phone-camera-access { position:absolute; left:67.4%; top:6.8%; transform:translate(-50%,-50%); width:10%; aspect-ratio:1; min-width:44px; min-height:44px; z-index:5; border-radius:50%; cursor:pointer; }
.phone-camera-access:focus-visible { outline:2px solid #001fff; outline-offset:1px; }
.phone[data-zoomed] > .phone-camera-access { display:none; }
.display-frame {
  position:absolute;
  left:25.8%;
  top:21.35%;
  width:48.3%;
  height:35.85%;
  padding:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
#phone-form {
  height:100%;
  border:0;
  border-radius:1px;
  padding:9px 10px 7px;
  box-shadow:inset 0 0 7px #22351d55;
}
#phone-form::after { border-radius:0; }
.phone-controls,.keypad { display:contents; }
.phone-controls button,.keypad button {
  position:absolute;
  min-width:0;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  box-shadow:none;
  color:transparent;
  cursor:pointer;
}
.phone-controls button > *, .keypad button > * { visibility:hidden; }
.phone-controls button:active,.keypad button:active {
  transform:none;
  background:#213b4b14;
  box-shadow:inset 0 0 5px #0002;
}
.phone-controls button:focus-visible,.keypad button:focus-visible { outline:2px solid #1a28de; outline-offset:0; }
.call-green { left:17.5%; top:62%; width:7.1%; height:8.2%; }
.call-red { left:76%; top:62%; width:7.3%; height:8.4%; }
.select-key { left:43%; top:63.7%; width:14%; height:8.6%; border-radius:50%!important; }
.keypad button { width:13.7%; height:4.1%; }
.keypad [data-key="1"] { left:28%; top:70.9%; transform:rotate(18deg); }
.keypad [data-key="2"] { left:43%; top:74%; }
.keypad [data-key="3"] { left:58.4%; top:71%; transform:rotate(-18deg); }
.keypad [data-key="4"] { left:29%; top:76.6%; transform:rotate(16deg); }
.keypad [data-key="5"] { left:43%; top:78.6%; }
.keypad [data-key="6"] { left:58.1%; top:76.6%; transform:rotate(-16deg); }
.keypad [data-key="7"] { left:30%; top:81.4%; transform:rotate(13deg); }
.keypad [data-key="8"] { left:43%; top:83.1%; }
.keypad [data-key="9"] { left:57.6%; top:81.4%; transform:rotate(-13deg); }
.keypad [data-key="*"] { left:30.5%; top:86%; transform:rotate(9deg); }
.keypad [data-key="0"] { left:43%; top:87.6%; }
.keypad [data-key="#"] { left:57%; top:86%; transform:rotate(-9deg); }
.direct-email {
  position:relative;
  z-index:1;
  color:inherit;
  margin:3px 0 0;
  font:700 10px/1.1 "Courier New",monospace;
  text-underline-offset:2px;
}
@media (max-width:650px) {
  main { padding-top:64px; }
}
@media (max-width:340px) {
  .phone { width:calc(100vw - 8px); padding:0; }
  #phone-form { padding:6px 7px; }
  .display-top { font-size:7px; }
  .display-content { padding-top:8px; }
  .step-label { margin-bottom:9px; }
}

.display-frame { container-type: inline-size; }
#phone-form[data-screen="hello"] .display-top,
#phone-form[data-screen="hello"] .screen-softkeys,
#phone-form[data-screen="hello"] #phone-status { display: none; }
#phone-form[data-screen="hello"] .display-content { padding: 0; display: flex; }
[data-screen="hello"] { width: 100%; height: 100%; }
.screen-invitation {
  width: 100%;
  height: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 17px;
  padding: 12px 0;
  background: none;
  border: 0;
  color: inherit;
}
.screen-invitation .pixel-icon {
  width: min(40cqw, 86px);
  height: auto;
  margin: 0;
  animation: invitation-float 1.8s ease-in-out infinite;
}
.invitation-title {
  font: 700 clamp(16px, 12cqw, 32px)/1.1 "Courier New", monospace;
  white-space: nowrap;
  letter-spacing: -1px;
}
.screen-invitation:hover .pixel-icon { animation-duration: 1s; }
.screen-invitation:focus-visible { outline-color: currentColor; outline-offset: -3px; }
@keyframes invitation-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.invitation-prompt {
  margin-top: -5px;
  font: 700 clamp(10px, 7cqw, 17px)/1.25 "Courier New", monospace;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.screen-softkeys [data-send] { display:flex; align-items:center; gap:6px; }
[data-send] svg { width:19px; height:15px; shape-rendering:crispEdges; }
#phone-form { overflow:hidden; }
.sending-flight {
  position:absolute;
  left:35%;
  top:50%;
  width:60px;
  height:45px;
  z-index:4;
  color:#263421;
  shape-rendering:crispEdges;
  pointer-events:none;
  animation:phone-flight .76s cubic-bezier(.35,0,.7,.45) both;
}
@keyframes phone-flight {
  0% { transform:translate(0,20px) scale(.7); opacity:0; }
  15% { transform:translate(-7px,0) scale(1); opacity:1; }
  35% { transform:translate(-14px,3px) scale(1); opacity:1; }
  100% { transform:translate(160px,-140px) scale(.18); opacity:0; }
}
.phone-controls .hardware-key { z-index:3; border-radius:4px; }
.phone-delete-key { left:74.4%; top:78.5%; width:7.3%; height:6.8%; }
.snake-launch-left { left:18.2%; top:70.9%; width:7.4%; height:14.4%; }
.phone-controls .select-key { left:47%; top:66.5%; width:6%; height:3.7%; z-index:4; }
.joystick-up { left:45.1%; top:63.5%; width:9.8%; height:3%; }
.joystick-down { left:45.1%; top:70.2%; width:9.8%; height:2.2%; }
.joystick-left { left:43%; top:66.4%; width:4%; height:3.8%; }
.joystick-right { left:53%; top:66.4%; width:4%; height:3.8%; }
#phone-form[data-screen="snake"] .display-top,
#phone-form[data-screen="snake"] .screen-softkeys,
#phone-form[data-screen="snake"] #phone-status,
#phone-form[data-screen="snake"] .direct-email { display:none; }
#phone-form[data-screen="snake"] .display-content { padding:0; }
.snake-screen { display:flex; flex-direction:column; width:100%; height:100%; gap:5px; }
.snake-heading { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.snake-heading b { font-size:14px; }
.snake-heading > span { font-size:8px; font-weight:700; white-space:nowrap; }
.snake-screen canvas { width:100%; height:auto; min-height:0; flex:1; object-fit:contain; image-rendering:pixelated; border:1px solid #263421; touch-action:none; }
.snake-screen p { margin:0; text-align:center; font:700 10px/1.1 "Courier New",monospace; }
.snake-actions { display:flex; justify-content:space-between; }
.snake-actions button { min-height:24px; border:0; background:none; padding:2px 0; font:700 11px/1 "Courier New",monospace; color:inherit; }


html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
main {
  position: fixed;
  inset: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: max(50px, env(safe-area-inset-top), env(safe-area-inset-bottom)) 6px;
}
.phone-scene {
  flex: none;
  --phone-max-width: 440px;
  width: min(var(--phone-max-width), calc(100vw - 12px), calc((var(--phone-layout-height, 100svh) - 100px) * .666667));
}
.phone { width: 100%; margin: 0; }
.phone-controls button { touch-action: none; }
.phone[data-game-active] { touch-action: none; }
#phone-verification:not(:empty) {
  position: absolute;
  z-index: 8;
  bottom: calc(34px + env(safe-area-inset-bottom));
}
.contact-email {
  position: absolute;
  bottom: env(safe-area-inset-bottom);
  display: grid;
  place-items: center;
  min-height: 32px;
  font: 400 13px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-underline-offset: .2em;
}

.screen-zoom-key { left:74.8%; top:70.9%; width:7.2%; height:6.8%; }
.phone-controls .screen-zoom-key > .zoom-key-symbol {
  position: absolute;
  left: 49%;
  top: 58%;
  width: 56%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  visibility: visible;
  color: #353736;
  background: radial-gradient(ellipse, #dadbd8 57%, #dadbd800 74%);
}
.zoom-key-symbol::before,
.zoom-key-symbol::after { content: ''; position: absolute; }
.zoom-key-symbol::before {
  left: 18%;
  top: 14%;
  width: 48%;
  height: 48%;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.zoom-key-symbol::after {
  left: 55%;
  top: 54%;
  width: 30%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.screen-zoom-close {
  position:absolute;
  display:grid;
  place-items:center;
  right:0;
  top:-64px;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#001fff;
  box-shadow:0 2px 8px #0003;
  font:300 30px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.screen-zoom-close svg { display:block; width:20px; height:20px; }
.screen-zoom-close:focus-visible { outline:0; box-shadow:0 2px 8px #0003, inset 0 0 0 2px #0005; }
.screen-zoom-dpad { display:none; }
.phone[data-zoomed] {
  --phone-zoom-display-max: 420px;
  --phone-zoom-display-width: min(var(--phone-zoom-display-max), calc(100dvw - 32px), calc((var(--phone-visual-height, 100dvh) - 120px) * .898187));
  position:fixed;
  z-index:12;
  left:50%;
  top:calc(var(--phone-visual-top, 0px) + var(--phone-visual-height, 100dvh) / 2);
  width:calc(var(--phone-zoom-display-width) / .483);
  height:auto;
  transform:translate(-49.95%, -39.275%);
  animation:none;
}
.phone[data-zoomed] .display-frame {
  position:absolute;
  left:25.8%; top:21.35%; width:48.3%; height:35.85%;
  transform:none;
  border:0; border-radius:0; box-shadow:none; background:none;
}
.phone[data-zoomed] .screen-zoom-close {
  top:max(-64px, calc(12px - (var(--phone-visual-height, 100dvh) - var(--phone-zoom-display-width) / .898187) / 2));
}
.phone[data-zoomed] #phone-form { padding:16px; }
.phone[data-zoomed] .display-top { font-size:12px; }
.phone[data-zoomed] .display-content { padding-top:20px; overflow-y:auto; }
.phone[data-zoomed] #phone-form[data-screen="hello"] .display-content { padding-top:0; }
.phone[data-zoomed] .step-label { font-size:13px; margin-bottom:22px; }
.phone[data-zoomed] .display-content label { font-size:27px; margin-bottom:14px; }
.phone[data-zoomed] .display-content input,
.phone[data-zoomed] .display-content textarea { font-size:20px; line-height:1.4; }
.phone[data-zoomed] .display-content input::placeholder,
.phone[data-zoomed] .display-content textarea::placeholder { font-size:16px; }
.phone[data-zoomed] .screen-softkeys button { min-height:36px; font-size:16px; }
.phone[data-zoomed] #phone-status { font-size:14px; max-height:60px; }
.phone[data-zoomed] .review-name { font-size:14px; }
.phone[data-zoomed] .review-message { font-size:16px; max-height:120px; }
.phone[data-zoomed] .screen-copy { font-size:13px; }
.phone[data-zoomed] .direct-email { font-size:14px; }
.phone[data-zoomed] .snake-heading b { font-size:19px; }
.phone[data-zoomed] .snake-heading > span { font-size:11px; }
.phone[data-zoomed] .snake-screen p { font-size:13px; }
.phone[data-zoomed] .snake-actions button { min-height:36px; font-size:15px; }
.phone[data-zoomed] .screen-zoom-dpad { display:flex; justify-content:center; gap:8px; }
.screen-zoom-dpad button {
  width:44px;
  min-height:40px;
  border:1px solid currentColor;
  background:none;
  color:inherit;
  font:22px/1 monospace;
  touch-action:none;
}


main { height: var(--phone-layout-height, 100svh); bottom: auto; }
.contact-header .fio-object-mobile-toggle {
  position: absolute;
  z-index: 4;
  top: max(4px, calc(2.35svh - 12px), env(safe-area-inset-top));
  right: max(4px, env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: inherit;
  cursor: pointer;
}

.fio-object-mobile-toggle span {
  position: relative;
  width: 19px;
  height: 19px;
  transition: transform .2s ease;
}

.fio-object-mobile-toggle span::before,
.fio-object-mobile-toggle span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.fio-object-mobile-toggle span::after { transform: translate(-50%, -50%) rotate(90deg); }
.fio-object-mobile-toggle[aria-expanded="true"] span {
  color: #1a28de;
  transform: rotate(45deg);
}

.fio-object-mobile-menu {
  position: absolute;
  z-index: 3;
  top: max(4px, calc(2.35svh - 12px), env(safe-area-inset-top));
  right: max(48px, calc(env(safe-area-inset-right) + 44px));
  display: flex;
  align-items: center;
  gap: clamp(3px, 1.5vw, 12px);
  height: 44px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .28s;
}

.fio-object-mobile-menu:not([inert]) {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-header .fio-object-mobile-menu a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  padding-inline: 5px;
  color: inherit;
  text-transform: uppercase;
  font: 700 calc(var(--fio-caption-size) * .95)/.88 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.035em;
  cursor: pointer;
  opacity: 0;
  transform: translateX(var(--card-travel)) scale(.72);
  transition: transform .21s cubic-bezier(.35, 0, .3, 1), opacity .15s ease;
  transition-delay: var(--card-close-delay);
}

.fio-object-mobile-menu a:nth-child(1) { --card-travel: 154px; --card-open-delay: .06s; --card-close-delay: 0s; }
.fio-object-mobile-menu a:nth-child(2) { --card-travel: 99px; --card-open-delay: .03s; --card-close-delay: .03s; }
.fio-object-mobile-menu a:nth-child(3) { --card-travel: 42px; --card-open-delay: 0s; --card-close-delay: .06s; }

.contact-header .fio-object-mobile-menu:not([inert]) a {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition-delay: var(--card-open-delay);
}



@media (prefers-reduced-motion: reduce) {
  .fio-object-mobile-toggle span,
  .fio-object-mobile-menu,
  .contact-header .fio-object-mobile-menu a {
    display: inline-flex;
    align-items: center;
    text-decoration: none; transition: none; }
}



/* Navigation controls stay unboxed in every interaction state. */
.contact-header .fio-object-mobile-toggle,
.contact-header .fio-object-mobile-menu,
.contact-header .fio-object-mobile-menu a {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.contact-header .fio-object-mobile-toggle { padding: 0; }
.contact-header .fio-object-mobile-toggle:focus-visible,
.contact-header .fio-object-mobile-menu a:focus-visible {
  outline: 2px solid #1a28de;
  outline-offset: -3px;
}

@media (min-width: 651px) and (pointer: fine) {
  .phone-scene { --phone-max-width: 580px; }
}

@media (min-width: 651px) and (pointer: fine) {
  .contact-header { z-index: 13; }
  .phone[data-zoomed] { --phone-zoom-display-max: 560px; }
  .phone[data-zoomed] #phone-form { padding: 22px; }
  .phone[data-zoomed] .display-content label { font-size: 30px; }
  .phone[data-zoomed] .display-content input,
  .phone[data-zoomed] .display-content textarea { font-size: 24px; }
  .phone[data-zoomed] .display-content input::placeholder,
  .phone[data-zoomed] .display-content textarea::placeholder { font-size: 20px; }
}

/* A printed gamepad sits inside the photographed hardware key. */
.phone-controls .snake-launch-left {
  overflow:hidden;
  clip-path:polygon(0 0,92% 10%,100% 100%,65% 94%,19% 54%);
}
.phone-controls .snake-launch-left > .snake-key-symbol {
  visibility:visible;
  position:absolute;
  left:10%;
  top:8%;
  width:74%;
  height:auto;
  display:block;
  max-width:100%;
  overflow:hidden;
  pointer-events:none;
}
.snake-counters { display:flex; gap:10px; font-variant-numeric:tabular-nums; }
.snake-counters > span { display:flex; gap:4px; }
.snake-screen canvas { border-color:currentColor; }
.phone[data-snake-record] #phone-form {
  background:#001fff;
  color:#fff;
  box-shadow:inset 0 0 9px #000d75aa;
}
.phone[data-snake-record] #phone-form::after {
  background:repeating-linear-gradient(0deg,transparent 0 2px,#dce2ff 2px 3px);
}
.phone[data-snake-record] .snake-screen button:focus-visible { outline-color:#fff; }
@container (max-width:200px) {
  .snake-heading { flex-wrap:wrap; }
  .snake-heading > .snake-counters { width:100%; justify-content:space-between; }
}

/* Giuseppe's original brush lettering, cropped only by the layout. */
.phone-scene {
  width:min(var(--phone-max-width),calc((100vw - 32px) / 2.2),calc((var(--phone-layout-height,100svh) - 100px) * .666667));
  isolation:isolate;
}
.contact-lettering {
  position:absolute;
  width:85%;
  aspect-ratio:1024 / 1557;
  background-image:url("/fio-contact-lettering-original.jpg");
  background-size:200% 100%;
  background-repeat:no-repeat;
  mix-blend-mode:multiply;
  pointer-events:none;
  user-select:none;
  z-index:-1;
}
.contact-lettering-left { left:-55%; top:3%; background-position:left center; }
.contact-lettering-right { right:-60%; top:0%; background-position:right center; }
.phone-scene:has(.phone[data-zoomed]) .contact-lettering { visibility:hidden; }
@media(max-width:760px) {
  .phone-scene { width:min(440px,calc(100vw - 12px),calc((var(--phone-layout-height,100svh) - 100px) * .666667)); }
  .contact-lettering { display:none; }
}


