/* ==========================================================
   NOUS LLC — the executive suite
   Inside, high up, looking out through floor-to-ceiling
   glass at a clear blue sky. Three wide panes, sun on the
   glass, a cloud deck far below.
   ========================================================== */

:root {
  --ink: #f8f6f0;
  --ink-dim: #dce6f2;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
  background: #2b62a5;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* faint grain over everything — film, not screen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the sky ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    #123e78 0%,
    #1d5296 26%,
    #2e6cb4 52%,
    #5b95d3 76%,
    #9dc4e8 92%,
    #c8e0f2 100%
  );
}

/* a slight deepening behind the name so it owns the frame */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 52% 40% at 50% 46%, rgba(8, 28, 58, 0.22), transparent 70%);
}

/* the cloud deck far below */
.clouds {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -14%;
  height: 30%;
  filter: blur(26px);
  background:
    radial-gradient(ellipse 34% 52% at 12% 78%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 40% 48% at 38% 88%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 30% 42% at 60% 76%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 44% 55% at 84% 90%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 60% 36% at 50% 100%, rgba(255, 255, 255, 0.55), transparent 75%);
  animation: drift 240s linear infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-2.5%); }
  to   { transform: translateX(2.5%); }
}

/* sun catching the top corner of the glass */
.sunglare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 88% -10%, rgba(255, 243, 214, 0.38), transparent 70%),
    radial-gradient(circle 640px at 92% -14%, rgba(255, 246, 224, 0.16), transparent 70%);
}

/* ---------- the glass ---------- */

.glass {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* glass has a body: the faintest cool tint */
.tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 70, 0.1), rgba(25, 50, 80, 0.05) 50%, rgba(30, 55, 85, 0.12));
}

/* three wide panes: two substantial mullions, seen up close */
.mullions {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(33.333% - 8px),
      rgba(255, 255, 255, 0.18) calc(33.333% - 8px),
      rgba(255, 255, 255, 0.18) calc(33.333% - 7px),
      rgba(12, 16, 22, 0.88) calc(33.333% - 7px),
      rgba(12, 16, 22, 0.88) calc(33.333% - 2px),
      rgba(70, 85, 105, 0.55) calc(33.333% - 2px),
      rgba(70, 85, 105, 0.55) calc(33.333% - 1px),
      transparent calc(33.333% - 1px),
      transparent 33.333%
    );
}

/* long reflections lying on the panes */
.reflection {
  position: absolute;
  inset: -22%;
  background:
    linear-gradient(
      108deg,
      transparent 30%,
      rgba(255, 255, 255, 0.05) 37%,
      rgba(255, 255, 255, 0.11) 41%,
      rgba(255, 255, 255, 0.05) 45%,
      transparent 52%
    ),
    linear-gradient(
      108deg,
      transparent 58%,
      rgba(255, 255, 255, 0.04) 64%,
      rgba(255, 255, 255, 0.08) 67%,
      rgba(255, 255, 255, 0.04) 70%,
      transparent 76%
    );
}

/* the room around you: ceiling shadow above, floor line below */
.room {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 12, 0.5) 0%, transparent 9%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.55) 0%, rgba(5, 8, 12, 0.18) 5%, transparent 12%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.32) 0%, transparent 7%),
    linear-gradient(270deg, rgba(5, 8, 12, 0.32) 0%, transparent 7%);
}

/* ---------- center ---------- */

.center {
  position: relative;
  z-index: 3;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 4vh; /* optical center sits slightly high */
  text-align: center;
}

.mark-wrap { position: relative; }

/* white-gold sheen — light crossing the lettering, then stillness */
.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(
    105deg,
    var(--ink) 0%,
    var(--ink) 38%,
    #ffffff 50%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 300% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgba(8, 28, 58, 0.45));
  animation: sheen 11s ease-in-out infinite;
  animation-delay: 2.2s;
}

@keyframes sheen {
  0%   { background-position: 115% 0; }
  26%  { background-position: -15% 0; }
  100% { background-position: -15% 0; }
}

/* ---------- glints — tiny four-point stars ---------- */

.glint {
  position: absolute;
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.55) 30%, transparent 70%);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  animation: twinkle 9s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  3%       { opacity: 1; transform: scale(1) rotate(24deg); }
  7%       { opacity: 0; transform: scale(0.2) rotate(45deg); }
}

.g1 { top: 6%;   left: 4%;   animation-delay: 2.6s; }
.g2 { top: -8%;  left: 55%;  animation-delay: 4.9s;  width: 8px; height: 8px; }
.g3 { top: 68%;  left: 88%;  animation-delay: 7.4s; }
.g4 { top: 88%;  left: 26%;  animation-delay: 10.2s; width: 7px; height: 7px; }
.g5 { top: 22%;  left: 97%;  animation-delay: 13.1s; width: 9px; height: 9px; }

/* ---------- the country line ---------- */

.place {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 14px rgba(8, 28, 58, 0.5);
  white-space: nowrap;
}

.flag {
  width: 23px;
  height: 12px;
  border-radius: 1.5px;
  flex-shrink: 0;
  opacity: 0.95;
  box-shadow: 0 1px 8px rgba(8, 28, 58, 0.35);
}

/* ---------- entrance ---------- */

.enter {
  opacity: 0;
  animation: enter 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* the stagger lives inside the keyframes — no animation-delay */
.enter.e1 {
  animation-name: enterHeld;
  animation-duration: 2.7s;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes enterHeld {
  0%, 19% { opacity: 0; transform: translateY(10px); }
  100%    { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .enter, .enter.e1 { animation: none; opacity: 1; }
  .name { animation: none; }
  .glint { animation: none; opacity: 0; }
  .clouds { animation: none; }
}

/* ---------- small screens ---------- */

/* on a phone you're close up on one pane: mullions move to the edges */
@media (max-width: 700px) {
  .mullions {
    background:
      linear-gradient(
        90deg,
        transparent 0,
        transparent calc(9% - 1px),
        rgba(255, 255, 255, 0.18) calc(9% - 1px),
        rgba(255, 255, 255, 0.18) 9%,
        rgba(12, 16, 22, 0.88) 9%,
        rgba(12, 16, 22, 0.88) calc(9% + 5px),
        rgba(70, 85, 105, 0.55) calc(9% + 5px),
        rgba(70, 85, 105, 0.55) calc(9% + 6px),
        transparent calc(9% + 6px),
        transparent calc(91% - 6px),
        rgba(255, 255, 255, 0.18) calc(91% - 6px),
        rgba(255, 255, 255, 0.18) calc(91% - 5px),
        rgba(12, 16, 22, 0.88) calc(91% - 5px),
        rgba(12, 16, 22, 0.88) 91%,
        rgba(70, 85, 105, 0.55) 91%,
        rgba(70, 85, 105, 0.55) calc(91% + 1px),
        transparent calc(91% + 1px)
      );
  }
}

@media (max-width: 480px) {
  .place { letter-spacing: 0.22em; text-indent: 0.22em; }
}
