/* Sikhay Group — Landing page styles
   Loaded by landing/Desktop.html and landing/Mobile.html. */

@import url('./tokens.css?v=4');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ----- Page grain texture ----- */
.page-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 80px;
  background: transparent;
  transition: background 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 244, 238, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--ink-08);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.nav .links { display: flex; gap: 32px; align-items: center; font-size: 14px; }
.nav .links a { color: var(--ink); text-decoration: none; transition: opacity 200ms; }
.nav .links a:hover { opacity: 0.6; }
.nav .links .domain { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }

/* ----- Section base ----- */
section { position: relative; padding: var(--section-y) var(--gutter); }
.container { max-width: var(--content-max); margin: 0 auto; }
.editorial { max-width: var(--editorial-max); margin: 0 auto; }

.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ----- Fade-up on scroll ----- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out-quint), transform 600ms var(--ease-out-quint); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 96px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.hero-mark-row { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.hero-mark { font-size: clamp(80px, 11vw, 160px); }

/* Letter-by-letter draw-in */
.hero-mark .sk-i, .hero-mark > span:not(.sk-i):not(.sk-overlay) { /* unused; we animate via custom approach */ }

/* ----- Hero i-sun rise + idle breathing ----- */
.hero-mark .sk-sun-disc {
  opacity: 0;
  transform: translateY(0.4em) scale(0.6);
  transition: opacity 1200ms var(--ease-out-quint), transform 1200ms var(--ease-out-quint);
}
.hero-mark.sun-risen .sk-sun-disc {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: sun-breathe 4s ease-in-out 2.4s infinite;
}
.hero-mark .sk-sun-ray line { transition: stroke-dashoffset 700ms var(--ease-out-quint) 1.6s; }
.hero-mark.sun-risen .sk-sun-ray line { stroke-dashoffset: 0 !important; }

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark .sk-sun-disc { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .hero-mark .sk-sun-ray line { stroke-dashoffset: 0 !important; transition: none !important; }
}

.hero-meta { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; text-align: center; align-items: center; }
.hero-pron {
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 12px;
}
.hero-pron .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.hero-def {
  font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3;
  font-variation-settings: "opsz" 36; font-weight: 400; letter-spacing: -0.01em;
  max-width: 600px;
  text-wrap: balance;
}

.hero-form { display: flex; gap: 0; align-items: center; max-width: 480px; margin-top: 32px; width: 100%; }
.email-field {
  flex: 1; position: relative; display: flex; align-items: center;
  border-bottom: 1px solid var(--ink-15);
  transition: border-color 200ms;
}
.email-field input {
  flex: 1; border: none; background: transparent; font-family: var(--font-body);
  font-size: 16px; padding: 14px 0; color: var(--ink); outline: none;
}
.email-field input::placeholder { color: var(--muted); }
.email-field .underline {
  position: absolute; bottom: -1px; left: 0; height: 1px; background: var(--ink); width: 0;
  transition: width 250ms var(--ease-out-quint);
}
.email-field:focus-within .underline { width: 100%; }
.btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--surface);
  border: none; padding: 14px 28px; cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); box-shadow: none; opacity: 0.9; }

.hero-cta-hint { font-size: 13px; color: var(--muted); font-family: var(--font-body); margin-top: 12px; }

/* Subtle hero ambient gradient */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(212, 162, 76, 0.06), transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(14, 20, 34, 0.03), transparent 60%);
}

/* ====================================================================
   MANIFESTO
   ==================================================================== */
.manifesto {
  padding: var(--section-y) var(--gutter);
}
.manifesto-stack { display: flex; flex-direction: column; gap: 48px; max-width: 880px; margin: 0 auto; }
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25; font-weight: 400;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin: 0;
}
.manifesto p em {
  font-style: italic;
  color: var(--clay);
}

.section-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--ink-15); }

/* ====================================================================
   FOUNDER NOTE (v2)
   ==================================================================== */
