/* ===========================
   IMAGITY — CSS
=========================== */

:root {
  --cream: #faf8f5;
  --white: #ffffff;
  --ink: #1c1a17;
  --ink-light: #5c5a56;
  --ink-muted: #9a9690;
  --accent: #2d6a4f;
  --accent-light: #e8f5ee;
  --border: #e6e2dc;
  --shadow: rgba(26, 24, 20, 0.06);

  --badge-wip-bg: #fff8e6;
  --badge-wip-color: #a06000;
  --badge-partial-bg: #eef0ff;
  --badge-partial-color: #3a44aa;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 960px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- HERO ---- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 28px 64px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-slogan {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 100px;
  transition: transform 0.15s, background 0.2s;
}
.hero-link:hover { transform: translateY(-2px); }

.hero-link-contact {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.hero-link-contact:hover { border-color: var(--ink-muted); }

.hero-link-form {
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--accent);
}
.hero-link-form:hover { background: #235c41; }

/* ---- OLD BANNER (removed) ---- */
/* ---- OLD BANNER (removed) ---- */
/* ---- MODULES ---- */
.modules {
  padding: 72px 0 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 48px;
}

/* each module row */
.module {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.module-reverse {
  direction: rtl;
}
.module-reverse > * {
  direction: ltr;
}

/* module text */
.module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.module-header h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.module-tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
}

.module-text p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.75;
}

.module-text code {
  font-size: 0.82rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace;
}

/* status badges */
.module-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  white-space: nowrap;
}

.module-badge-wip {
  background: var(--badge-wip-bg);
  color: var(--badge-wip-color);
}

.module-badge-partial {
  background: var(--badge-partial-bg);
  color: var(--badge-partial-color);
}

/* image placeholder */
.module-img-placeholder {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  aspect-ratio: 16/9;
  max-width: 420px;
}

.module-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-wordmark {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title  { animation: fadeUp 0.5s ease both; }
.hero-slogan { animation: fadeUp 0.5s 0.08s ease both; }
.hero-sub    { animation: fadeUp 0.5s 0.16s ease both; }
.hero-links  { animation: fadeUp 0.5s 0.24s ease both; }

/* ---- RESPONSIVE ---- */
@media (max-width: 680px) {
  .module,
  .module-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .hero-links { gap: 10px; }
}