/* ─────────────────────────────────────────
   Aineara — style.css
   ───────────────────────────────────────── */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:          #C9A84C;
  --gold-light:    #E2C47A;
  --gold-dim:      #8A6E34;
  --gold-muted:    rgba(201, 168, 76, 0.12);
  --black:         #080808;
  --surface:       #0E0E0E;
  --surface-2:     #141414;
  --border:        rgba(201, 168, 76, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary:  #F0EDE6;
  --text-secondary:#8A877F;
  --text-muted:    #4A4843;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;
  --ease:  0.25s ease;
  --ease-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ─── Custom Cursor ─── */
@media (pointer: fine) {
  body { cursor: none; }

  .cursor {
    position: fixed;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    will-change: left, top;
  }

  .cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    will-change: left, top;
  }

  .cursor-ring.expanded {
    width: 48px; height: 48px;
    border-color: rgba(201, 168, 76, 0.7);
  }
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 56px;
  height: 72px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease-slow), background var(--ease-slow), backdrop-filter var(--ease-slow);
  overflow: hidden;
}

nav.scrolled {
  border-color: var(--border);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  justify-self: center;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 10px 24px;
  text-decoration: none;
  justify-self: end;
  transition: background var(--ease), border-color var(--ease);
}
.nav-cta:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text-secondary);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:first-child { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:last-child  { transform: rotate(-45deg) translate(4px, -4px); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 40px 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.35s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 64px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2.2s ease infinite;
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--gold);
  color: #080808;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 16px 24px;
  border: 1px solid var(--border-subtle);
  display: inline-block;
  transition: color var(--ease), border-color var(--ease);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border); }

/* ─── Shared ─── */
.section-label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.gold-divider {
  width: 40px; height: 1px;
  background: var(--gold-dim);
  margin-bottom: 32px;
}

.hr-gold {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 160px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 300;
  line-height: 1.45;
  max-width: 820px;
}
.manifesto-text em { color: var(--gold); font-style: italic; }

.manifesto-sub {
  margin-top: 40px;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
}

/* ─── Pillars ─── */
.pillars { padding: 160px 56px; }

.pillars-header {
  max-width: 560px;
  margin-bottom: 80px;
}

.pillars-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: var(--black);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}
.pillar:hover { background: var(--surface); }
.pillar:hover::before { opacity: 1; }

.pillar-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 32px;
  display: block;
}

.pillar-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}

.pillar-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
  font-weight: 300;
}

/* ─── Approach ─── */
.approach {
  padding: 160px 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
}

.approach-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 20px;
}

.approach-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.approach-item {
  background: var(--surface);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--ease);
}
.approach-item:hover { background: var(--surface-2); }

.approach-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

.approach-item-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.approach-item-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

/* ─── Email Capture ─── */
.coming-soon {
  padding: 160px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.coming-soon h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.coming-soon > p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.85;
  position: relative;
}

.email-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.email-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  padding: 14px 20px;
  outline: none;
  transition: border-color var(--ease);
}
.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus { border-color: var(--gold-dim); }
.email-form input.error { border-color: rgba(201, 100, 76, 0.5); }

.email-form button {
  flex-shrink: 0;
  background: var(--gold);
  border: none;
  color: #080808;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease);
}
.email-form button:hover { background: var(--gold-light); }

.form-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  position: relative;
}

.success-msg {
  display: none;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.06em;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.success-msg.visible { display: block; opacity: 1; }

/* ─── About ─── */
.about {
  padding: 160px 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  margin-bottom: 32px;
}

.about-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 24px;
}

.about-line {
  width: 48px; height: 1px;
  background: var(--gold-dim);
  margin: 40px auto;
}

.about-contact {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
}
.about-contact a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}
.about-contact a:hover {
  color: var(--gold-light);
  border-color: var(--gold-dim);
}

/* ─── Footer ─── */
footer {
  padding: 40px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.footer-logo span { color: var(--gold); }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--text-secondary); }

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ─── 1024px ─── */
@media (max-width: 1024px) {
  nav               { padding: 0 32px; }
  .pillars          { padding: 120px 32px; }
  .approach         { padding: 120px 32px; }
  .approach-inner   { gap: 60px; }
  .coming-soon      { padding: 120px 32px; }
  .about            { padding: 120px 32px; }
  footer            { padding: 40px 32px; }
}

/* ─── 768px ─── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 24px;
    font-size: 12px;
  }

  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  .hero         { padding: 100px 24px 80px; }
  .manifesto    { padding: 100px 24px; }
  .pillars      { padding: 100px 24px; }
  .approach     { padding: 100px 24px; }
  .coming-soon  { padding: 100px 24px; }
  .about        { padding: 100px 24px; }

  .pillars-grid        { grid-template-columns: 1fr; }
  .pillar              { padding: 40px 28px; }
  .approach-inner      { grid-template-columns: 1fr; gap: 48px; }

  .email-form          { flex-direction: column; }
  .email-form input    { border-right: 1px solid var(--border); border-bottom: none; }
  .email-form button   { padding: 14px; }

  footer {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-copy { text-align: left; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
