:root {
  --cs-ink: #f8f6f1;
  --cs-muted: rgba(248, 246, 241, 0.92);
  --cs-soft: rgba(248, 246, 241, 0.72);
  --cs-line: rgba(248, 246, 241, 0.28);
  --cs-deep: #1a3a4a;
  --cs-font-display: "Syne", sans-serif;
  --cs-font-body: "DM Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

.cs-body {
  min-height: 100vh;
  background: var(--cs-deep);
  color: var(--cs-ink);
  font-family: var(--cs-font-body);
  -webkit-font-smoothing: antialiased;
}

.cs {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
}

.cs__media {
  position: absolute;
  inset: -2%;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.28) brightness(1.22) contrast(1.04);
  transform: scale(1.05);
  animation: cs-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

.cs__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 214, 170, 0.14), transparent 55%),
    linear-gradient(
      180deg,
      rgba(18, 42, 56, 0.18) 0%,
      rgba(18, 42, 56, 0.06) 42%,
      rgba(18, 42, 56, 0.28) 100%
    );
}

.cs__frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(56rem, calc(100% - 2.25rem));
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) 0.2rem clamp(1.6rem, 4vw, 2.4rem);
}

.cs__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0 2rem;
}

.cs__brand {
  margin: 0;
  font-family: var(--cs-font-display);
  font-size: clamp(2.6rem, 8.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 24px rgba(10, 24, 32, 0.35);
  animation: cs-rise 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs__sub {
  margin: 0 0 1.1rem;
  font-family: var(--cs-font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-muted);
  text-shadow: 0 2px 18px rgba(10, 24, 32, 0.3);
  animation: cs-rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs__title {
  margin: 0;
  font-family: var(--cs-font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cs-muted);
  text-shadow: 0 2px 16px rgba(10, 24, 32, 0.28);
  animation: cs-rise 1250ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs__title::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, rgba(248, 246, 241, 0.7), transparent);
}

.cs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cs-line);
  animation: cs-rise 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs__meta {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cs-soft);
}

.cs__mail {
  color: var(--cs-ink);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(248, 246, 241, 0.45);
  transition: opacity 180ms ease, border-color 180ms ease;
}

.cs__mail:hover,
.cs__mail:focus-visible {
  opacity: 0.85;
  border-color: rgba(248, 246, 241, 0.95);
  outline: none;
}

@keyframes cs-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-0.7%, -0.4%, 0); }
}

@keyframes cs-rise {
  from { opacity: 0; transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cs__media, .cs__brand, .cs__sub, .cs__title, .cs__foot { animation: none !important; }
}
