:root {
  --bg: #12141c;
  --bg-alt: #191c27;
  --bg-card: #1c1f2b;
  --text: #f3ede2;
  --text-muted: #9b98ab;
  --text-faint: #6c6a7d;

  --pink: #ff3d8f;
  --amber: #e8a33d;
  --green: #7a9b5c;
  --green-2: #5c8f6e;
  --purple: #9b7fc7;
  --blue: #5ea3c9;
  --cyan: #4ecbd9;

  --border: rgba(243, 237, 226, 0.09);

  --font-display: "Fraunces", Georgia, serif;
  --font-hero: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* film-grain texture, very subtle */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 6vw, 64px);
  position: relative;
  z-index: 2;
}

.nav__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__cta:hover {
  color: var(--pink);
  border-color: var(--pink);
}

/* ---------- hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 64px);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
  background:
    linear-gradient(180deg, rgba(18, 20, 28, 0.5) 0%, rgba(18, 20, 28, 0.7) 55%, var(--bg) 100%),
    linear-gradient(100deg, rgba(18, 20, 28, 0.92) 0%, rgba(18, 20, 28, 0.6) 40%, rgba(18, 20, 28, 0.12) 68%, transparent 85%),
    url("assets/hero-bg.jpg") center center / cover no-repeat;
}

@media (max-width: 760px) {
  .hero__bg { background-position: center, center, 75% center; }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

.eyebrow__slash { color: var(--text-faint); }

.hero__name {
  font-family: var(--font-hero);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02;
  margin: 0;
  position: relative;
  width: fit-content;
}

.hero__glow {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 28px;
  margin-top: 4px;
}

.hero__glow path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--pink)) drop-shadow(0 0 14px rgba(255, 61, 143, 0.6));
  animation: flicker 6s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.3; }
  94% { opacity: 1; }
  95% { opacity: 0.4; }
  96% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow path { animation: none; }
}

.hero__sub {
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  width: fit-content;
  transition: color 0.2s ease;
}

.hero__scroll svg { transition: transform 0.2s ease; }
.hero__scroll:hover { color: var(--text); }
.hero__scroll:hover svg { transform: translateY(3px); }

/* ---------- about ---------- */
.about {
  padding: 120px clamp(20px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
}

.about__bio {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.about__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  align-self: start;
}

.about__tags li {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--tag-c);
  color: var(--tag-c);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.about__tags li:hover {
  background: var(--tag-c);
  color: var(--bg);
}

/* ---------- work ---------- */
.work {
  padding: 100px clamp(20px, 6vw, 64px) 60px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.work__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0 0 56px;
  max-width: 18ch;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background-color: var(--bg-card);
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(190deg, rgba(18, 20, 28, 0.78) 0%, rgba(18, 20, 28, 0.93) 65%, rgba(18, 20, 28, 0.97) 100%);
  transition: opacity 0.25s ease;
}

.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 0.82; }

.card__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-c);
  margin: 0;
  position: relative;
  z-index: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.card__desc em {
  color: var(--text-faint);
  font-style: italic;
}

.card__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.card__link i { font-style: normal; transition: margin-left 0.2s ease; }
.card:hover .card__link i { margin-left: 4px; }

/* ---------- contact ---------- */
.contact {
  padding: 140px clamp(20px, 6vw, 64px);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 44px;
}

.contact__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  border: 1px solid var(--pink);
  border-radius: 100px;
  font-family: var(--font-mono);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.contact__btn span {
  color: var(--pink);
  font-size: 13px;
}

.contact__btn:hover {
  box-shadow: 0 0 0 1px var(--pink), 0 0 24px rgba(255, 61, 143, 0.45);
  transform: translateY(-2px);
}

/* ---------- footer ---------- */
.footer {
  padding: 32px clamp(20px, 6vw, 64px) 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
  z-index: 2;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .work { padding-top: 80px; }
  .contact { padding: 100px clamp(20px, 6vw, 64px); }
}
