/* Emilia Emiliushka — night-stage personal site. No framework, no trackers. */
:root {
  --bg: #0b0610;
  --bg-2: #160a1f;
  --plum: #2a1038;
  --plum-soft: #3a1a4a;
  --ink: #f6eef7;
  --ink-dim: #c8b7cf;
  --ink-mute: #8f7d99;
  --pink: #ff3fa4;
  --pink-soft: #ff7ec4;
  --gold: #e8c067;
  --gold-soft: #f3dca0;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --serif: "Frank Ruhl Libre", "Cormorant Garamond", "Noto Serif Hebrew", Georgia, serif;
  --sans: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}
html[lang="en"], html[lang="ro"] {
  --serif: "Cormorant Garamond", "Frank Ruhl Libre", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: #1a1020;
  padding: 10px 16px; border-radius: 10px; font-weight: 500; z-index: 100; transition: top .2s;
}
.skip:focus { top: 12px; }
strong { font-weight: 500; color: var(--ink); }
em { font-style: italic; }
html[lang="he"] em { font-style: normal; color: var(--gold-soft); }

/* ---------- background glow + vertical "pole" lines ---------- */
.stage {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 10%, rgba(255, 63, 164, 0.22), transparent 70%),
    radial-gradient(45% 40% at 15% 85%, rgba(232, 192, 103, 0.14), transparent 70%),
    radial-gradient(70% 60% at 50% 55%, rgba(58, 26, 74, 0.6), transparent 75%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%, #07040a);
}
.stage::before, .stage::after {
  content: ""; position: absolute; inset: -20%; border-radius: 50%; filter: blur(80px); opacity: .55;
  will-change: transform;
}
.stage::before { background: radial-gradient(circle at 30% 30%, rgba(255, 63, 164, .35), transparent 55%); animation: drift 22s ease-in-out infinite alternate; }
.stage::after { background: radial-gradient(circle at 70% 70%, rgba(232, 192, 103, .22), transparent 55%); animation: drift 30s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(-4%, -2%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.08); } }
.poles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.poles span {
  position: absolute; top: -10vh; bottom: -10vh; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18) 20%, rgba(255, 126, 196, .55) 50%, rgba(232, 192, 103, .35) 80%, transparent);
  opacity: .5; transform: translateY(var(--py, 0));
}
.poles span:nth-child(1) { inset-inline-start: 8%; }
.poles span:nth-child(2) { inset-inline-start: 22%; opacity: .25; }
.poles span:nth-child(3) { inset-inline-start: 50%; opacity: .2; }
.poles span:nth-child(4) { inset-inline-start: 78%; opacity: .3; }
.poles span:nth-child(5) { inset-inline-start: 93%; }
.poles span::after {
  content: ""; position: absolute; inset-inline-start: -3px; top: calc(38% + var(--spark, 0px)); width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink-soft); box-shadow: 0 0 18px 4px rgba(255, 63, 164, .7);
  animation: slide 9s cubic-bezier(.6, .05, .3, .95) infinite alternate;
}
.poles span:nth-child(2n)::after { animation-duration: 13s; background: var(--gold-soft); box-shadow: 0 0 18px 4px rgba(232, 192, 103, .55); }
@keyframes slide { from { transform: translateY(-30vh); } to { transform: translateY(32vh); } }
@media (prefers-reduced-motion: reduce) {
  .stage::before, .stage::after, .poles span::after { animation: none; }
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
html[lang="he"] .eyebrow { letter-spacing: .08em; font-size: .9rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.5vw, 54px); margin-bottom: clamp(22px, 3vw, 36px); }
h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-dim); max-width: 60ch; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: linear-gradient(180deg, rgba(11, 6, 16, .85), rgba(11, 6, 16, 0));
  backdrop-filter: blur(0px); transition: background .3s, backdrop-filter .3s;
}
.top.scrolled { background: rgba(11, 6, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.brand b { color: var(--pink-soft); font-weight: 700; }
.nav { display: none; gap: 26px; font-size: .92rem; font-weight: 400; color: var(--ink-dim); }
.nav a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .04); }
.lang a { font-size: .78rem; font-weight: 500; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; color: var(--ink-mute); }
.lang a[aria-current="true"] { background: var(--ink); color: #1a1020; }
.lang a:not([aria-current]):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-block: 120px 80px; }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.35fr 1fr; } }
.hero-tag { color: var(--gold); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
html[lang="he"] .hero-tag { letter-spacing: .04em; font-size: .9rem; }
.hero-tag::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  font-size: clamp(48px, 7.8vw, 100px); font-weight: 900; line-height: .95; letter-spacing: -0.025em;
  background: linear-gradient(170deg, #fff 20%, var(--gold-soft) 55%, var(--pink-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(255, 63, 164, .25);
  margin-bottom: 18px; overflow-wrap: break-word;
}
html[lang="en"] .hero h1, html[lang="ro"] .hero h1 { font-weight: 600; letter-spacing: -0.02em; }
.hero h1 small { display: block; font-size: .42em; font-weight: 500; letter-spacing: .02em; -webkit-text-fill-color: var(--ink-dim); color: var(--ink-dim); text-shadow: none; margin-top: 6px; }
.hero .why { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); font-weight: 400; color: var(--ink); margin: 0 0 16px; line-height: 1.25; }
html[lang="en"] .hero .why, html[lang="ro"] .hero .why { font-style: italic; }
.hero .where { color: var(--ink-dim); font-size: 1.05rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero .where .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff5fb8); color: #fff; box-shadow: 0 10px 36px -10px rgba(255, 63, 164, .75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(255, 63, 164, .9); }
.btn-ghost { border-color: rgba(232, 192, 103, .45); color: var(--gold-soft); background: rgba(232, 192, 103, .06); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(232, 192, 103, .14); transform: translateY(-2px); }

