:root {
  --bg: #060608;
  --surface: #111116;
  --text: #f4f1ec;
  --muted: #a19ca6;
  --line: rgba(244, 241, 236, 0.12);
  --holo: linear-gradient(100deg, #6ef3ff 0%, #8f8bff 30%, #ff74d4 60%, #ffd56b 100%);
  --radius: 14px;
  --gap: 24px;
  --max: 1240px;
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  color: var(--text);
}

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.topbar-link {
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.topbar-link:hover {
  border-color: transparent;
  background: var(--holo);
  color: var(--bg);
}

/* Hero */

.hero {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 56px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -40px;
  left: 50%;
  width: 720px;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.22;
  filter: blur(40px) saturate(1.4);
  pointer-events: none;
}

.polaroid {
  width: 240px;
  margin: 0 auto 36px;
  transform: rotate(-3deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}

.hero h1 {
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
}

.role {
  margin: 10px 0 28px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  margin: 0 auto;
  max-width: 620px;
  font-size: 19px;
  color: var(--muted);
}

.project-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.project-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.project-nav a:hover {
  border-color: rgba(244, 241, 236, 0.4);
}

/* Projects */

.project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 24px;
}

.project-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  text-align: center;
}

.project-title::before,
.project-title::after {
  content: '';
  height: 2px;
  background: var(--line);
}

.project-title span {
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.project-info {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px 48px;
  margin-bottom: 40px;
}

.quote {
  grid-row: span 2;
  margin: 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
}

.quote blockquote::before {
  content: '“';
  display: block;
  height: 36px;
  font-family: var(--display);
  font-style: normal;
  font-size: 64px;
  line-height: 1;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote figcaption {
  font-family: var(--display);
  font-weight: 500;
  color: var(--muted);
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about p {
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  text-transform: lowercase;
}

/* Galleries — column layouts carried over from the old IMGNRY page */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-bottom: var(--gap);
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.g-1col { grid-template-columns: 1fr; }
.g-2col { grid-template-columns: repeat(2, 1fr); }
.g-3col { grid-template-columns: repeat(3, 1fr); }
.g-6col { grid-template-columns: repeat(6, 1fr); }
.g-mostwanted { grid-template-columns: repeat(4, 1fr); }
.g-thirdsleft { grid-template-columns: 660fr 321fr; }
.g-thirdsright { grid-template-columns: 321fr 660fr; }

.gallery img.toca-icon {
  width: 80%;
  margin: 10%;
  box-shadow: none;
}

.gallery img.toca-icon:nth-child(1) {
  margin-left: 20%;
  margin-right: 0;
}

.gallery img.toca-icon:nth-child(3) {
  margin-right: 20%;
  margin-left: 0;
}

/* Contact */

.contact {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 64px 24px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-icon {
  width: 120px;
  margin: 0 auto 20px;
}

.contact h2 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.contact-list a:hover {
  border-color: transparent;
  background: var(--holo);
  color: var(--bg);
}

.credits {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .project-info {
    grid-template-columns: 1fr;
  }

  .quote {
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --gap: 10px;
  }

  body {
    font-size: 16px;
  }

  .topbar {
    padding: 10px 16px;
  }

  .logo {
    height: 32px;
  }

  .hero {
    padding: 48px 16px 32px;
  }

  .polaroid {
    width: 200px;
  }

  .hero-glow {
    width: 480px;
  }

  .intro {
    font-size: 17px;
  }

  .project {
    padding: 56px 16px 16px;
  }

  .project-title {
    gap: 16px;
    margin-bottom: 28px;
  }

  .quote {
    padding: 22px;
  }

  .quote blockquote {
    font-size: 17px;
  }

  .gallery img {
    border-radius: 5px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-1col { grid-template-columns: 1fr; }
  .g-toca,
  .g-6col,
  .g-mostwanted { grid-template-columns: repeat(3, 1fr); }
  .g-thirdsleft,
  .g-thirdsright { grid-template-columns: 1fr; }
  .g-thirdsright.g-fixed { grid-template-columns: 321fr 660fr; }

  .gallery img.hide-image {
    display: none;
  }

  .contact {
    padding: 48px 16px 64px;
  }
}
