/* Full-screen menu: vanilla port of 21st.dev "immersive-full-screen-nav" (Hyperiux Vault).
   Tailwind classes from the original are written out by hand; sizes match 1:1. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fsn-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 80px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.fsn-brand, .fsn-toggle { pointer-events: auto; }
.fsn-header { transition: background-color .3s; }
.fsn.scrolled .fsn-header {
  pointer-events: auto; background: rgba(7, 6, 11, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.fsn.open .fsn-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.fsn-brand {
  font: 600 18px/28px var(--ui-font); text-transform: uppercase; letter-spacing: .15em; text-decoration: none;
  color: var(--fsn-head); transition: color .3s .7s;
}
.fsn-toggle {
  width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.fsn-toggle span {
  display: block; height: 2px; width: 100%; background: var(--fsn-head);
  transition: transform .7s ease-in-out .3s, opacity .7s ease-in-out .3s, background-color .7s ease-in-out .3s;
}
.fsn-toggle span:nth-child(2) { transition-duration: .5s; }
.fsn-toggle:focus-visible { outline: 2px solid var(--fsn-head); outline-offset: 6px; border-radius: 4px; }
.fsn.open .fsn-brand { color: var(--fsn-head-open); }
.fsn.open .fsn-toggle span { background: var(--fsn-head-open); }
.fsn.open .fsn-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fsn.open .fsn-toggle span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.fsn.open .fsn-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.fsn-panel {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--fsn-bg); pointer-events: none;
}
.fsn.open .fsn-panel { pointer-events: auto; }
/* min-height, not height: a short window lets the content grow and the panel scroll */
.fsn-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; width: 100vw; }

.fsn-body {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 100vh; width: 100%; box-sizing: border-box; padding: 112px 112px 40px; color: #fff;
  font-family: var(--ui-font);
}
.fsn-intro { display: flex; flex-direction: column; gap: 4px; }
/* no text-transform here: uppercased Georgian turns into Mtavruli, which most fonts render as boxes */
.fsn-intro h2 { margin: 0; font: 500 14px/20px var(--ui-font); letter-spacing: .08em; opacity: .9; }
.fsn-intro p { margin: 0; font-size: 14px; line-height: 20px; opacity: .6; }

.fsn-mid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.fsn-links { display: flex; flex-direction: column; flex-shrink: 0; }
.fsn-link { font-size: 6vw; white-space: nowrap; }
/* 6vw from the original, capped so every link fits one screen: each takes 1.3em, the rest of the panel ~360px.
   --fsn-n is the number of links, set by nav.js */
@media (min-width: 1026px) { .fsn-link { font-size: min(6vw, calc((100vh - 360px) / (var(--fsn-n, 5) * 1.3))); } }
.fsn-link a { color: inherit; text-decoration: none; display: inline-block; }
.fsn-link a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 6px; }
.fsn-link a[aria-current="page"] { color: #b69cff; }       /* the page you're on, in the site's violet-hi */
/* character-split hover: each glyph sits above a text-shadow copy of itself and slides up.
   Georgian glyphs are taller than Latin ones, so the window is 1.3em (the original's 1.08 clips ფ, ყ, ჯ). */
.fsn-chars { position: relative; display: inline-block; overflow: hidden; vertical-align: middle; line-height: 1.3; white-space: nowrap; }
.fsn-chars span {
  position: relative; display: inline-block; white-space: pre; text-shadow: 0 1.3em currentColor;
  transition: transform .5s cubic-bezier(.625,.05,0,1);
}
.fsn-link a:hover .fsn-chars span, .fsn-link a:focus-visible .fsn-chars span { transform: translateY(-1.3em); }

.fsn-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 20px 0; }
/* the photo's height follows the window, so the menu still fits one screen; the controls sit to its right */
.fsn-remix { --prg-h: clamp(260px, calc(100vh - 400px), 520px); }
/* until remix.js has loaded (or if it fails), the frame shows the plain photo, same 3:4 crop */
.fsn-remix:empty { width: calc(var(--prg-h) * .75); height: var(--prg-h); border-radius: 12px; background: url("/rati-liklikadze.webp") center / cover; }