.founder {
  background: rgba(14, 20, 34, 0.025);
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
}
.founder-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.founder-divider { width: 80px; height: 1px; background: var(--gold); opacity: 0.35; margin: 0 auto 24px; }
.founder-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35; font-weight: 400;
  font-variation-settings: "opsz" 48; letter-spacing: -0.01em;
  margin: 0;
}
.founder-lead em { font-style: italic; color: var(--clay); }
.founder-body { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; color: var(--ink); margin: 0; }
.founder-signoff { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.founder-signature {
  width: 140px; height: 44px;
  color: var(--gold);
}
.founder-signature svg { width: 100%; height: 100%; }
.founder-credit {
  font-family: var(--font-body); font-style: italic;
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.01em;
}

/* ====================================================================
   THE SIKHAY WAY (v2 — replaces pillars)
   ==================================================================== */
.sikhay-way {
  border-top: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
}
.way-list { display: flex; flex-direction: column; gap: 80px; max-width: 880px; margin: 0 auto; }
.way-item { display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: start; }
.way-num {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(56px, 6vw, 88px); line-height: 1; font-weight: 300;
  font-variation-settings: "opsz" 96;
  color: var(--gold); letter-spacing: -0.02em;
}
.way-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.way-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px); font-weight: 500;
  font-variation-settings: "opsz" 36; letter-spacing: -0.005em;
  margin: 0; color: var(--ink);
}
.way-text { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: rgba(14,20,34,0.72); margin: 0; max-width: 520px; }

