/* =============================================================
   Artur Abduramanov — Coming Soon (centered mark)
   Editorial-luxury, mirrors ~/Downloads/artur-website.
   Type: Fraunces (display) + Inter (UI). Brand mark: ///.
   Accent: Tiffany #0ABAB5.
   Theme: AUTOMATIC — follows the OS via prefers-color-scheme.
   ============================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Light theme tokens (default). */
  --bg: #FFFFFF;
  --bg-alt: #F8F8F8;
  --text: #000000;
  --text-body: #1A1A1A;
  --text-muted: #6F6F6F;
  --border: #E5E5E5;

  /* Brand */
  --tiffany: #0ABAB5;
  --tiffany-light: #81D8D0;

  --transition: cubic-bezier(0.22, 1, 0.36, 1);
  --grain-opacity: 0.045;
}

/* Dark theme tokens — applied automatically when OS prefers dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0E0E0E;
    --text: #F5F5F5;
    --text-body: #D5D5D5;
    --text-muted: #8E8E8E;
    --border: #1F1F1F;
    --grain-opacity: 0.07;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  transition: background 0.6s var(--transition), color 0.6s var(--transition);
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--tiffany); color: #fff; }

/* =============================================================
   FILM GRAIN — atmospheric on dark; OFF on light for clean white.
============================================================= */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;                       /* hidden in light mode by default */
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grainShift 1.6s steps(8) infinite;
}
@media (prefers-color-scheme: dark) {
  .grain { opacity: var(--grain-opacity); }
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -3%); }
  20%  { transform: translate(-12%, 4%); }
  30%  { transform: translate(7%, -8%); }
  40%  { transform: translate(-5%, 11%); }
  50%  { transform: translate(-12%, 3%); }
  60%  { transform: translate(11%, -4%); }
  70%  { transform: translate(-7%, 7%); }
  80%  { transform: translate(6%, -3%); }
  90%  { transform: translate(-3%, -6%); }
  100% { transform: translate(0, 0); }
}

/* =============================================================
   VIGNETTE — cinematic on dark; OFF on light for clean white.
============================================================= */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  opacity: 0;
  transition: opacity 1.2s var(--transition);
}
@media (prefers-color-scheme: dark) {
  .vignette {
    background:
      radial-gradient(ellipse 80vw 70vh at 50% 50%, transparent 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.35) 100%);
    opacity: 1;
  }
}

/* =============================================================
   STAGE — fullscreen centered composition
============================================================= */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* =============================================================
   HERO CENTER — huge /// mark + wordmark + COMING SOON
============================================================= */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 36px);
  text-align: center;
}

/* =============================================================
   PROTECTION — block selection, drag, iOS save-menu on the mark
============================================================= */
.protected,
.protected * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- Logo mark: travelling beam ported from ~/Downloads/artur-website
   iPhone hero-brand-bottom (styles.css line 623+).
   A bright white streak sweeps up through each slash (clipped to the
   glyph), and the three slashes are STAGGERED so the streak hands off
   1st → 2nd → 3rd, then briefly rests and repeats. --- */
.hero-mark {
  display: inline-flex;
  line-height: 1;
  cursor: default;
  background: transparent;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hero-mark:focus { outline: none; }
.hero-mark:focus-visible { outline: 2px solid var(--tiffany); outline-offset: 6px; border-radius: 4px; }
.hero-mark-glyph {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(120px, 22vw, 260px);
  line-height: 0.9;
  display: inline-flex;
  letter-spacing: -0.01em;
}
.hero-mark-glyph > span {
  display: inline-block;
  margin-right: -0.18em;
  /* Vertical gradient: tiffany base with a bright white core mid-way.
     background-size 100% 220% means the gradient is taller than the
     slash, so animating background-position sweeps the bright streak
     through the glyph once per cycle. */
  background: linear-gradient(180deg,
    var(--tiffany) 0%,
    var(--tiffany) 34%,
    var(--tiffany-light) 41%,
    #FFFFFF 46%,
    #FFFFFF 54%,
    var(--tiffany-light) 59%,
    var(--tiffany) 66%,
    var(--tiffany) 100%);
  background-size: 100% 220%;
  background-repeat: no-repeat;
  background-position: 50% 0%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: slashTravel 1.6s linear infinite;
  /* Per-slash lift transition for hover */
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, background-position, filter;
}
.hero-mark-glyph > span:last-child { margin-right: 0; }

/* Stagger 0 / 0.26s / 0.52s so the beam hands off across the three
   slashes (cycle is longer here than the artur-website 1s because the
   glyph is much larger — keeps the streak readable). */
.hero-mark-glyph > span:nth-child(2) { animation-delay: 0.26s; }
.hero-mark-glyph > span:nth-child(3) { animation-delay: 0.52s; }

@keyframes slashTravel {
  0% {
    background-position: 50% 0%;
    filter: drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(10,186,181,0));
  }
  15% {
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.95)) drop-shadow(0 0 36px rgba(10,186,181,0.75));
  }
  30% {
    background-position: 50% 100%;
    filter: drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(10,186,181,0));
  }
  100% {
    background-position: 50% 100%;
    filter: drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(10,186,181,0));
  }
}

/* (Hover effect removed — the logo no longer reacts to the cursor.) */
/* (Click pulse removed — pressing the logo no longer moves it.)    */

/* Reduced motion: kill the travelling beam and revert to plain tiffany. */
@media (prefers-reduced-motion: reduce) {
  .hero-mark-glyph > span {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--tiffany);
    color: var(--tiffany);
    filter: none;
  }
}

.hero-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--text);
  text-transform: uppercase;
  padding-left: 0.44em;
}

/* --- Tagline: replaces the old uppercase + pulsing-dot eyebrow.
   Fraunces italic accent in tiffany, then Inter for the rest. --- */
.hero-tagline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin-top: 4px;
}
.hero-tagline-accent {
  color: var(--tiffany);
}
.hero-tagline-rest {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 300;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.15s; }

/* =============================================================
   REDUCED MOTION
============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { animation: none; }
}
