/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:         #04060e;
  --text:       #ede9fe;
  --muted:      rgba(237, 233, 254, 0.38);
  --border:     rgba(255, 255, 255, 0.07);
  --glass-bg:   rgba(255, 255, 255, 0.045);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', sans-serif;
  --font-mono:  'DM Mono', monospace;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  cursor: none;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: screen;
}

/* ─────────────────────────────────────────
   CURSOR
───────────────────────────────────────── */
#cursor {
  position: fixed; width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.12s ease;
}
#cursor.expanded { transform: translate(-50%, -50%) scale(3); }

/* ─────────────────────────────────────────
   STATIC GLOWS
───────────────────────────────────────── */
.glow-center {
  position: fixed; pointer-events: none; z-index: 0;
  top: -15%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59,130,246,.2) 0%, rgba(99,102,241,.08) 40%, transparent 70%);
  filter: blur(40px);
  animation: breathe-c 9s ease-in-out infinite alternate;
}
.glow-left {
  position: fixed; pointer-events: none; z-index: 0;
  bottom: 15%; left: -8%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99,102,241,.13) 0%, transparent 70%);
  filter: blur(60px);
  animation: breathe 11s ease-in-out infinite alternate-reverse;
}
.glow-right {
  position: fixed; pointer-events: none; z-index: 0;
  top: 35%; right: -6%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56,189,248,.1) 0%, transparent 70%);
  filter: blur(50px);
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe-c {
  from { opacity:.7; transform: translateX(-50%) scale(1); }
  to   { opacity:1;  transform: translateX(-50%) scale(1.1); }
}
@keyframes breathe {
  from { opacity:.6; transform: scale(1); }
  to   { opacity:1;  transform: scale(1.12); }
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.8rem 2.8rem;
}

/* logo — arifov.fyi in Cormorant italic with gradient + glisten */
.n-logo {
  position: relative;
  text-decoration: none;
  display: inline-block;
}
.n-logo-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.02em;
  /* multi-stop gradient — the bright spot sweeps via background-position
     so the shine is always clipped to the letter shapes, never a box */
  background: linear-gradient(110deg,
    rgba(99,102,241,.85) -10%,
    rgba(147,197,253,.9)  18%,
    #fff                  36%,
    rgba(147,197,253,.9)  54%,
    rgba(99,102,241,.85) 110%
  );
  background-size: 260% 100%;
  background-position: 130% 0%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(99,102,241,.45));
  display: inline-block;
  animation: logo-glisten 5s 1.2s ease-in-out infinite;
}
@keyframes logo-glisten {
  0%   { background-position: 130% 0%; }
  35%  { background-position: -30% 0%; }
  100% { background-position: -30% 0%; }
}

.n-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.n-links a {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(147,197,253,.25); text-decoration: none;
  transition: color .2s;
}
.n-links a:hover { color: rgba(147,197,253,.75); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: visible;
  gap: 0;
}

/* fyi — normal flow, above the definition/card visually,
   negative margin pulls the content up so it overlaps fyi bottom */
.fyi-scene {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -0.28em;
  overflow: visible;
  pointer-events: none;
}

.fyi-wrap {
  transform-style: preserve-3d;
  will-change: transform;
  overflow: visible;
  padding-bottom: 0.15em;
}

#fyi {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(110px, 19vw, 220px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  /* padding gives the -webkit-background-clip area room for tall
     ascenders and the italic slant — without it the top of 'f' clips */
  padding: 0.14em 0.08em 0.08em;
  background: linear-gradient(175deg, #fff 0%, rgba(147,197,253,.95) 45%, rgba(99,102,241,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 100px rgba(59,130,246,.5));
  display: inline-block;
  user-select: none;
  overflow: visible;
}

/* definition + card sit on top of fyi overlap */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.definition {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 300;
  letter-spacing: 0.11em;
  color: rgba(147,197,253,.35);
  line-height: 2; max-width: 320px;
  text-align: center; margin-bottom: 2.2rem;
  opacity: 0;
  animation: rise .9s .4s cubic-bezier(.22,1,.36,1) forwards;
}
.def-en { color: rgba(147,197,253,.6); font-style: italic; letter-spacing: .06em; }

/* ─────────────────────────────────────────
   GLASS CARD — hover pill
───────────────────────────────────────── */
.glass-card {
  position: relative;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  padding: .6rem;
  overflow: hidden;
  min-width: 300px;
  opacity: 0;
  animation: rise .9s .65s cubic-bezier(.22,1,.36,1) forwards;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 0 80px rgba(99,102,241,.14),
    0 24px 48px rgba(0,0,0,.35);
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.09) 0%, transparent 100%);
  border-radius: 24px 24px 0 0; pointer-events: none;
}