/* ====================================================================
   FAMILY (sub-brands)
   ==================================================================== */
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-15); border: 1px solid var(--ink-15); margin-top: 32px; }
.venture { background: var(--surface); padding: 56px 40px; display: flex; flex-direction: column; gap: 16px; min-height: 320px; transition: background 200ms; text-decoration: none; color: inherit; }
.venture:hover { background: rgba(14, 20, 34, 0.02); }
.venture:hover .v-domain .v-arrow { transform: translateX(4px); color: var(--ink); }
.venture .v-arrow { display: inline-block; margin-left: 6px; transition: transform 200ms var(--ease-out), color 200ms; color: var(--ink-40); }
.venture .v-status {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.venture .v-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.venture.live .v-status { color: var(--ink); }
.venture.live .v-status .dot { background: #2D6A3E; box-shadow: 0 0 0 4px rgba(45, 106, 62, 0.12); }
.venture .v-name {
  font-family: var(--font-display); font-size: 36px; font-variation-settings: "opsz" 48; font-weight: 400; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.32em;
}
.venture .v-name .desc { font-family: var(--font-body); font-size: 0.4em; color: var(--muted); font-weight: 400; }
.venture .v-name .tld { font-family: var(--font-mono); font-size: 0.36em; color: var(--muted); }
.venture .v-desc { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.venture .v-domain { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ====================================================================
   WHATS COMING
   ==================================================================== */
.whats-coming { background: var(--ink); color: var(--surface); }
.whats-coming .container { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.whats-coming .copy { display: flex; flex-direction: column; gap: 24px; }
.whats-coming .eyebrow { color: rgba(247,244,238,0.55); }
.whats-coming p {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35; font-variation-settings: "opsz" 48; font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
.ambient-stage {
  aspect-ratio: 1.1;
  background: rgba(247,244,238,0.02);
  border: 1px solid rgba(247,244,238,0.08);
  position: relative; overflow: hidden;
}
.ambient-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ====================================================================
   CLOSING CTA
   ==================================================================== */
.closing { padding: var(--section-y) var(--gutter); text-align: center; border-top: 1px solid var(--ink-15); }
.closing-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.15; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; font-weight: 400;
  max-width: 1000px; margin: 0 auto;
  text-wrap: balance;
}
.closing-form { display: flex; gap: 0; align-items: center; max-width: 480px; margin: 96px auto 0; }
.closing .footnote { color: var(--muted); font-size: 13px; margin-top: 24px; font-family: var(--font-body); }

/* ====================================================================
   FOOTER
   ==================================================================== */
footer {
  background: var(--ink); color: var(--surface);
  padding: 80px var(--gutter) 48px;
  position: relative; overflow: hidden;
}
footer .container { position: relative; z-index: 2; }
footer .row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
footer .col h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,244,238,0.55); margin: 0 0 16px; font-weight: 500; }
footer .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer .col a { color: rgba(247,244,238,0.85); text-decoration: none; font-size: 14px; transition: opacity 200ms; }
footer .col a:hover { opacity: 0.6; }
footer .legal { color: rgba(247,244,238,0.5); font-size: 13px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(247,244,238,0.1); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .legal-mono { font-family: var(--font-mono); font-size: 12px; }

footer .baybayin-watermark {
  position: absolute; bottom: -40px; right: -20px; z-index: 1;
  font-family: 'Noto Sans Tagalog', serif;
  font-size: clamp(140px, 22vw, 320px);
  color: rgba(247,244,238,0.04);
  line-height: 1; letter-spacing: 0.04em;
  pointer-events: none; user-select: none;
}

footer .social { display: flex; gap: 16px; }
footer .social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(247,244,238,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: border-color 200ms, background 200ms;
}
footer .social a:hover { border-color: rgba(247,244,238,0.4); background: rgba(247,244,238,0.04); }
footer .social svg { width: 16px; height: 16px; color: rgba(247,244,238,0.85); }

footer .brand-row { display: flex; flex-direction: column; gap: 24px; max-width: 320px; }
footer .brand-row p { color: rgba(247,244,238,0.65); font-size: 14px; line-height: 1.55; margin: 0; }

/* ====================================================================
   UI/UX HARDENING — accessibility, focus, skip link, form status
   ==================================================================== */

/* Visually hidden (a11y labels) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (focus-visible only) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Universal focus ring (no naked outline:none) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.email-field:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}
.email-field input:focus-visible {
  outline: none; /* parent shows the ring */
}

/* Form status (replaces placeholder-as-status) */
.form-status {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
  min-height: 1.4em;
  text-align: left;
}
.form-status[data-state="success"] { color: #2D6A3E; }
.form-status[data-state="error"]   { color: var(--clay); }

/* Button success icon (inline SVG) */
.btn .btn-check { display: none; width: 14px; height: 14px; vertical-align: -2px; }
.btn[data-state="success"] .btn-label { display: none; }
.btn[data-state="success"] .btn-check { display: inline-block; }
.btn[data-state="loading"] .btn-label::after { content: ' …'; }
.btn:disabled { opacity: 0.65; cursor: progress; }

/* Active nav state */
.nav .links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Manifesto teaser link (homepage only) */
.manifesto-link-row {
  margin-top: 56px;
  text-align: center;
}
.manifesto-link {
  display: inline-block;
  padding: 12px 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: opacity 200ms;
}
.manifesto-link:hover { opacity: 0.7; }
.manifesto-link .arrow { display: inline-block; margin-left: 6px; transition: transform 200ms var(--ease-out-quint); }
.manifesto-link:hover .arrow { transform: translateX(4px); }

/* Touch targets (mobile) */
.email-field input,
.btn,
.nav .links a,
footer .col a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.email-field input { display: block; width: 100%; }

/* ====================================================================
   RESPONSIVE — merged from Mobile.html
   ==================================================================== */
@media (max-width: 1024px) {
  :root { --gutter: 48px; --section-y: 96px; }
  .nav { padding: 18px 48px; }
  .whats-coming .container { gap: 56px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; --section-y: 64px; }
  .nav { padding: 16px 24px; }
  .nav .links { gap: 16px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .nav .links .domain { display: none; }
  .hero { min-height: 720px; padding: 96px 24px 56px; }
  .hero-mark { font-size: clamp(72px, 18vw, 110px); }
  .hero-meta { gap: 14px; }
  .hero-pron { font-size: 12px; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .hero-def { font-size: 22px; }
  .hero-form { flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; width: 100%; }
  .hero-form .btn { width: 100%; }
  .manifesto p { font-size: 22px; line-height: 1.3; }
  .manifesto-stack { gap: 28px; }
  .founder-inner { padding: 0 4px; }
  .founder-lead { font-size: 22px; }
  .founder-body { font-size: 17px; }
  .way-list { gap: 56px; }
  .way-item { grid-template-columns: 88px 1fr; gap: 20px; }
  .way-num { font-size: 56px; }
  .way-headline { font-size: 22px; }
  .way-text { font-size: 16px; }
  .family-grid { grid-template-columns: 1fr; }
  .venture { padding: 32px 24px; min-height: 0; }
  .venture .v-name { font-size: 28px; }
  .whats-coming .container { grid-template-columns: 1fr; gap: 40px; }
  .whats-coming p { font-size: 20px; }
  .ambient-stage { aspect-ratio: 1; }
  .closing-tagline { font-size: 32px; line-height: 1.2; }
  .closing-form { flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; }
  .closing-form .btn { width: 100%; }
  footer { padding: 56px 24px 32px; }
  footer .row { grid-template-columns: 1fr; gap: 32px; }
  footer .legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Use 100dvh on mobile to avoid Safari address-bar jank */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}

/* Privacy micro-disclosure under email forms (Stripe compliance) */
.form-microcopy {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.5;
  text-align: center;
}
.form-microcopy a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}
.form-microcopy a:hover { color: var(--ink); }