/* Photo remix grid (remix.js): port of 21st.dev "photo-remix-grid", dark only, the site's violet instead of blue */
.prg {
  display: grid; grid-template-columns: auto 200px; grid-template-rows: auto auto 1fr;
  grid-template-areas: "grid bar" "grid chips" "grid msg"; gap: 16px 20px;
  font: 500 12px/1.2 var(--ui-font); color: #fff;
}
.prg-defs { position: absolute; }
.prg-bar { grid-area: bar; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.prg-bar .prg-range { margin-top: 6px; }
.prg-btn {
  flex: none; display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font: inherit; cursor: pointer; transition: background-color .2s;
}
.prg-btn:hover { background: rgba(255,255,255,.14); }
.prg-btn:disabled { opacity: .5; cursor: progress; }
.prg-btn[hidden] { display: none; }
.prg-link { align-self: flex-start; padding: 0; border: 0; background: none; color: rgba(255,255,255,.7); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.prg-link:hover { color: #fff; }
.prg-link[hidden] { display: none; }
.prg-range { align-self: stretch; display: grid; grid-template-columns: 1fr auto; gap: 8px; color: rgba(255,255,255,.5); font-size: 11px; }
.prg-range input { grid-column: 1 / -1; width: 100%; height: 4px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.15); accent-color: #b69cff; cursor: ew-resize; }
.prg-range output { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.6); }
.prg-grid { grid-area: grid; display: grid; gap: 1px; height: var(--prg-h, 400px); aspect-ratio: var(--prg-ratio); overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.2); }
.prg-cell { position: relative; cursor: pointer; }
.prg-tile { position: absolute; inset: 0; background: var(--prg-src) no-repeat; background-size: var(--prg-size); }
.prg-cell.is-active::after { content: ''; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 2px #b69cff; pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .prg-cell { transition: transform .28s cubic-bezier(.34,1.45,.64,1); }   /* the original's spring, as a curve */
  .prg-cell:hover { transform: scale(1.06); z-index: 5; }
}
.prg-msg { grid-area: msg; align-self: end; display: flex; flex-direction: column; gap: 6px; }
.prg-msg:not(:has(:not([hidden]))) { display: none; }
.prg-hint, .prg-note { margin: 0; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.55); }
.prg-hint[hidden], .prg-note[hidden] { display: none; }
.prg-chips { grid-area: chips; display: grid; grid-template-columns: repeat(2, max-content); justify-items: start; gap: 4px 6px; }
.prg-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; white-space: nowrap;
  background: none; color: rgba(255,255,255,.75); font: inherit; cursor: pointer; transition: background-color .2s, color .2s;
}
.prg-chip:hover { background: rgba(255,255,255,.06); }
.prg-chip[aria-checked="true"] { background: #f3eef2; color: #07060b; }
.prg-sw { flex: none; width: 16px; height: 16px; border-radius: 50%; overflow: hidden; background: var(--prg-src) center 22% / cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.prg-chip[aria-checked="true"] .prg-sw { box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.prg-sw-mix { background: conic-gradient(#b69cff, #4f2792, #f3eef2, #b69cff); }
.prg-btn:focus-visible, .prg-chip:focus-visible, .prg-link:focus-visible, .prg-range input:focus-visible { outline: 2px solid #b69cff; outline-offset: 2px; }

.fsn-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.fsn-socials { display: flex; align-items: flex-end; gap: 24px; }
.fsn-socials a { display: block; color: #fff; }
.fsn-socials a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.fsn-socials svg { width: 24px; height: 24px; display: block; }
/* LinkedIn, crossed out: not a link */
.fsn-off { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.55); }
.fsn-off-mark { position: relative; display: block; opacity: .55; }
.fsn-off-mark::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; border-radius: 2px; background: #ff5a6a; transform: rotate(-45deg); }
.fsn-loc { font-size: 14px; opacity: .6; }

@media (max-width: 1025px) {
  .fsn-toggle { width: 56px; height: 56px; }
  .fsn-body { padding: 80px 24px; }
  .fsn-mid { flex-direction: column; align-items: flex-start; gap: 72px; }
  .fsn-link { font-size: 7vw; }
  .fsn-side { width: 100%; align-items: flex-start; padding: 0; }
  .fsn-remix { width: 100%; }
  .fsn-remix:empty { width: min(100%, 340px); height: auto; aspect-ratio: 3 / 4; }
  .prg { grid-template-columns: minmax(0, 340px); grid-template-rows: none; grid-template-areas: "bar" "grid" "msg" "chips"; }
  .prg-bar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .prg-bar .prg-range { margin-top: 0; flex-basis: 100%; }
  .prg-range { flex: 1; display: flex; align-items: center; gap: 10px; }
  .prg-range input { flex: 1; width: auto; min-width: 0; }
  .prg-grid { height: auto; width: 100%; }
  .prg-chips { display: flex; flex-wrap: wrap; }
  .fsn-foot { padding-bottom: 40px; }
  .fsn-socials svg { width: 32px; height: 32px; }
}
@media (max-width: 767px) {
  .fsn-toggle { width: 40px; height: 40px; }
  .fsn-socials svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fsn-brand, .fsn-toggle span, .fsn-chars span { transition: none; }
}