/* the sliding highlight pill */
.card-pill {
  position: absolute;
  left: .6rem; right: .6rem;
  border-radius: 15px;
  background: rgba(147,197,253,.1);
  border: 1px solid rgba(147,197,253,.18);
  box-shadow: 0 0 20px rgba(147,197,253,.08);
  transition: top .28s cubic-bezier(.34,1.56,.64,1), height .28s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  pointer-events: none;
  z-index: 0;
}

.card-row {
  display: flex; align-items: center; gap: 12px;
  padding: .9rem 1.2rem;
  border-radius: 15px;
  transition: background .15s;
  position: relative; z-index: 1;
  text-decoration: none;
  min-height: 48px;
}
/* no individual hover bg — pill handles it */
.card-row:hover { background: transparent; }

.card-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  margin: 0 1.2rem; position: relative; z-index: 1;
}

.row-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.row-name { font-size: 14px; font-weight: 400; letter-spacing: -.01em; flex: 1; }
.row-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 300;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}

.row-arifov .row-name {
  color: rgba(147,197,253,.9); font-weight: 500;
}
.row-arifov .row-badge {
  color: rgba(147,197,253,.65);
  background: rgba(147,197,253,.08);
  border: 1px solid rgba(147,197,253,.15);
}

.row-36 .row-name {
  color: rgba(147,197,253,.9);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(147,197,253,.3);
}
.row-36:hover .row-name { text-decoration-color: rgba(147,197,253,.7); }
.row-36 .row-badge {
  color: rgba(74,222,128,.85);
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
}

.row-soon { cursor: default; }
.row-soon:hover { background: transparent; }
.row-soon .row-name { color: rgba(147,197,253,.22); font-weight: 300; }
.row-soon .row-badge {
  color: rgba(147,197,253,.18); background: transparent;
  border: 1px solid rgba(147,197,253,.08);
}

.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; font-weight: 300;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(147,197,253,.18);
  opacity: 0; animation: rise 1s 1.4s forwards;
  z-index: 2;
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 8rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2.8rem; }
.section-label {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 3rem;
}
.label-num {
  font-family: var(--font-mono); font-size: 10px; font-weight: 300;
  letter-spacing: .2em; color: rgba(147,197,253,.22);
}
.label-slash { font-family: var(--font-mono); font-size: 10px; color: rgba(147,197,253,.1); }
.label-text {
  font-family: var(--font-mono); font-size: 10px; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(147,197,253,.22);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -0.025em; color: #fff;
  margin-bottom: 3.5rem;
}
.section-title em { font-style: italic; color: rgba(147,197,253,.65); }

/* ─────────────────────────────────────────
   001 WORK — editorial rows
───────────────────────────────────────── */
.work-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.05);
}

.work-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 2.5rem;
  align-items: start;
  padding: 2.2rem 1.4rem;
  margin: 0 -1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: opacity .2s, background .2s;
}
.work-list:hover .work-row { opacity: .45; }
.work-list:hover .work-row:hover {
  opacity: 1;
  background: rgba(147,197,253,.04);
}
.work-list:hover .work-row-stealth { opacity: .15; }

/* left index */
.wr-index {
  font-family: var(--font-mono); font-size: 10px; font-weight: 300;
  letter-spacing: .12em; color: rgba(147,197,253,.2);
  padding-top: .55rem;
  display: block;
}

/* main */
.wr-top {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: .6rem;
}
.wr-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 30px; font-weight: 300;
  letter-spacing: -0.02em; color: #fff;
  line-height: 1;
}
.wr-status {
  font-family: var(--font-mono); font-size: 9px; font-weight: 300;
  letter-spacing: .1em; text-transform: lowercase;
  padding: 3px 9px; border-radius: 100px;
}
.wr-status.live {
  color: rgba(74,222,128,.85);
  background: rgba(74,222,128,.07);
  border: 1px solid rgba(74,222,128,.18);
}
.wr-status.shipped {
  color: rgba(147,197,253,.35);
  background: transparent;
  border: 1px solid rgba(147,197,253,.1);
}
.wr-status.soon {
  color: rgba(147,197,253,.3);
  background: transparent;
  border: 1px solid rgba(147,197,253,.08);
}
.wr-desc {
  font-size: 14px; line-height: 1.75; color: var(--muted);
  max-width: 560px;
}

/* right */
.wr-right { padding-top: .3rem; text-align: right; }
.wr-arrow {
  font-size: 20px; color: rgba(147,197,253,.2);
  transition: color .2s, transform .2s; display: block;
}
.work-row:hover .wr-arrow {
  color: rgba(147,197,253,.7);
  transform: translate(3px,-3px);
}
.wr-year {
  font-family: var(--font-mono); font-size: 10px; font-weight: 300;
  letter-spacing: .1em; color: rgba(147,197,253,.2);
}

