/* ============================================
   TAL Capital Ltd — identity page
   ============================================ */

:root {
  --color-bg:        #faf8f4;
  --color-primary:   #14213a;
  --color-accent:    #d97b1f;
  --color-muted:     #6b7280;
  --color-hairline:  rgba(20, 33, 58, 0.14);

  --font-logo: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Very subtle paper grain */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- Stage ---------- */

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  z-index: 2;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}

/* Accent rule above the wordmark */
.rule {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.75rem;
}

/* ---------- Wordmark ---------- */

.wordmark {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: clamp(2.15rem, 6.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.055em;
  color: var(--color-primary);
  white-space: nowrap;
}

.wordmark .cap { font-size: 1.26em; }

/* ---------- Descriptor ---------- */

.descriptor {
  margin: 1.5rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--color-muted);
}

/* ---------- Divider + contact ---------- */

.hairline {
  display: block;
  width: 88px;
  height: 1px;
  background: var(--color-hairline);
  margin: 2.5rem 0;
}

.email {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.email:hover,
.email:focus-visible {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.email:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ---------- Eligibility notice ---------- */

.notice {
  margin: 3rem 0 0;
  max-width: 20rem;
  font-size: 0.645rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.185em;
  line-height: 1.9;
  color: var(--color-muted);
}

/* ---------- Legal footer ---------- */

.legal {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 2.75rem;
}

.legal-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  border-top: 1px solid var(--color-hairline);
  padding-top: 1.75rem;
}

.legal p {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--color-muted);
}

.legal p:last-child { margin-bottom: 0; }

.copyright { opacity: 0.85; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .stage { padding: 3.5rem 1.25rem 2.5rem; }
  .wordmark { letter-spacing: 0.04em; }
  .hairline { margin: 2rem 0; }
  .notice { margin-top: 2.5rem; letter-spacing: 0.16em; max-width: 17rem; }
  .legal { padding-bottom: 2.25rem; }
  .legal p { font-size: 0.66rem; line-height: 1.7; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; }
  .noise-overlay { display: none; }
  .card { animation: none; }
}
