@font-face { font-family: 'Fell'; font-style: italic; font-display: swap; src: url('fonts/fell-italic.woff2') format('woff2'); }
@font-face { font-family: 'Camiro'; font-display: swap; src: url('fonts/camiro.woff2') format('woff2'); }
@font-face { font-family: 'Tinos'; font-style: italic; font-display: swap; src: url('fonts/tinos-italic.woff2') format('woff2'); }

:root {
  --ink: #050505; /* ink + paper: noirlang.tr paleti */
  --paper: #efebe2;
  --size: min(15vw, 25svh);
}
* { margin: 0; box-sizing: border-box; }
html { background: var(--ink); scrollbar-width: none; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; font-family: 'Tinos', 'Times New Roman', serif; font-style: italic; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-weight: 400; }

/* Birinci ekran: söz */
.motto {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5svh 5vw 8svh;
  background: radial-gradient(circle 60vmax at 50% 18%, rgb(255 248 230 / 0.08), transparent 70%), var(--ink);
  color: var(--paper);
}
.perch, .drone { width: clamp(150px, 15vw, 260px); aspect-ratio: 698 / 290; }
.perch { margin-bottom: 3svh; }
.motto h1 {
  font: italic 400 var(--size) / 0.92 'Fell', 'Tinos', serif;
  font-feature-settings: 'swsh', 'ss01', 'dlig';
  text-align: center;
}
.motto h1 span:last-child { display: block; padding-left: 1.1em; }
.meaning { color: rgb(239 235 226 / 0.72); margin-top: calc(var(--size) * 0.34); font-size: clamp(19px, 2vw, 30px); text-align: center; }

/* İkinci ekran: noirlang.tr hero */
.hero {
  --lx: 50%;
  --ly: 45%;
  --lr: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
}
.glow, .lit { opacity: min(1, calc(var(--lr) * 20)); }
/* Işık, ilk ekranın üstüne de taşar; geçişte kesilmez */
.glow { position: absolute; inset: -100svh 0 0; pointer-events: none; z-index: -1; background: radial-gradient(circle calc(var(--lr) * 34vmax) at var(--lx) calc(var(--ly) + 100svh), rgb(255 248 230 / 0.09), transparent 70%); }
.hero h2 { font: 400 clamp(64px, 17.5vw, 330px) / 0.9 'Camiro', 'Tinos', serif; letter-spacing: 0.02em; white-space: nowrap; }
.word { position: relative; display: block; }
.dark, .lit { display: block; }
.dark > span, .lit > span { display: inline-block; }
.dark { color: #121211; }
/* Maskenin merkezi harflere göre: main.js --mx/--my verir */
.lit { position: absolute; inset: -0.3em; padding: 0.3em; text-shadow: 0 0 40px rgb(255 248 230 / 0.25); mask-image: radial-gradient(circle calc(var(--lr) * 22vmax) at var(--mx, 50%) var(--my, 50%), #000, rgb(0 0 0 / 0.55) 35%, transparent 70%); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }

/* Drone: logonun kendisi. Aşağı iner ve ışığı taşır. */
.drone { position: fixed; top: 0; left: 0; height: auto; pointer-events: none; will-change: transform; }

@media (max-width: 640px) {
  :root { --size: min(22vw, 17svh); }
  .motto h1 span { display: block; }
  .motto h1 span:last-child { padding-left: 0; }
  .hero h2 { font-size: 34vw; }
  .dark > span, .lit > span { display: block; }
  .drone, .perch { width: 168px; }
}
