/* ============================================================
   Cynthwave — light editorial theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #17161a;
  --ink-dim: rgba(23, 22, 26, 0.62);
  --ink-faint: rgba(23, 22, 26, 0.38);
  --line: rgba(23, 22, 26, 0.10);
  --red: 210, 30, 70;
  --purple: 110, 50, 200;
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

::selection { background: rgba(var(--purple), 0.18); }

/* ============================================================
   Brand
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

/* Logo: black SVG rendered through a mask so it takes currentColor */
.logo {
  display: block;
  height: 1.4rem;
  aspect-ratio: 792 / 126;
  background-color: currentColor;
  -webkit-mask: url("cynthwave.svg") no-repeat center / contain;
  mask: url("cynthwave.svg") no-repeat center / contain;
}

/* ============================================================
   Links & button
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: var(--ink);
  text-decoration: none;
  padding: 0.9rem 2rem;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
  transition: text-underline-offset 0.2s ease, color 0.2s ease;
}

.text-link:hover { text-underline-offset: 0.5em; }

.text-link.quiet {
  color: var(--ink-dim);
  text-decoration-color: var(--line);
}

.text-link.quiet:hover { color: var(--ink); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ============================================================
   Hero — copy left, image bleeding off the right edge
   ============================================================ */

main {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.hero {
  padding-top: 5rem;
}

/* Copy fills the first viewport like a title page; image follows below */
.hero-copy {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.accent {
  background: linear-gradient(100deg,
    rgb(var(--red)) 0%,
    rgb(160, 40, 160) 45%,
    rgb(var(--purple)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 450;
  color: var(--ink-dim);
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
}

/* ============================================================
   Contact form
   ============================================================ */

.contact {
  padding: 2rem 0 6rem;
}

.form-wrap {
  position: relative;
  max-width: 600px;
}

.form-wrap iframe {
  display: block;
  width: 100%;
  height: 44rem;
  border: 0;
}

/* White strip covering the bottom edge of the embedded form */
.form-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: #ffffff;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.brand-small .logo { height: 0.95rem; }
.brand-small { color: var(--ink-dim); }
.brand-small:hover { color: var(--ink); }

.footer p {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
