/* 4source — under construction
   Palette and type follow the 3D logo: near-black metal with a warm gold accent. */

:root {
  --gold: #e0a253;
  --gold-light: #f4cd93;
  --gold-deep: #c98a3e;
  --bg: #050505;
  --bg-deep: #030303;
  --text: #ece7dd;
  --muted: #8a8578;
  --dim: #6e695f;
  --warn: #c98a6d;
  --line: rgba(255, 255, 255, 0.10);

  --font-body: 'Sora', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-ui: 'Jura', 'Segoe UI', Tahoma, system-ui, sans-serif;

  --pad-x: clamp(20px, 4vw, 56px);
  --gap: clamp(12px, 2.2vh, 26px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  /* No background here on purpose: html carries it. A background on body
     paints over the negative z-index backdrop layers below. */
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* --- atmosphere: warm wash, gold halo, film grain, edge rails --- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(120% 92% at 50% 34%, #1a150f 0%, #0c0a08 44%, #030303 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.glow {
  position: fixed;
  z-index: -2;
  top: 36%;
  left: 50%;
  width: min(820px, 170vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(22px);
  background: radial-gradient(circle at center,
    rgba(224, 162, 83, 0) 0%,
    rgba(224, 162, 83, 0) 24%,
    rgba(224, 162, 83, 0.19) 38%,
    rgba(224, 162, 83, 0.05) 56%,
    rgba(224, 162, 83, 0) 72%);
}

.rail {
  position: fixed;
  z-index: -2;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.055) 28%, rgba(255, 255, 255, 0.055) 72%, transparent 100%);
}

.rail--left { left: 184px; }
.rail--right { right: 184px; }

.hairline {
  position: fixed;
  z-index: -2;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 162, 83, 0) 0%, rgba(224, 162, 83, 0.45) 50%, rgba(224, 162, 83, 0) 100%);
}

/* --- header --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.2vh, 34px) var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  display: block;
  height: auto;
}

.brand__mark { mix-blend-mode: screen; }

.brand__mark { width: clamp(24px, 3vw, 30px); }
.brand__word { width: clamp(88px, 11vw, 112px); opacity: 0.88; }

.lang {
  display: flex;
  gap: 6px;
}

.lang__btn {
  height: 44px;
  min-width: 52px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.lang__btn:hover { color: var(--text); }

.lang__btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #17120b;
}

/* --- stage --- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: clamp(16px, 2.6vh, 48px) var(--pad-x) clamp(20px, 3vh, 56px);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(224, 162, 83, 0.22);
  border-radius: 999px;
  background: rgba(224, 162, 83, 0.05);
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.4vw, 11px);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.status__label { margin-right: -0.3em; }

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(224, 162, 83, 0.9);
  animation: pulse 2.6s ease-in-out infinite;
}

/* The logo files are JPGs on black, so the lockup sits in its own pool of
   black that fades into the backdrop — no visible image edges. */
.lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: clamp(12px, 2.2vh, 24px) clamp(40px, 8vw, 90px);
}

.lockup__halo {
  position: relative;
  display: block;
  width: clamp(96px, min(22vw, 20vh), 170px);
}

/* A dark core inside the gold halo, so the corners of the mark's JPG melt
   into the backdrop even where blending is isolated. */
.lockup__halo::before {
  content: '';
  position: absolute;
  inset: -26%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #000 0%,
    #000 66%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0) 100%);
}

.lockup img {
  display: block;
  height: auto;
}

.lockup__mark {
  width: 100%;
  mix-blend-mode: screen;
  animation: float 9s ease-in-out infinite;
}

.lockup__word { width: clamp(200px, min(42vw, 36vh), 320px); }

.rule {
  position: relative;
  width: clamp(170px, 30vw, 240px);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.rule::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: slide 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.6vh, 16px);
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(780px, 90vw);
  margin: 0;
  font-size: clamp(20px, min(4.6vw, 4.2vh), 40px);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.headline__accent { color: rgba(224, 162, 83, 0.92); }

.sub {
  max-width: 620px;
  margin: 0;
  font-size: clamp(13px, min(1.7vw, 1.9vh), 15px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* --- footer --- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2vh, 30px) var(--pad-x);
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.4vw, 12px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.mail {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.16em;
  transition: color 140ms ease;
}

.mail:hover { color: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- entrance --- */

.reveal {
  animation: rise 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.15s; }
.reveal--3 { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

@keyframes slide {
  0%   { left: -45%; }
  100% { left: 100%; }
}

/* --- responsive --- */

/* One screen, no scrolling — released on very short windows, where
   clipping the content would be worse than a scrollbar. */
@media (min-height: 620px) {
  body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 560px) {
  .site-footer { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .lockup__mark, .status__dot { animation: none; }
  .rule::after { animation-duration: 5s; }
}
