/* Alayan Design-Build — About + Coming soon (test page).
   Uses the same design tokens as the Alayan-Lite app (style.css) so the two stay visually consistent. */
:root {
  --ink-950: #10241d;
  --ink-900: #163129;
  --ink-800: #24463a;
  --ink-700: #36584d;
  --ink-600: #587068;
  --ink-500: #74867f;
  --ink-300: #aebbb5;
  --ink-200: #ccd4cf;
  --ink-100: #e5e9e6;
  --paper-50: #f9f7f1;
  --paper-100: #f2efe7;
  --paper-200: #e7e1d5;
  --white: #fffefa;
  --coral-700: #be4e2f;
  --coral-600: #dd6540;
  --coral-500: #ec7b55;
  --coral-200: #f6c8b6;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 0.5rem 1.5rem rgba(18, 36, 30, 0.08);
  --shadow-lg: 0 2rem 5rem rgba(18, 36, 30, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 5vw, 96px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper-100);
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid rgba(236, 123, 85, 0.48); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.035em; }
em { font-style: italic; color: var(--coral-700); }

.eyebrow, .index {
  color: var(--coral-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- header (same as the app header) ---------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 70px;
  padding: 0 clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(16, 36, 29, 0.12);
  background: rgba(249, 247, 241, 0.94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 17px; font-weight: 600; letter-spacing: 0.24em; }
.brand-word small { margin-top: 4px; color: var(--ink-600); font-size: 8.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 7px 11px; border-radius: 4px; color: var(--ink-700); font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--paper-200); color: var(--ink-950); }
.site-nav .nav-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; border: 1px solid var(--ink-200); background: var(--white); }
.nav-pill i, .status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral-500);
  box-shadow: 0 0 0 4px rgba(236, 123, 85, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- hero: founder ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-950); color: var(--white); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: min(78vh, 720px); min-height: 480px; object-fit: cover; object-position: 50% 35%; }
.hero-media::after {
  position: absolute; inset: 0; content: "";
  background:
    linear-gradient(90deg, rgba(16, 36, 29, 0.88) 0%, rgba(16, 36, 29, 0.55) 30%, rgba(16, 36, 29, 0) 52%),
    linear-gradient(0deg, rgba(16, 36, 29, 0.55) 0%, rgba(16, 36, 29, 0) 40%);
}
.hero-copy {
  position: absolute;
  bottom: clamp(32px, 7vw, 88px);
  left: var(--gutter);
  max-width: min(520px, 38vw);
}
.hero-copy .eyebrow { color: var(--coral-500); }
.hero-copy h1 { margin: 14px 0 18px; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.02; }
.hero-copy h1 em { color: var(--coral-200); }
.hero-copy p { margin: 0; color: rgba(255, 254, 250, 0.82); font-size: 15px; max-width: 46ch; }

/* ---------- story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.story-label { position: sticky; top: 110px; align-self: start; }
.story-label h2 { margin: 10px 0 12px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.story-label p { margin: 0; color: var(--ink-600); font-size: 14px; max-width: 30ch; }
.story-body { max-width: 680px; }
.story-body p { margin: 0 0 22px; color: var(--ink-700); font-size: 16.5px; }
.story-body p strong { color: var(--ink-950); }
.story-body .lead { color: var(--ink-950); font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.32; letter-spacing: -0.02em; }
.pull {
  position: relative;
  margin: 40px 0;
  padding: 26px 0 26px 28px;
  border-left: 2px solid var(--coral-600);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-900);
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}
.family-grid li {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow-sm);
}
.family-grid span { color: var(--coral-700); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.family-grid strong { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* ---------- values ---------- */
.values { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 128px); }
.values-head { display: grid; grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr); gap: 0 clamp(28px, 6vw, 96px); align-items: end; margin-bottom: 30px; padding-top: 48px; border-top: 1px solid var(--ink-200); }
.values-head .index { grid-column: 1; }
.values-head h2 { grid-column: 1; margin-top: 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.values-head p { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--ink-600); max-width: 52ch; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.value {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.value::before { position: absolute; top: 0; left: 0; width: 40%; height: 2px; background: var(--coral-600); content: ""; }
.value > span { color: var(--ink-500); font-family: var(--font-display); font-size: 15px; }
.value h3 { margin: 26px 0 10px; font-size: 1.45rem; line-height: 1.15; }
.value p { margin: 0; color: var(--ink-600); font-size: 14.5px; }

/* ---------- coming soon (dark, like the live dashboard) ---------- */
.coming { position: relative; overflow: hidden; background: var(--ink-950); color: var(--white); }
.coming::before {
  position: absolute; inset: 0; content: ""; opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.coming-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.coming h2 { margin: 18px 0 16px; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; }
.coming h2 em { color: var(--coral-500); }
.coming-copy p { margin: 0; color: rgba(255, 255, 255, 0.68); max-width: 48ch; }
.coming-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.coming-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.coming-list b { color: var(--coral-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 500; padding-top: 3px; }
.coming-list strong { display: block; font-size: 15px; font-weight: 600; }
.coming-list span { color: rgba(255, 255, 255, 0.58); font-size: 13.5px; }

/* ---------- heritage: grandfather ---------- */
.heritage { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); }
.heritage-media { position: relative; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.heritage-media img { width: 100%; height: clamp(320px, 46vw, 640px); object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.heritage-media figcaption { margin-top: 12px; color: var(--ink-500); font-size: 12.5px; font-style: italic; text-align: center; }
.heritage-copy { max-width: 900px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); text-align: center; }
.heritage-copy h2 { margin-top: 14px; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.1; }

/* ---------- footer ---------- */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px var(--gutter) 40px; background: var(--ink-950); color: rgba(255, 255, 255, 0.6); text-align: center; }
.site-footer img { width: 190px; height: auto; margin-bottom: 8px; }
.site-footer p { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer small { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .nav-pill i, .status i { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav a:not(.nav-pill) { display: none; }
  .hero-media img { height: 62vh; min-height: 360px; object-position: 50% 30%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(16, 36, 29, 1) 0%, rgba(16, 36, 29, 0) 45%); }
  .hero-copy { position: relative; bottom: auto; left: auto; max-width: none; margin-top: -40px; padding: 0 var(--gutter) 48px; }
  .story, .coming-grid { grid-template-columns: 1fr; }
  .story-label { position: static; }
  .values-head { grid-template-columns: 1fr; }
  .values-head p { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-word small { display: none; }
  .hero-media img { height: 54vh; object-position: 47% 30%; }
  .story-body p { font-size: 15.5px; }
  .heritage-media { padding: 0 12px; }
}
