:root {
  color-scheme: dark;
  --background: #09090a;
  --ivory: #eeeae3;
  --muted: #a49d92;
  --quiet: #716b63;
  --hairline: rgba(222, 213, 199, 0.2);
  --serif: "Bodoni 72", "Didot", "Times New Roman", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--background);
}

body {
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) 34px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 48%, rgba(60, 51, 43, 0.16) 0%, rgba(23, 21, 20, 0.08) 33%, transparent 68%),
    linear-gradient(145deg, #101011 0%, #09090a 48%, #0b0a0a 100%);
}

.atmosphere,
.atmosphere span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atmosphere { z-index: -1; overflow: hidden; }

.light-leak {
  width: 70vw;
  height: 70vw;
  max-width: 920px;
  max-height: 920px;
  inset: auto !important;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  transform: translate3d(0, 0, 0);
}

.light-leak--one {
  top: -38% !important;
  left: -18% !important;
  background: radial-gradient(circle, rgba(166, 130, 91, 0.48), transparent 68%);
  animation: drift-one 22s ease-in-out infinite alternate;
}

.light-leak--two {
  right: -28% !important;
  bottom: -48% !important;
  left: auto !important;
  background: radial-gradient(circle, rgba(111, 103, 94, 0.34), transparent 70%);
  animation: drift-two 27s ease-in-out infinite alternate;
}

.grain {
  z-index: 2;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

.vignette {
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.28) 75%, rgba(0, 0, 0, 0.65) 130%);
}

.frame {
  position: absolute;
  z-index: 4;
  right: max(34px, env(safe-area-inset-right));
  left: max(34px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frame--top { top: max(27px, env(safe-area-inset-top)); }
.frame--bottom { bottom: max(26px, env(safe-area-inset-bottom)); }

.frame__mark {
  color: rgba(238, 234, 227, 0.7);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.08em;
}

.frame__mark span { color: #9e8b72; }

.frame__label,
.bottom-note,
.bottom-index {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.23em;
}

.intro {
  position: relative;
  z-index: 5;
  width: min(100%, 1120px);
  margin-top: -1.5vh;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(24px, 4.2vh, 48px);
  color: #a99e8e;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.6;
}

.name {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0 2px 35px rgba(235, 220, 198, 0.06);
}

.name__line {
  display: block;
  font-size: clamp(47px, 8.4vw, 116px);
  letter-spacing: 0.105em;
  line-height: 0.99;
  padding-left: 0.105em;
}

.name__line--last {
  margin-top: 0.11em;
  font-size: clamp(39px, 7.35vw, 102px);
  letter-spacing: 0.095em;
  padding-left: 0.095em;
}

.rule {
  display: flex;
  width: clamp(76px, 9vw, 112px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: clamp(27px, 5vh, 52px) auto 0;
}

.rule__line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(173, 151, 121, 0.62));
}

.rule__line:last-child { transform: rotate(180deg); }

.rule__point {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #b29a78;
  box-shadow: 0 0 12px rgba(178, 154, 120, 0.45);
}

.message { margin-top: clamp(22px, 3.5vh, 36px); }

.message__english {
  margin: 0;
  color: #d3cdc3;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.8;
}

.message__turkish {
  margin: 9px 0 0;
  color: #8e877d;
  font-family: var(--serif);
  font-size: clamp(14px, 1.35vw, 17px);
  font-style: italic;
  letter-spacing: 0.015em;
}

.bottom-note { color: #aaa093; }
.full-stop { color: #b69a73; }

.bottom-line {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(182, 154, 115, 0.75), transparent);
  transform: translateX(-50%);
}

.bottom-index { color: #5e5952; font-size: 8px; letter-spacing: 0.18em; }

.js .reveal {
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js.is-ready .reveal { opacity: 1; transform: translateY(0); }
.js .reveal--second { transition-delay: 0.18s; }
.js .reveal--third { transition-delay: 0.55s; }
.js .reveal--fourth { transition-delay: 0.76s; }

@keyframes drift-one {
  from { transform: translate3d(-2%, -1%, 0) scale(0.94); opacity: 0.09; }
  to { transform: translate3d(8%, 7%, 0) scale(1.08); opacity: 0.16; }
}

@keyframes drift-two {
  from { transform: translate3d(2%, 0, 0) scale(1); opacity: 0.08; }
  to { transform: translate3d(-7%, -6%, 0) scale(1.12); opacity: 0.14; }
}

@media (max-width: 600px) {
  .stage { min-height: 360px; padding-right: 22px; padding-left: 22px; }
  .frame { right: max(22px, env(safe-area-inset-right)); left: max(22px, env(safe-area-inset-left)); }
  .frame--top { top: max(21px, env(safe-area-inset-top)); }
  .frame--bottom { bottom: max(22px, env(safe-area-inset-bottom)); }
  .frame__label { font-size: 8px; letter-spacing: 0.16em; }
  .eyebrow { margin-bottom: 31px; font-size: 7px; letter-spacing: 0.25em; }
  .name__line { font-size: clamp(39px, 10.2vw, 62px); letter-spacing: 0.075em; padding-left: 0.075em; }
  .name__line--last { font-size: clamp(34px, 8.9vw, 55px); letter-spacing: 0.065em; padding-left: 0.065em; }
  .rule { margin-top: 34px; }
  .message { margin-top: 25px; }
  .message__english { font-size: 8px; letter-spacing: 0.19em; }
  .message__turkish { margin-top: 8px; font-size: 14px; }
  .bottom-note { font-size: 8px; letter-spacing: 0.19em; }
  .bottom-index { font-size: 7px; }
  .bottom-line { height: 18px; }
}

@media (max-width: 360px) {
  .name__line { font-size: 9.7vw; }
  .name__line--last { font-size: 8.4vw; }
  .eyebrow { font-size: 6.5px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .stage { min-height: 300px; padding-top: 48px; padding-bottom: 44px; }
  .intro { margin-top: 0; }
  .eyebrow { margin-bottom: 16px; }
  .name__line { font-size: clamp(36px, 7vw, 68px); }
  .name__line--last { font-size: clamp(31px, 6.2vw, 60px); }
  .rule { margin-top: 17px; }
  .message { margin-top: 14px; }
  .message__turkish { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
