/* Aurora Manuscript — Synth Narrative */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --plum: #1B1320;
  --bone: #F3EEE6;
  --aurora: #7B5CFF;
  --teal: #35D0BA;
  --aubergine: #2A1F32;
  --aurora-dim: rgba(123, 92, 255, 0.15);
  --teal-dim: rgba(53, 208, 186, 0.12);
  --text-on-plum: #E8E2DA;
  --text-muted: #9A9188;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 4.5rem;
  --radius: 0.375rem;
  --radius-lg: 1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 64px rgba(27, 19, 32, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--plum);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aurora); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 0; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.25rem; }

.container {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-narrow { width: min(48rem, calc(100% - 2.5rem)); margin-inline: auto; }

/* Surfaces */
.surface-plum {
  background: var(--plum);
  color: var(--text-on-plum);
}
.surface-plum a { color: var(--teal); }
.surface-plum a:hover { color: var(--bone); }

.surface-bone { background: var(--bone); color: var(--plum); }

.surface-aubergine {
  background: var(--aubergine);
  color: var(--text-on-plum);
}
.surface-aubergine a { color: var(--teal); }

.surface-aurora {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.08) 0%, rgba(53, 208, 186, 0.06) 100%);
  color: var(--plum);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(27, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 92, 255, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--teal); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  color: rgba(243, 238, 230, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--bone); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bone);
  transition: transform 0.3s, opacity 0.3s;
}

main { padding-top: var(--header-h); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--aurora);
  color: var(--bone);
  box-shadow: 0 8px 24px rgba(123, 92, 255, 0.35);
}
.btn-primary:hover { background: #6a4de6; color: var(--bone); }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(243, 238, 230, 0.35);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal {
  background: var(--teal);
  color: var(--plum);
}
.btn-teal:hover { background: #2bbfa9; color: var(--plum); }

/* Living Specimen Hero */
.hero-specimen {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  background: var(--plum);
}
.hero-specimen__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(123, 92, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(53, 208, 186, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 60% 40%, rgba(123, 92, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-specimen__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 1.5rem 2.5rem;
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.75rem 0 3rem;
  align-items: start;
}
.hero-specimen__label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.hero-specimen__copy {
  align-self: center;
  padding-right: 2rem;
}
.hero-specimen__copy h1 {
  color: var(--bone);
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}
.hero-specimen__copy .lead {
  font-size: 1.1rem;
  color: rgba(243, 238, 230, 0.82);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}
.hero-specimen__frame {
  position: relative;
  grid-row: 2;
  grid-column: 2;
  align-self: start;
}
.hero-specimen__frame img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(123, 92, 255, 0.25);
}
.hero-specimen__frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid rgba(53, 208, 186, 0.3);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.hero-specimen__spec-tag {
  position: absolute;
  bottom: 1.5rem;
  left: -1rem;
  background: var(--aurora);
  color: var(--bone);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.hero-specimen__metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 238, 230, 0.12);
}
.hero-specimen__metric dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.hero-specimen__metric dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bone);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Sections */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 3rem; max-width: 40rem; }
.section-header .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 0.75rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(123, 92, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.surface-bone .card,
.surface-aurora .card {
  background: #fff;
  border-color: rgba(27, 19, 32, 0.08);
  box-shadow: 0 4px 24px rgba(27, 19, 32, 0.06);
}
.card:hover {
  border-color: rgba(123, 92, 255, 0.4);
  transform: translateY(-4px);
}
.card img {
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.card h3 { margin-top: 0; }

/* Work portfolio */
.work-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.work-item:nth-child(even) { direction: rtl; }
.work-item:nth-child(even) > * { direction: ltr; }
.work-item img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.work-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 0.5rem;
}

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  border-bottom: 1px solid rgba(27, 19, 32, 0.1);
  padding: 1.75rem 0;
}
.faq-item:first-child { border-top: 1px solid rgba(27, 19, 32, 0.1); }
.faq-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  cursor: pointer;
}
.faq-a { margin: 0; color: var(--text-muted); }
.surface-plum .faq-item { border-color: rgba(243, 238, 230, 0.1); }
.surface-plum .faq-a { color: rgba(243, 238, 230, 0.75); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(27, 19, 32, 0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--plum);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aurora);
  box-shadow: 0 0 0 3px var(--aurora-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-label input { width: auto; margin-top: 0.25rem; }
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Legal prose */
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.25rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(27, 19, 32, 0.1);
}

/* Footer */
.site-footer {
  padding: 4rem 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 3rem;
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: rgba(243, 238, 230, 0.7);
  text-decoration: none;
}
.footer-links a:hover { color: var(--teal); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(243, 238, 230, 0.55);
  margin-top: 1rem;
}
.footer-meta p { margin-bottom: 0.75rem; color: rgba(243, 238, 230, 0.65); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.5rem;
  background: var(--aubergine);
  border-top: 1px solid rgba(123, 92, 255, 0.25);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.is-hidden { transform: translateY(110%); }
.cookie-inner {
  width: min(72rem, 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  color: var(--text-on-plum);
}
.cookie-inner a { color: var(--teal); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-custom {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 230, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.cookie-custom label {
  font-size: 0.85rem;
  color: var(--text-on-plum);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.hidden { display: none !important; }

/* Reveal animations */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}
.error-page h1 { margin-bottom: 1rem; }

/* Thanks */
.thanks-block {
  text-align: center;
  padding: 6rem 0;
  max-width: 36rem;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-specimen__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 2rem 0 2.5rem;
  }
  .hero-specimen__frame {
    grid-row: auto;
    grid-column: 1;
    max-height: none;
  }
  .hero-specimen__frame img {
    max-height: 16rem;
  }
  .hero-specimen__copy { padding-right: 0; }
  .hero-specimen__copy h1 { max-width: none; }
  .grid-2, .grid-3, .work-item, .footer-grid {
    grid-template-columns: 1fr;
  }
  .work-item:nth-child(even) { direction: ltr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--plum);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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