/* ─────────────────────────────────────────
   002 ABOUT
───────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem; align-items: start;
}
.about-title {
  position: sticky; top: 8rem;
  margin-bottom: 0 !important; line-height: 1.15 !important;
}
.about-lead {
  font-size: 18px; line-height: 1.75;
  color: rgba(237,233,254,.72);
  margin-bottom: 3rem; font-weight: 300;
}
.about-facts {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid rgba(147,197,253,.08);
  border-radius: 16px; overflow: hidden;
  margin-bottom: 3rem;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.fact {
  display: flex; flex-direction: column; gap: 4px;
  padding: 1.4rem 1.4rem;
  border-right: 1px solid rgba(147,197,253,.06);
}
.fact:last-child { border-right: none; }
.fact-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 42px; font-weight: 300;
  line-height: 1; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 0 40px rgba(147,197,253,.3);
}
.fact-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 300;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(147,197,253,.28);
}
.about-secondary {
  font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 1.1rem;
}
.about-secondary strong { color: rgba(237,233,254,.75); font-weight: 500; }

/* ─────────────────────────────────────────
   003 WRITING
───────────────────────────────────────── */
.writing-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.05);
}
.writing-list:hover .write-row { opacity: .35; }
.writing-list:hover .write-row:hover { opacity: 1; }
.write-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px 24px;
  align-items: center; gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none; color: inherit; transition: opacity .2s;
}
.w-date { font-family: var(--font-mono); font-size: 10px; font-weight: 300; color: rgba(147,197,253,.25); letter-spacing: .06em; }
.w-title { font-size: 16px; font-weight: 400; color: rgba(237,233,254,.75); transition: color .2s; }
.write-row:hover .w-title { color: #fff; }
.w-cat { font-family: var(--font-mono); font-size: 10px; font-weight: 300; letter-spacing: .08em; color: rgba(147,197,253,.25); text-align: right; text-transform: uppercase; }
.w-arrow { color: rgba(147,197,253,.2); font-size: 14px; text-align: right; transition: color .2s, transform .2s; display: block; }
.write-row:hover .w-arrow { color: rgba(147,197,253,.65); transform: translate(3px,-3px); }

/* ─────────────────────────────────────────
   004 CONTACT
───────────────────────────────────────── */
.contact-title { font-size: clamp(3rem,7vw,5.5rem) !important; }
.contact-sub { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; max-width: 380px; }
.contact-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.c-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 300; letter-spacing: .08em;
  color: rgba(147,197,253,.4); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: background .2s, border-color .2s, color .2s;
}
.c-btn:hover {
  background: rgba(147,197,253,.07);
  border-color: rgba(147,197,253,.2);
  color: rgba(147,197,253,.85);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.75rem 2.8rem;
  display: flex; justify-content: space-between; align-items: center;
}
footer p { font-family: var(--font-mono); font-size: 10px; font-weight: 300; letter-spacing: .12em; color: rgba(147,197,253,.18); }
.foot-accent { color: rgba(147,197,253,.42); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes rise {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.15} }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity:1; transform:none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  #cursor { display: none; }
}

@media (max-width: 768px) {
  /* nav */
  nav { padding: 1.2rem 1.5rem; }
  .n-logo-text { font-size: 28px; }
  .n-links { display: none; }

  /* hero */
  #fyi { font-size: clamp(72px, 19vw, 220px); }
  .glass-card { min-width: 0; width: calc(100vw - 3rem); }
  .definition { font-size: 10px; max-width: 260px; }
  .hero-scroll-hint { bottom: 1.2rem; }

  /* sections */
  .section { padding: 4.5rem 0; }
  .section-inner { padding: 0 1.25rem; }
  .section-title { margin-bottom: 2.5rem; }

  /* work */
  .work-row {
    grid-template-columns: 36px 1fr;
    gap: 1.2rem;
    padding: 1.6rem .8rem;
    margin: 0 -.8rem;
  }
  .wr-right { display: none; }
  .wr-name { font-size: 22px; }
  .wr-desc { font-size: 13px; max-width: 100%; }
  .wr-top { gap: .6rem; }

  /* about */
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-title { position: static; margin-bottom: 0 !important; }
  .about-lead { font-size: 16px; margin-bottom: 2rem; }
  .about-facts { grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 1rem .8rem; }
  .fact-num { font-size: 32px; }
  .fact-label { font-size: 8px; }
  .about-secondary { font-size: 14px; }

  /* writing */
  .write-row {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
  }
  .w-cat, .w-arrow { display: none; }
  .w-title { font-size: 14px; }

  /* contact */
  .contact-links { gap: .5rem; }
  .c-btn { padding: 10px 14px; font-size: 10px; }

  /* footer */
  footer { flex-direction: column; gap: .5rem; text-align: center; padding: 1.5rem; }
}

@media (max-width: 400px) {
  .n-logo-text { font-size: 24px; }
  #fyi { font-size: clamp(60px, 19vw, 220px); }
  .glass-card { width: calc(100vw - 2rem); }
  .about-facts { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid rgba(147,197,253,.06); }
  .fact:last-child { border-bottom: none; }
}
