@font-face {
  font-family: 'Trust2ATRIAL';
  src: url('assets/Trust2ATRIAL-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #ECE6D8;
  --ink: #1A1411;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}

.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 1ms linear;
}

body.reveal-done .hero { opacity: 0; }

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

body.reveal-done .grid { background: var(--cream); }

.stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.header {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 62px;
}

.main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.logo {
  width: clamp(178px, 10vw, 222px);
  aspect-ratio: 178 / 60;
  height: auto;
  opacity: 0;
  transform: translateY(calc(50vh - 50% - 62px));
  user-select: none;
  -webkit-user-drag: none;
}

body.reveal-done .logo {
  animation: logoSequence 1500ms cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes logoSequence {
  0%   { opacity: 0; transform: translateY(calc(50vh - 50% - 62px)); }
  17%  { opacity: 1; transform: translateY(calc(50vh - 50% - 62px)); }
  33%  { opacity: 1; transform: translateY(calc(50vh - 50% - 62px)); }
  100% { opacity: 1; transform: translateY(0); }
}

.tagline {
  position: absolute;
  left: clamp(24px, 4.3vw, 62px);
  right: clamp(24px, 4.3vw, 62px);
  bottom: 60px;
  font-family: 'Trust2ATRIAL', Georgia, serif;
  font-size: clamp(28px, min(4.8vw, 7vh), 140px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
}

body.reveal-done .tagline {
  animation: taglineIn 600ms ease-out 1400ms forwards;
}

@keyframes taglineIn {
  to { opacity: 1; transform: translateY(0); }
}

.cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 22px 28px;
  background: #C8BCA6;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  opacity: 0;
  transform: translateY(12px);
}

body.reveal-done .cta {
  animation: ctaIn 550ms ease-out 1700ms forwards;
}

.cta-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cta-text p {
  font-size: 15px;
  line-height: 1.4;
}

.cta-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #49272C;
  color: var(--cream);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: #1C6AAF;
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

@keyframes ctaIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .tagline { line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { display: none; }
  .logo, .tagline, .cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .grid { background: var(--cream); }
}
