/* Aynkharan family site — shared design system */

:root {
  --bg: #050506;
  --bg-elev: #0c0c0e;
  --bg-elev-2: #121214;
  --fg: #f5f1ea;
  --fg-muted: #a9a39a;
  --fg-faint: #6f6a63;
  --accent: #e3242b;
  --accent-bright: #ff3b42;
  --accent-dim: #7a1418;
  --border: rgba(245, 241, 234, 0.09);
  --border-strong: rgba(245, 241, 234, 0.16);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

p.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.75;
}

/* ---------- maple leaf motif ---------- */
.maple {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}
.maple svg { width: 100%; height: 100%; fill: currentColor; }

.divider-maple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--accent);
  opacity: 0.85;
  margin: 0 auto;
}
.divider-maple .line {
  height: 1px;
  width: clamp(40px, 8vw, 120px);
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.divider-maple .maple { width: 1.1rem; height: 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(227, 36, 43, 0.55);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(227, 36, 43, 0.65); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- top mark ---------- */
.sitemark {
  position: fixed;
  top: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.25rem, 5vw, 3rem);
  z-index: 40;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sitemark .maple { color: var(--accent); mix-blend-mode: normal; width: 1.05rem; height: 1.05rem; }

/* ---------- section shell + parallax media ---------- */
section { position: relative; }

.media-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.media-bg img {
  position: absolute;
  inset: -8% -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}
.hero .media-scrim {
  background:
    linear-gradient(180deg, rgba(5,5,6,0.55) 0%, rgba(5,5,6,0.35) 35%, rgba(5,5,6,0.75) 78%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 1.5rem 4rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.75);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  color: var(--fg);
  text-shadow: 0 4px 40px rgba(0,0,0,0.45);
}
.hero h1 span { color: var(--accent); }
.hero-tagline {
  margin: 1.6rem auto 2.6rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(245,241,234,0.88);
  max-width: 46ch;
  font-weight: 400;
}
.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245,241,234,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue .stem {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(245,241,234,0.7), transparent);
  animation: stem-pulse 2.2s ease-in-out infinite;
}
@keyframes stem-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- about ---------- */
.about {
  padding: clamp(6rem, 14vw, 10rem) 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.about-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,6,0.65) 100%);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; aspect-ratio: 16/10; }
}

/* ---------- family ---------- */
.family {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.family-head { text-align: center; max-width: 640px; margin: 0 auto clamp(3rem, 7vw, 4.5rem); }
.family-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.family-head p { color: var(--fg-muted); font-size: 1.05rem; }

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1000px) { .family-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .family-grid { grid-template-columns: 1fr; } }

.person-card {
  background: linear-gradient(165deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.6rem 1.9rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.person-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.6);
}
.person-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227,36,43,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(227,36,43,0.25);
}
.person-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.person-role {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.person-bio { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.65; }

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding: clamp(6rem, 14vw, 10rem) 0;
  background: var(--bg);
}
.contact .media-scrim {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,6,0.55) 30%, rgba(5,5,6,0.85) 100%);
}
.contact-inner { position: relative; z-index: 2; }
.contact-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.contact-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.1rem; }
.contact-head p { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.7; }

form.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-submit { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-note { color: var(--fg-faint); font-size: 0.82rem; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: #6fd18b; }
.form-status[data-state="err"] { color: var(--accent-bright); }

/* ---------- footer ---------- */
footer {
  padding: 3rem 0 2.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-mark { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-mark .maple { color: var(--accent); }
footer .copy { color: var(--fg-faint); font-size: 0.85rem; }
footer .back-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
footer .back-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- subdomain profile page ---------- */
.profile-hero {
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
}
.profile-hero .media-scrim {
  background: linear-gradient(180deg, rgba(5,5,6,0.35) 0%, rgba(5,5,6,0.55) 45%, var(--bg) 100%);
}
.profile-hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 3.5rem;
  width: 100%;
}
.profile-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.profile-role {
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.profile-bio {
  padding: clamp(4rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 3rem);
  max-width: 62ch;
}
.profile-bio p { color: var(--fg-muted); font-size: 1.1rem; line-height: 1.8; }
.profile-contact { padding: 0 0 clamp(5rem, 10vw, 7rem); }

@media (max-width: 600px) {
  .hero h1 { letter-spacing: -0.01em; }
}