/* hero visual: a tall "stage" frame, a clean slot for her photo */
.hero-art { position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; margin-inline: auto; }
@media (max-width: 899px) { .hero-art { max-width: 300px; aspect-ratio: 3 / 4; } }
.frame {
  position: absolute; inset: 0; border-radius: 200px 200px 24px 24px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(255, 63, 164, .35), transparent 70%),
    linear-gradient(180deg, rgba(58, 26, 74, .75), rgba(22, 10, 31, .95));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px -40px rgba(255, 63, 164, .5), inset 0 0 80px rgba(0, 0, 0, .4);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .pole { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .7) 15%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .55) 85%, transparent); box-shadow: 0 0 24px rgba(255, 255, 255, .35); }
.frame .pole::before { content: ""; position: absolute; left: 50%; top: 32%; width: 160px; height: 160px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(232, 192, 103, .45); border-top-color: transparent; border-left-color: transparent; animation: spin 14s linear infinite; }
.frame .pole::after { content: ""; position: absolute; left: 50%; top: 32%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px 6px rgba(232, 192, 103, .6); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .frame .pole::before { animation: none; } }
.frame .initial { position: absolute; inset-inline: 0; bottom: 8%; text-align: center; font-family: var(--serif); font-size: clamp(90px, 18vw, 170px); font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .05); letter-spacing: -0.04em; pointer-events: none; }
.hero-art[data-has-photo="true"] .frame .pole, .hero-art[data-has-photo="true"] .frame .initial { display: none; }
.badge {
  position: absolute; inset-inline-end: -12px; bottom: 36px; background: rgba(11, 6, 16, .85); border: 1px solid rgba(232, 192, 103, .4);
  padding: 10px 16px; border-radius: 14px; font-size: .82rem; color: var(--gold-soft); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 2px; line-height: 1.3;
}
.badge b { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.scroll-hint { position: absolute; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); color: var(--ink-mute); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(180deg, var(--pink-soft), transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-height: 700px) { .scroll-hint { display: none; } }

/* ---------- about ---------- */
.about .wrap { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.about h2 { font-size: clamp(34px, 4.6vw, 58px); }
.about .side { border-inline-start: 1px solid rgba(232, 192, 103, .35); padding-inline-start: 24px; display: grid; gap: 22px; align-self: center; }
.fact { display: grid; gap: 2px; }
.fact small { color: var(--gold); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
html[lang="he"] .fact small { letter-spacing: .04em; font-size: .8rem; }
.fact span { color: var(--ink); font-weight: 400; }
.about p { color: var(--ink-dim); }
.about p.first { font-size: 1.2rem; color: var(--ink); font-weight: 300; }
.about p.first::first-letter { font-family: var(--serif); font-size: 2.6em; font-weight: 700; color: var(--pink-soft); float: inline-start; line-height: .8; margin-inline-end: 10px; margin-top: 6px; }
html[lang="he"] .about p.first::first-letter { font-size: inherit; float: none; margin: 0; color: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }

/* ---------- what I do ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  display: flex; flex-direction: column; gap: 10px; min-height: 100%; transition: transform .3s, border-color .3s, background .3s;
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--pink), transparent); opacity: .7; }
.card:nth-child(2)::before { background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.card:nth-child(3)::before { background: linear-gradient(180deg, transparent, var(--pink-soft), var(--gold), transparent); }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 126, 196, .35); background: linear-gradient(180deg, rgba(255, 63, 164, .08), rgba(255, 255, 255, .02)); }
.card .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, .12); line-height: 1; }
.card p { color: var(--ink-dim); margin: 0; flex: 1; font-size: .98rem; }
.card a { color: var(--gold-soft); font-weight: 500; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; }
.card a::after { content: "→"; transition: transform .2s; }
html[dir="rtl"] .card a::after { content: "←"; }
.card a:hover::after { transform: translateX(4px); }
html[dir="rtl"] .card a:hover::after { transform: translateX(-4px); }

/* ---------- gallery ---------- */
.gallery h2 { text-align: center; }
.gallery .lead { text-align: center; margin-inline: auto; margin-bottom: 40px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; } }
.tile {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at var(--gx, 50%) var(--gy, 100%), var(--glow, rgba(255, 63, 164, .35)), transparent 70%),
    linear-gradient(180deg, rgba(58, 26, 74, .6), rgba(22, 10, 31, .95));
  display: flex; align-items: flex-end; padding: 16px; isolation: isolate; transition: transform .35s, border-color .35s;
}
.tile:hover { transform: scale(1.015); border-color: rgba(232, 192, 103, .4); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: saturate(1.05) contrast(1.02); transition: transform .8s; }
.tile:hover img { transform: scale(1.05); }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 6, 16, .85)); z-index: 0; }
.tile .line { position: absolute; top: 0; bottom: 0; left: var(--lx, 50%); width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .5), transparent); z-index: -1; opacity: .7; }
.tile[data-has-photo="true"] .line { display: none; }
.tile .cap { position: relative; z-index: 1; display: grid; gap: 2px; }
.tile .cap b { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tile .cap span { font-size: .78rem; color: var(--gold-soft); letter-spacing: .08em; text-transform: uppercase; }
html[lang="he"] .tile .cap span { letter-spacing: .02em; text-transform: none; }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile .mark { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; color: var(--ink-mute); font-size: .7rem; font-weight: 500; letter-spacing: .05em; z-index: 1; background: rgba(11, 6, 16, .35); }
.tile[data-has-photo="true"] .mark { display: none; }
.gallery .note { text-align: center; color: var(--ink-mute); font-size: .9rem; margin-top: 22px; }

/* ---------- quotes ---------- */
.quotes { overflow: hidden; }
.quotes .wrap { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .quotes .wrap { grid-template-columns: repeat(3, 1fr); } }
.quotes h2 { grid-column: 1 / -1; text-align: center; margin-bottom: 8px; }
.quotes .lead { grid-column: 1 / -1; text-align: center; margin-inline: auto; margin-bottom: 20px; }
blockquote {
  margin: 0; padding: 34px 28px 28px; border-radius: var(--radius); position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
blockquote::before { content: "״"; position: absolute; top: -18px; inset-inline-start: 22px; font-family: var(--serif); font-size: 90px; line-height: 1; color: var(--pink); opacity: .9; }
html[lang="en"] blockquote::before, html[lang="ro"] blockquote::before { content: "“"; top: -10px; }
blockquote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; margin: 0; color: var(--ink); flex: 1; }
html[lang="en"] blockquote p, html[lang="ro"] blockquote p { font-size: 1.55rem; }
blockquote p.he-orig { font-size: 1.35rem; direction: rtl; text-align: right; color: var(--gold-soft); flex: 0; }
blockquote footer { font-size: .82rem; color: var(--ink-mute); display: flex; gap: 8px; align-items: center; }
blockquote footer::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .box {
  position: relative; padding: clamp(40px, 7vw, 80px) var(--pad); border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(255, 63, 164, .35), transparent 70%),
    radial-gradient(40% 40% at 90% 0%, rgba(232, 192, 103, .18), transparent 70%),
    linear-gradient(180deg, rgba(58, 26, 74, .55), rgba(22, 10, 31, .9));
  border: 1px solid rgba(255, 126, 196, .25);
}
.contact .box::before, .contact .box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .35), transparent); }
.contact .box::before { left: 12%; } .contact .box::after { right: 12%; }
.contact h2 { font-size: clamp(34px, 5vw, 62px); }
.contact .lead { margin-inline: auto; margin-bottom: 30px; }
.contact .cta { justify-content: center; }
.contact .fine { color: var(--ink-mute); font-size: .88rem; margin-top: 24px; margin-bottom: 0; }

/* ---------- footer ---------- */
footer.site { padding: 36px var(--pad) 44px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: .88rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer.site a:hover { color: var(--ink); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .sig { font-family: var(--serif); color: var(--ink-dim); font-size: 1rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.err h1 { font-family: var(--serif); font-size: clamp(90px, 20vw, 220px); font-weight: 900; line-height: 1; background: linear-gradient(170deg, #fff, var(--pink-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err p { color: var(--ink-dim); font-size: 1.2rem; margin-bottom: 26px; }

/* keep the English tagline on the reading side of an RTL page */
html[dir="rtl"] .hero .why { text-align: right; }
/* figure resets + caption safety in narrow tiles */
.tile { margin: 0; }
.tile .cap { min-width: 0; max-width: 100%; }
.tile .cap b { overflow-wrap: anywhere; }
@media (max-width: 899px) { .scroll-hint { display: none; } }
