/* ═══════════════════════════════════════════════════════
   AELODEA NATURE — Base
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--aelodea-green); color: var(--bg); }

/* — Typography — */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.18; }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

/* — Layout — */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section { padding: var(--section-pad) 0; position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 20px; }

/* — Grain texture overlay (premium feel) — */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* — Photo placeholders (skill-design-system) — */
.photo-placeholder {
  background: rgba(3, 60, 28, 0.04);
  border: 1.5px dashed rgba(3, 60, 28, 0.18);
  border-radius: var(--photo-radius, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px,
    rgba(3,60,28,0.02) 10px, rgba(3,60,28,0.02) 20px);
}
.photo-hint {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; z-index: 1; text-align: center; padding: 24px;
}
.photo-hint svg { width: 28px; height: 28px; opacity: 0.35; }
.photo-desc {
  font-size: 12.5px; color: rgba(10,31,18,0.5);
  max-width: 280px; line-height: 1.5; font-family: var(--sans);
}
.photo-size {
  font-size: 10.5px; color: rgba(10,31,18,0.35);
  font-family: monospace;
  background: rgba(3,60,28,0.06);
  padding: 3px 10px; border-radius: 100px;
}
.photo-placeholder[data-shape="square"] { aspect-ratio: 1; min-height: 0; }
.photo-placeholder[data-shape="tall"]   { aspect-ratio: 3/4; }
.photo-placeholder[data-shape="wide"]   { aspect-ratio: 16/9; }

/* On dark backgrounds */
.on-dark .photo-placeholder {
  background: rgba(240,235,224,0.05);
  border-color: rgba(240,235,224,0.2);
}
.on-dark .photo-desc  { color: rgba(240,235,224,0.55); }
.on-dark .photo-size  { color: rgba(240,235,224,0.4); background: rgba(240,235,224,0.08); }
.on-dark .photo-hint svg { filter: invert(1); }

/* — Animations base — */
.anim-ready { will-change: transform, opacity; backface-visibility: hidden; }

.fade-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.12s; }
.fade-up-delay-2 { transition-delay: 0.24s; }
.fade-up-delay-3 { transition-delay: 0.36s; }
.fade-up-delay-4 { transition-delay: 0.48s; }

.stagger-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s ease;
}
.stagger-card.visible { opacity: 1; transform: translateY(0) scale(1); }

.reveal-line { overflow: hidden; display: block; line-height: 1.08; }
.reveal-text {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.reveal-text.visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .fade-up, .stagger-card, .reveal-text { opacity: 1; transform: none; }
}

/* — Focus visibile — */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--aelodea-light);
  outline-offset: 3px;
  border-radius: 4px;
}
