/* ================================================
   HUMANOLOGY — Holding Page
   Art direction: Dark, confident, minimal.
   "The smartest person in the room who doesn't 
    need to prove it."
   ================================================ */

/* --- Design Tokens --- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-full: 9999px;
}

/* --- Dark palette (only mode for holding page) --- */
[data-theme="dark"] {
  --color-bg:          #0c0c0e;
  --color-surface:     #141416;
  --color-text:        #e8e6e1;
  --color-text-muted:  #8a887f;
  --color-text-faint:  #4e4d48;
  --color-accent:      #c9a46c;
  --color-accent-muted: rgba(201, 164, 108, 0.15);
  --color-divider:     #2a2a2d;
}

/* --- Page layout --- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-8);
  position: relative;
}

/* --- Logo mark --- */
.logo-mark {
  margin-bottom: var(--space-10);
  color: var(--color-accent);
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.2s forwards;
}

/* --- Content --- */
.content {
  text-align: center;
  max-width: 480px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.05;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.tm {
  font-size: 0.3em;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
  opacity: 0.5;
}

.tagline {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

/* --- Divider --- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-8) auto;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.8s forwards;
}

/* --- Details --- */
.details {
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.9s forwards;
}

.role {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Links --- */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 1.1s forwards;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.link svg {
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.link:hover {
  color: var(--color-accent);
}

/* --- Status indicator --- */
.status {
  position: absolute;
  bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.4s forwards;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: pulse 3s ease-in-out infinite;
}

/* --- Footer --- */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
  text-align: center;
}

.footer a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  opacity: 0.4;
}

.footer a:hover {
  opacity: 0.7;
  color: var(--color-text-muted);
}

/* --- Subtle background grain --- */
.page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: -1;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .page {
    padding: var(--space-6);
  }

  .brand-name {
    font-size: var(--text-2xl);
  }

  .links {
    gap: var(--space-4);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .logo-mark,
  .brand-name,
  .tagline,
  .divider,
  .details,
  .links,
  .status {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .status-dot {
    animation: none;
    opacity: 0.7;
  }
}